Slackware - ARMThis forum is for the discussion of Slackware ARM.
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.
Has anybody got any experience of activating hardware accelerated video playback on 64-bit Pis?
I'm running a Pi 400 with slarm64. I have VLC (supplied by sndwvs) installed along with MPV (+smplayer) and ffmpeg (ffplay) installed, both of which I have compiled.
Playing 1080 h264 files on any of these results in 70-90% CPU useage on ALL FOUR cores! Playing 4K stutters badly.
ffmpeg contains the h264_v4l2m2m codec (and the hevc version, as well). Calling fflplay thus:
Code:
ffplay -codec:v h264_v4l2m2m Videos/test.mp4
produces a still frame - though the audio is running!
/BOOT/config.txt contains:
Code:
dtoverlay=vc4-fkms-v3d
Switching from fkms to kms makes the whole system slow and stuttery, and I have read (somewhere) that hardware acceleration only works with fkms. (Any comments?)
According to everything I've read, hardware accelerated video playback should be possible. Threads elsewhere seems to indicate that 64-bit Raspbian is also having the same issues - ie: hardware acceleration only seems to work with specific players (that I've never heard of!) and are only available as 32-bit.
So my question is: Has anyone managed to get hardware accelerated video playback on a 64-bit system, and if so, how did you manage it?
Hi Dunc, and thanks for the reply! Sorry for the delay in response, but I have family staying for a few days, and grand-children can be very demanding...
Moving on to Firefox, and setting "layers.acceleration.force-enabled" to "true" does NOT result in compositing being set to "OpenGL". Of the video players, only VLC offers OpenGL as an option, but the CPU usage is the same as MPV/SMPlayer without OpenGL. This makes me wonder if the issue is with OpenGL.
I have tinkered a little and the only thing I did significant was a reboot. It now works doing:
ffplay -codec:v h264_v4l2m2m Big_Buck_Bunny_1080_10s_10MB.mp4
Sorry for the delay in replying! I had the HDD go down in my workshop computer, and it took me ages to salvage the data off it!
Anyhoo: Still not getting anywhere with this. The latest upgrade to libvpx broke ffmpeg, mpv and vlc, so I took the opportunity to rebuild ffmpeg and mpv using the latest sources. (vlc was kindly sent me by sndwvs, but I don't have his source package, and my attempts to build it descend into dependency hell!)
If I try and play a test video (1080p/25fps shot on my video camera) using hardware acceleration, it goes through the motions:
The counter at the end runs as if it is playing, but the image is frozen. The video plays OK without the -codec option (software decoding), but with a very high cpu useage on all 4 cores.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.