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.
Related videos on Youtube
Author by
user3289365
Updated on September 18, 2022Comments
-
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 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 over 9 yearssorry what should i do with this path?
-
Admin over 9 yearsopen a terminal (
control-alt-T
) and write this command. Afterwards, copy-paste the output as described by David. -
Admin over 8 yearsPossible duplicate of How to install the MPEG-4 AAC decoder and the H.264 decoder?
-
Admin over 7 yearsrun 'file /path/to/your/file.mp4' to check what it actually is and post output
-
Admin over 7 yearsUse VLC. It includes built in support for MP4s.
-
-
gyropyge over 9 yearsEither I don't understand your comment, or there's something not right. Are you attempting this from a standard or administrator account?
-
David Foerster about 8 yearsTo 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 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 about 8 yearsBetter yet, your link includes an
apt:ubuntu-restricted-extras
link as does mine. -
ozgrozer over 3 yearsThis one worked for me.