Smooth playback of 4K videos working under Ubuntu / mpv - Printable Version +- PINE64 (https://forum.pine64.org) +-- Forum: ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=85) +--- Forum: General Discussion on ROCK64 (https://forum.pine64.org/forumdisplay.php?fid=86) +--- Thread: Smooth playback of 4K videos working under Ubuntu / mpv (/showthread.php?tid=6714) |
Smooth playback of 4K videos working under Ubuntu / mpv - danboid - 10-27-2018 One of the main reasons I bought my rock64 was in the hope of being able to use it to play 4K videos. Although I have achieved that previously with libreelec, libreelec/kodi would always crash or reboot on me after a while plus I'd prefer to run a regular/proper Linux distro and mpv is a much more powerful video player than kodi is. Today I finally got 4K videos to play back smoothly using mpv under ayufan's bionic/lxde Ubuntu image. The secret, as disclosed by @fcoulombe on github, was to edit /usr/local/bin/rkmpv and add: --drm-mode=21 To the mpv options, which fixed the green lines and very jerky playback I was experiencing without. A lot of my videos require that I also use the switch --video-aspect=1.3333 (and --video-rotate=no) as using that rids of the letterboxing. https://github.com/ayufan-rock64/linux-build/issues/249 RE: Smooth playback of 4K videos working under Ubuntu / mpv - danboid - 11-01-2018 Turns out I spoke a bit too soon. A more accurate title for this thread would've been "Hardware video decoding working under Ubuntu" or at least it sometimes works. The day after making this post, I noticed within another thread on these forums that --drm-mode=21 is a 1080 resolution. I am unsure where they got that info from unless it was by trial and error or by using this PR for mpv which gives more help and info regarding --drm-mode settings: https://github.com/mpv-player/mpv/commit/529ba575ee8e58a9c4925d192f719bf23bbab4a0 When using mpv wth --drm-mode=21, many of my home 4K h264 video files cannot play in full before encountering a few 'errinfo' frames that cause mpv to fallback to software decoding, at which point I need to quit mpv because CPU decoding is too slow and causes mpv to lock up after a few seconds. I am still very happy to see hardware decoding working (a bit) under Ubuntu. It looks like we're nearly there with the r64 video playback. RE: Smooth playback of 4K videos working under Ubuntu / mpv - arxaios - 11-02-2018 I do not believe that... I am sorry to say but I have seen other players working with KODI very well...you say is the software , I say is the hardware.! very poor hardware. |