Hi all, and thanks for this great install script!
I've been using a Raspberry Pi 3 as my main video player for a while and I recently switched to a Rock64.
After installing the required dependencies with the media script and using mpv-gbm for playback, I noticed that the video playback was choppy and mpv would drop frames, even for "small" (i.e. non-4k) videos.
I tracked down the problem to the display mode not being set right by mpv: whatever the video format, my display would be set to 3840x2160p60 (as seen from /var/log/kern.log). After manually setting the right display mode, the video playback is perfectly smooth and there are no more frame drops. For example:
mpv-gbm --drm-mode=25 bbb_sunflower_1080p_30fps_normal.mp4
mpv-gbm --drm-mode=19 bbb_sunflower_1080p_60fps_normal.mp4
You can get a list of the DRM display modes with:
cat /sys/class/drm/card0-HDMI-A-1/modes | nl -v 0
As a side note, I have not been able to play 2160p content at more than 15 fps and trying to play 2160p60 content even resulted in a corrupt display (green bands and pieces of picture jumping around).
Thanks again!