Cannot play *.mp4 - files in Ubuntu 18.10

13,913

Solution 1

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

Solution 2

Install VLC it comes with all the codecs you need.

Solution 3

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

Share:
13,913

Related videos on Youtube

Georgios
Author by

Georgios

Updated on September 18, 2022

Comments

  • Georgios
    Georgios almost 2 years

    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!

    • cloud.009
      cloud.009 over 5 years
      Hope this can help you link
  • Georgios
    Georgios over 5 years
    VLC works. But I think it's a shme, that the mp4 Codec had been working in earlier editions (e.g. 16.04) of Ubuntu Video.
  • singrium
    singrium over 5 years
    Well, may be in 16.04, you already installed the mp4 codec that's why you didn't face the problem.
  • Al Lelopath
    Al Lelopath almost 5 years
    Nope. VLS is unable to open the MRL 'file:///media/.../myfile.mp4. Check the log for details.
  • nicolimo86
    nicolimo86 over 3 years
    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 the ubuntu-restricted-extras, just vlc.