Play all videos

andresdre23

New Member
Joined
Feb 19, 2025
Messages
15
Reaction score
4
Credits
96
Hi my Ubuntu 24.04.2 LTS machine doesn't play all videos, I wonder if this is something normal? Is there any way to fix this?
 


Hi my Ubuntu 24.04.2 LTS machine doesn't play all videos, I wonder if this is something normal? Is there any way to fix this?
You can't play any video at all? Does it tell you anything when you attempt to play these videos?
 
doesn't play all videos
As in no video will play?
Some videos don't play?
Some/all videos don't play properly?

This can be a variety of things from a misconfigured media player to h/w accel issue, and possibly though unlikely, both codecs. I say unlikely as Ubuntu comes with codecs preinstalled.

Try playing it with ffmpeg directly:
ffplay <your video>
If you get errors, post them (in code and spoiler tags: [code ] ... [/code ] without spaces and [spoiler ] ... [/spoiler ] also no spaces.

You can check the codecs used with:
To find out ffprobe <name of file>
Post that info, too. Same with code and spoiler tags.

This will list everything. If ffmpeg is not installed, installing it may automagically fix your issues because it depends on all the codecs you'll need. apt-get install ffmpeg (or just apt install these days)

You may want to tell us your media play: MPV? MPlayer? VLC? something else?

By the way, on the VLC note, it is a double-edged sword because it has many built-in codecs, so you don't needs to install most (great for Windows users, I still remember ye olde days of Combined Community Codec Pack). The downside it anything built-in that's glitchy will gitch. I use MPV because it's simple and it works. It's the core of most players, too. Therefore I can only give config advice on MPV. But I'm sure others can help with VLC.

If certain video files are playing up, just transcode them: ffmpeg -i <myfile>.<extension> <mynewfile>.mp4 and I say mp4 because it is well-supported. Even if it already is .mp4, this will re-encode it using the current encoders, which will fix any glitches/incompatibilities.

Note for containers like mkv, you'll need to extract them. I suggest using mkvtoolix, apt-get install mkvtoolnix. You can use mkvextract from mkvtoolnix to extract streams, but I use ffmpeg for ease as I'm used to it:
ffprobe <myfile.mkv>
ffmpeg -i <myfile.mkv> -map <the audio stream numbers from ffprobe for audio in the form of X:Y which is two numbers> -c copy audio.<matching extension, eg: mp3, ogg, and so on>
ffmpeg -i <myfile.mkv> -map <the video stream as in the above> -c copy video.<matching extension, eg: mp4, avi, and so on>

Now try to play <video>.<extensio> and <video>.<extensio> <audio.extension>? Do they play?

If yes:
remux them: mkvmerge -o <newfile.mkv> <video>.<extensio> <audio.extension> this may have been a muxing error, like mangled chapters, in your file and this'll fix that.

If no:
Transcode them to mp4 and mp3 as in the transcoding example and remux them as in the above.

Remuxing Notes:
1. Can be done in ffmpeg but more complex and less reliable (eg: audio 0.5 sec different from video), so we use mkvtoolnix's mkvmerge
2. If you had subtitle you'd have to excract them, too, to add to your new file. ASS usually come with fonts but it's optional as it defaults to system if the linked font can't be found, ie they're displayed like unformatted SRT.
 
You mean videos from your browser or locally stored videos?
 
If you are streaming video then make sure you have both FFmpeg installed [this should be included in the distribution,] and enable DRM in the browser
 
Which video player (eg, vlc, mpv .....if playing through a vid player)

Which browser ....(if playing through a browser )
 
As in no video will play?
Some videos don't play?
Some/all videos don't play properly?

This can be a variety of things from a misconfigured media player to h/w accel issue, and possibly though unlikely, both codecs. I say unlikely as Ubuntu comes with codecs preinstalled.

Try playing it with ffmpeg directly:
ffplay <your video>
If you get errors, post them (in code and spoiler tags: [code ] ... [/code ] without spaces and [spoiler ] ... [/spoiler ] also no spaces.

You can check the codecs used with:
To find out ffprobe <name of file>
Post that info, too. Same with code and spoiler tags.

This will list everything. If ffmpeg is not installed, installing it may automagically fix your issues because it depends on all the codecs you'll need. apt-get install ffmpeg (or just apt install these days)

You may want to tell us your media play: MPV? MPlayer? VLC? something else?

By the way, on the VLC note, it is a double-edged sword because it has many built-in codecs, so you don't needs to install most (great for Windows users, I still remember ye olde days of Combined Community Codec Pack). The downside it anything built-in that's glitchy will gitch. I use MPV because it's simple and it works. It's the core of most players, too. Therefore I can only give config advice on MPV. But I'm sure others can help with VLC.

If certain video files are playing up, just transcode them: ffmpeg -i <myfile>.<extension> <mynewfile>.mp4 and I say mp4 because it is well-supported. Even if it already is .mp4, this will re-encode it using the current encoders, which will fix any glitches/incompatibilities.

Note for containers like mkv, you'll need to extract them. I suggest using mkvtoolix, apt-get install mkvtoolnix. You can use mkvextract from mkvtoolnix to extract streams, but I use ffmpeg for ease as I'm used to it:
ffprobe <myfile.mkv>
ffmpeg -i <myfile.mkv> -map <the audio stream numbers from ffprobe for audio in the form of X:Y which is two numbers> -c copy audio.<matching extension, eg: mp3, ogg, and so on>
ffmpeg -i <myfile.mkv> -map <the video stream as in the above> -c copy video.<matching extension, eg: mp4, avi, and so on>

Now try to play <video>.<extensio> and <video>.<extensio> <audio.extension>? Do they play?

If yes:
remux them: mkvmerge -o <newfile.mkv> <video>.<extensio> <audio.extension> this may have been a muxing error, like mangled chapters, in your file and this'll fix that.

If no:
Transcode them to mp4 and mp3 as in the transcoding example and remux them as in the above.

Remuxing Notes:
1. Can be done in ffmpeg but more complex and less reliable (eg: audio 0.5 sec different from video), so we use mkvtoolnix's mkvmerge
2. If you had subtitle you'd have to excract them, too, to add to your new file. ASS usually come with fonts but it's optional as it defaults to system if the linked font can't be found, ie they're displayed like unformatted SRT.
Thank you, this gives me an idea of what could bve wrong. Also, it plays some YT videops but not all, and sometimes videos from other websites do not play
 
Try using firefox
 
Videos from different websites, like some videos from YT play and some don't
It would have been useful if you mentioned which browser, there are no mindreaders around here.
 
Sorry, I mostly use Opera
If you use the Deb version of Opera you need to install ffmpeg and if you are using the Snap verson of Operai it should just work.
 
If you use the Deb version of Opera you need to install ffmpeg and if you are using the Snap verson of Operai it should just work.
Thanks
 


Members online


Top