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,
--
Pete
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,
--
Pete