How can I play mp4 movie on my ubuntu OS?

40,196

Solution 1

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.)

Solution 2

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.

Share:
40,196

Related videos on Youtube

user3289365
Author by

user3289365

Updated on September 18, 2022

Comments

  • user3289365
    user3289365 almost 2 years

    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.

    • Admin
      Admin over 9 years
      "MP4" is not a media codec. It's a standard for a media container format. What does ffprobe -i /path/to/file say about that file? Please post the (relevant) output as an edit to your question.
    • Admin
      Admin over 9 years
      sorry what should i do with this path?
    • Admin
      Admin over 9 years
      open a terminal (control-alt-T) and write this command. Afterwards, copy-paste the output as described by David.
    • Admin
      Admin over 8 years
    • Admin
      Admin over 7 years
      run 'file /path/to/your/file.mp4' to check what it actually is and post output
    • Admin
      Admin over 7 years
      Use VLC. It includes built in support for MP4s.
  • gyropyge
    gyropyge over 9 years
    Either I don't understand your comment, or there's something not right. Are you attempting this from a standard or administrator account?
  • David Foerster
    David Foerster about 8 years
    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
    David Foerster about 8 years
    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
    David Foerster about 8 years
    Better yet, your link includes an apt:ubuntu-restricted-extras link as does mine.
  • ozgrozer
    ozgrozer over 3 years
    This one worked for me.