I’ve experienced a dramatic drop in performance from MPV as of today. Playback drops frames and lowering quality down from 1080p to 720p doesn’t seem to make any difference, I think it might be ffmpeg. I tried with --no-audio just in case itwas muxing thing but no joy.
It seems to affect all container formats.
[ffmpeg] AVHWDeviceContext: Cannot load libcuda.so.1 [ffmpeg] AVHWDeviceContext: Could not dynamically load CUDA Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory Cannot load libcuda.so.1 [ffmpeg/video] h264_v4l2m2m: Could not find a valid device [ffmpeg/video] h264_v4l2m2m: can't configure decoder Could not open codec.
Those last two ffmpeg errors are new, I think. I’ve been updating regularly with no problems but something appears to have changed. This is a normal Reform based on Sysimage v3, and updated frequently.
Hi, we used to patch ffmpeg to do hardware acceleration but we stopped doing that in June this year. Since then, mpv is basically not usable with 1080p h264 video on the reform because everything gets rendered in software and the imx8mq is too slow for that.
It would be interesting to find out what you changed between the time when it worked for you and now. Does /var/log/apt/history.log offer any clues?
Confirmed. Something changed in mpv. With version 0.34.1-1+b5 I can watch low-bitrate h264 1080p video but with 0.35.0-4 I cannot. I reported the problem here:
VLC has been my benchmark as it always plays back smoothly, however i prefer mpv and yt-dlp for watching YouTube and Vimeo content.
Chromium also does pretty well with 720 and 1080 video,but in my experience uses more CPU versus VLC and MPV.
I also use VLC with my plex server to playback streams via UPnP - it is superior to the browser client.
The MNT Reform Debian repos now ship a patched version of mpv, so no need anymore to add environment variables or config options.
As for smooth playback: Yes, the imx8mq can do 1080p@25 in software. The reason why i switched to a player (clapper) that can do hardware decoding is, that it becomes harder and harder to find videos on youtube or twitch that are 1080p@25. Most stuff I consume seems to get encoded in 1080p@60 and even the 720p is only available in 60 fps which the imx8mq can sadly not do without stuttering and going even lower to 480p would be really painful.
But LibreELEC uses ffmpeg 4.4.1 while Debian is at 5.1.2. Rebased patches for that popped up as well after a couple of months at GitHub - jernejsk/FFmpeg and when I build ffmpeg with these patches, the h264 videos I open in mpv do get decoded in hardware (no cpu usage) but the video is all tinged in red and kinda unwatchable. If I try out h264 video, an error is thrown.
Since this isn’t working and since ffmpeg doesn’t seem interested to support this, I have personally switched to clapper. I packaged it for Debian in July last year and have been using it since. Together with gtuber (by the same author) I can use clapper to watch YouTube and Twitch as well.