I had several tutorial videos stored on my computer, I could run them all, while Ubuntu 16.04.was installed.
Since I have installed Ubuntu 18.10, it is not possible to play any video. I always get the message: File cannot be played, H264-Decoder is necessary.
In the Ubuntu Wiki can't find a solution.
Can someone help? Please!
-
Hope this can help you link– cloud.009Dec 25, 2018 at 17:01
-
1Does this answer your question? Unable to play .mp4 files (videos)– user12002570Feb 5 at 14:11
4 Answers
Have you tried installing the restricted extras package? That normally covers most non-free media formats.
The command to use is:
sudo apt-get install ubuntu-restricted-extras
Full instructions here: https://help.ubuntu.com/community/RestrictedFormats
Install VLC it comes with all the codecs you need.
-
Nope. VLS is unable to open the MRL 'file:///media/.../myfile.mp4. Check the log for details. Sep 10, 2019 at 1:01
-
install vlc via snap
snap install vlc
. The vlc that comes from the apt repo was not playing mpeg4 on my ubuntu (18.04). PS: I have not installed theubuntu-restricted-extras
, just vlc. Feb 21, 2021 at 10:37
The media player that comes with Ubuntu is unable to read *.mp4 files, so you have to install a media player that can read these special codecs, I suggest VLC.
To install it,
method 1:
run the following command from the terminal: sudo apt install vlc
method 2:
open ubuntu software (press the Windows button then type 'ubuntu software' in the search bar) then search for VLC and install it.
Support to decode MPEG-4 AAC is provided by gstreamer1.0-libav and to decode H.264 there is ffmpeg:
sudo apt-get install gstreamer1.0-libav ffmpeg