andresdre23
New Member
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?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?
As in no video will play?doesn't play all videos
ffplay <your video>
ffprobe <name of file>
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)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.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>
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.It plsays some YT videos but not allYou can't play any video at all? Does it tell you anything when you attempt to play these videos?
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 playAs 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 outffprobe <name of file>
Post that info, too. Same with code and spoiler tags.
This will list everything. Ifffmpeg
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 usemkvextract
frommkvtoolnix
to extract streams, but I useffmpeg
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.
Videos from different websites, like some videos from YT play and some don'tYou mean videos from your browser or locally stored videos?
Thanks, someone else also mentioned thatIf 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
Some videos from YT play and some don't. I use Opera, and sometimes ChromeWhich video player (eg, vlc, mpv .....if playing through a vid player)
Which browser ....(if playing through a browser )
Yeah thanksTry using firefox
It would have been useful if you mentioned which browser, there are no mindreaders around here.Videos from different websites, like some videos from YT play and some don't
Sorry, I mostly use OperaIt would have been useful if you mentioned which browser, there are no mindreaders around here.
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.Sorry, I mostly use Opera
ThanksIf 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.
![]()
My Opera can't play videos
I am using Opera 68.0.3618.125 on latest Ubuntu version. But I can't watch videos. For example on Twitter. Everyone says get libffmpeg.so and copy to /snap/opera/current/usr/lib/x86_64-linux-gnu/op...askubuntu.com