8

I recently downloaded a movie in MP4 format. It is not playing in VLC player. The player shows the message:

You are missing codec pack to play this movie.

I searched for the codec pack but I didn't find any. What should I do to play these type of files on my ubuntu 14.04 LTS?

I have downloaded many packages such as ubuntu-restricted-extras, popcorntime & ffmpeg but none of them works.

Kara
  • 167

4 Answers4

11

This command in a terminal should do:

sudo apt install ubuntu-restricted-extras

(As already explained by David Foerster, but this should be an answer, not a comment.)

knocte
  • 996
4

Install gstreamer by typing this in terminal:

sudo apt-get install gstreamer1.0-libav

I got success. Hopefully you will. Basically the H.264 plugin is not installed.

wjandrea
  • 14,236
  • 4
  • 48
  • 98
user484358
  • 41
  • 2
  • libav is a library to access hardware video acceleration on Intel graphic chipsets. You don't need it to view H.264-encoded videos but it may lower the CPU usage and energy consumption. – David Foerster May 30 '16 at 06:41
  • This is the minimal install required to make mp4 files playable on default ubuntu (22.04) -- which uses totem. My issue with ubuntu-restricted-extras is it includes code for playing flash, etc. uneeded and potentially unsafe. Just added this comment for my future self and of course others. ;-) – mike stewart Sep 14 '23 at 18:16
1

VideoLAN VLC is a free video player for Windows and Ubuntu that supports many formats, including MP3s, DVDs, and MP4s.

I'd give that a try and see if it helps you.

Otherwise, you will have to install codecs, as the other answers describe.

0

I believe your solution lies in manually installing "restricted formats". Ironically this, or something that sounds like it can be found in the software center, but trial and error has taught me that despite the claims it is not the same. You must add this in the terminal exactly as it is describe on THIS LINKED PAGE.

As my other answers and comments attest, I am not a big fan of the Terminal/CLI. I accept there are times it is necessary. This is such an occasion.

https://help.ubuntu.com/community/RestrictedFormats

Alternatively you can visit the Apps page of restricted extras in stock Ubuntu (ubuntu-restricted-extras Install ubuntu-restricted-extras) and click on the big orange graphic reading "available on the Software Center".

EDIT BY ORIGINAL AUTHOR: The inserted edit directly above is faulty! Its fallacy is reference within my post, proving he failed to read my post before editing it!

gyropyge
  • 2,558
  • 1
  • 16
  • 11
  • Either I don't understand your comment, or there's something not right. Are you attempting this from a standard or administrator account? – gyropyge Jan 07 '15 at 20:22
  • 1
    To my understanding there's no difference between your approach and mine. Using my browser link will open the Software Center on the right page. Installing the package in Software Center will ultimately execute apt-get install ubuntu-restricted-extras (as a super-user after asking for an administrator password). – David Foerster May 30 '16 at 06:39
  • Better yet, your link includes an apt:ubuntu-restricted-extras link as does mine. – David Foerster May 30 '16 at 06:44