11-30-2023, 09:25 AM
(11-30-2023, 07:07 AM)MichaIng Wrote: You mean also with mpv CPU acceleration is high?No. There is no CPU acceleration, only software decoding on the CPU. Acceleration happens via hardware.
If CPU utilization is 80-100%, then there is no hardware acceleration.
With HW-accel the CPU usage drops to ~20%
Quote:If it works better, then obviously it does something better, making some use of a supported/accelerated API, not sure. I see now that all those players are compiled against FFmpeg libraries. Also VLC, which means it uses FFmpeg v6 on Trixie: https://packages.debian.org/trixie/vlc-p...deo-output
I don't use VLC myself, so I don't keep track of its development. Thinking back I should've known that couldn't be it.
I just took a quick look and noticed that the 3.0.x series is from 2018, so that's probably what I actually vaguely recalled.
Quote:Could you test/compare playback just with ffplay?
I don't need to as I already know that the current ffmpeg does not support the HW-accel API(s) that are needed.
Quote:Probably the reason is that VLC displays playback through X while mpv (as CLI player) uses DRM?
Ah, that would explain why VLC performs so poorly on Quartz64 devices. With the panfrost driver, you REALLY want/need wayland.
Quote:Not sure whether it is current: https://wiki.pine64.org/wiki/Mainline_Hardware_Decoding
So H.264 up to 1080p should be supported.
I don't know how up-to-date the page is. A `git blame` would've made it much easier to check when it was last updated, but (afaik) that's not available.
I (also) don't know how the video pipeline works exactly and if/when/how Hantro would be used.
I do know that there's current development to get HW-accel working and that you need to patch multiple components to get it to work at all.
But my testing indicated it's not ready for general usage yet.