Article 5QXZ3 Hardware accelerated video playback

Hardware accelerated video playback

by
pchristy
from LinuxQuestions.org on (#5QXZ3)
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.mp4produces a still frame - though the audio is running!

/BOOT/config.txt contains:

Code:dtoverlay=vc4-fkms-v3dSwitching 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?

Cheers,

--
Petelatest?d=yIl2AUoC8zA latest?i=PjRgPLPejIw:mI-Xda2cv5A:F7zBnMy latest?i=PjRgPLPejIw:mI-Xda2cv5A:V_sGLiP latest?d=qj6IDK7rITs latest?i=PjRgPLPejIw:mI-Xda2cv5A:gIN9vFwPjRgPLPejIw
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments