ubuntu install codecs

C++
sudo apt install ubuntu-restricted-extras
Source

Also in C++: