How to reproduce a video with mp4 codecs in Ubuntu 20.04
Problem:
When you play a video (.mp4
format or extension) appears this error:
“MPEG-4 ACC decoder, H.264 (Constrained Baseline Profile decoder are required to play the file, but are not installed”
Solution:
To solve it, you can install packages using the Terminal.
Step by step:
- Open a Terminal by pressing
Ctrl
+Alt
+T
. - Install the packages needed:
sudo apt-get install ubuntu-restricted-extras sudo apt-get install libavcodec58 ffmpeg
- Log out and log in again.
Source:
https://askubuntu.com/questions/214421/how-to-install-the-mpeg-4-aac-decoder-and-the-h-264-decoder