Linux - DesktopThis forum is for the discussion of all Linux Software used in a desktop context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am trying to determine why I cant play 4k videos on my Linux mint desktop. Searching the web, I've seen people with lower spec'ed machines play 4k.
I tried to see if network speed was the cause by playing from videos stored locally on the computer as well as on my Freenas server. Same identical result.
No matter which player I tried (VLC, xplayer, SMplayer, mpv, etc) I experience TONS of dropped frames and image corruption, extremely high CPU usage on all cores and VLC throws tons of this error:
Code:
avcodec error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
The sound however is just fine.
I tried installing x264 codecs, playing with VLC's settings etc, to no avail... Best playback is with mpv and this is pretty sluggish and the image lags behing the sound (cant watch a movie).
As suggested by VLC, could it simply be that this computer simply can't keep up with 4k?
2 Nvidia cards, one of them good enough, the other "entry level" from 2011.
Your system is probably getting confused, using the wrong one.
Can you simply disable or remove the GeForce GT 440?
the 1030 is not capable of 4k resolution without a Display port. Does yours have the Display port, and are you configured to set output to the Display port?
The HDMI point may on some 1030 cards can at max do 4k at 30Hz, but that will depend on the CPU/MB it is paired on.
It's probably not using the GPU at all; a Phenom II X4 is definitely way too old to handle 4K content on the CPU. Usually mpv's status messages will clue you in on whether it's using hardware decoding, but (assuming you have some way of making sure it's going to the 1030), have you tried using --hwdec=yes? What do the status messages say?
x264 won't help you. A) It's an encoder, and B) the format(s) you're most likely to encounter at 4K are HEVC (a.k.a. H.265, not H.264) and VP9. Maybe AV1, but that's still in the initial roll-out phase and companies are only just now announcing commercially-available hardware decoders for it. The GT 1030 has hardware decoders for both H.265 4:2:0 (8-, 10-, and 12-bit), and VP9 (8-, 10-, and 12-bit).
So, what compression format are the videos encoded in? It matters. You can check this using mediainfo.
RE: the part about people with lower-specced machines, if you're talking about things like little mini-PCs (Intel NUCs or the Azulle Byte series, for example), those may have underpowered CPUs without AVX/AVX2, but they still contain more or less the right versions of Intel UHD Graphics which can do 4K decode.
@ondoho: The GT440 is passed thru to a VM, at the kernel level so it is not "visible" to the base OS. The 4k issues pre-dates the installation of that old video card side by side with the 1030.
@lleb: I am using this 1030 via HDMI to a LG 34in Ultra widescreen monitor (3440x1440). The card does have a Display port though.
@antithesis85: You were right. The playback didnt seem to use GPU at all. Using mpv with the CLI argument "--hwdec=yes" allows to play the movie in native 4k format in a way that I didn't think possible on this computer. Its so "fluid" and smooth, it plays perfectly. You were also right, I got confused with the x264 being an encoder and not a decoder... To be honest, there are so many codecs formats, protocols, standards, and they change so fast/frequently... Its a real mess, especially in linux where there are absolutely no standards in anything whatsoever.
Here's a typical CLI output of playing movies with "mpv --hwdec=yes":
I just stick with mpv; hwdec=yes can be added to the config file, so you don't have to specify it every time - it'll only activate when the graphics card supports the format. I don't even have VLC installed.
From the menu toolbar select Tools → Preferences → Input & Codecs → Codecs → Hardware-accelerated decoding. To disable, select Disable. To re-enable, select Automatic (unless a particular hardware acceleration method is desired).
Remember to press Save to save VLC settings and restart VLC after that to make sure changes are enabled.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.