lgranie 0 Posted January 20 Share Posted January 20 It is now 2 weeks I run linux-image-current-meson64 with no problems. I manage to get rid of tearing while playing video with vlc by using wayland/weston instead of X11/openbox (picom did not help). While playing video cpu goes from around 40% in X11 to 20% with weston \o/. You can find vlcd.service, scripts and config files in attached files. TODO list : - Move vlcd.service to weston.service and try to replace vlc-xxxx.sh scripts with ~/.config/systemd/vlcd.service - format /boot in ext4 vlcd.service vlcd-start.sh vlcd-stop.sh weston.ini vlcrc.wl Link to post Share on other sites More sharing options...
SteeMan 108 Posted January 20 Share Posted January 20 @lgranie Thank you for your efforts. I'm glad to hear about your progress. Now I have more things to try and test. Link to post Share on other sites More sharing options...
lgranie 0 Posted January 21 Author Share Posted January 21 ok it is not perfect with vlc : if video is not the size of screen the video is cropped and moved up... with mpv it is perfect : you can ssh to your machine, sudo su - vlcd, export XDG_RUNTIME_DIR=/run/user/109 and launch mpv mpv.conf or aliases : function play_movie { sudo su -P -s /bin/bash -c "export XDG_RUNTIME_DIR=/run/user/109 && mpv --sub-auto=all --sub-file-paths=Subs $1" vlcd } function play_serie { sudo su -P -s /bin/bash -c "export XDG_RUNTIME_DIR=/run/user/109 && mpv --sub-auto=exact $1" vlcd } Link to post Share on other sites More sharing options...
SteeMan 108 Posted January 21 Share Posted January 21 This thread originally started under a topic about upgrading the kernel from a balbes image kernel to an armbian standard meson64 kernel. The goal of @lgranie in that topic was to be able to access more current kernels to take advantage of improvements. The balbes images stopped supporting amlogic devices on 2020-10-14 at kernel version 5.9.0 and he was looking for an upgrade path. Link to post Share on other sites More sharing options...
lgranie 0 Posted January 25 Author Share Posted January 25 Hi everyone, I made some new tests this last weekend and realized what I said was not really true. If you want to use hardware accelerated decoding you need to install armbian-firmware-all (package I just discovered). This package contains the firmware files needed by mpv in /lib/firmware/meson/vdec. Combined with mpv options hwdec-codecs=all and hwdec=auto ( or just v4l2m2m-copy ), cpu usage really drops from 50% to 20% ( and cpu temp from 70c to just over 50c ). But it is a little bugged : no seek forward or backward, and I've got a crach after one hour of movie (just when the bus fly the highway gap in "Speed", damned!). I imagine that the improvements of video playback quality ( no more little tearing ) I experimented last week was due to weston using GL for render what I was not able to do with X11/picom before. You do not really need hardware decoding : the s905x2 is really capable to decode x264 without any problems. Here the commented containt of my mpv.conf file : # very usefull to understand what mpv is doing msg-level=all=v # video output ( wayland ) vo=gpu gpu-context=wayland drm-connector=HDMI-A-1 fs=yes # hardware decoding ( nothing to do with rendering, uncomment to test ) #hwdec=auto #hwdec=v4l2m2m-copy hwdec-codecs=all # Personnal preferences sub-font='FreeSerifBold' sub-file-paths=Subs:Sub:subs:sub slang=en,eng alang=en,eng Link to post Share on other sites More sharing options...
Zaky Ahmad Fauzi 0 Posted January 25 Share Posted January 25 I'm looking forward to it. Good luck Link to post Share on other sites More sharing options...
lgranie 0 Posted February 10 Author Share Posted February 10 I came back to kernel 5.9.0 from balbes image but I got this error with mpv after few seconds : DRM_IOCTL_MODE_CREATE_DUMB failed: Cannot allocate memory To avoid this message and enjoy beautiful video playback, I haved to install the following packages (dtb and image, not the headers): https://us.mirrors.fossho.st/armbian/apt/pool/main/l/linux-5.9.14-meson64/ Link to post Share on other sites More sharing options...
Dan MacDonald 2 Posted May 30 Share Posted May 30 Hi lgranie! I'm trying to get mpv to work w/ meson vpu acceleration under Wayland on my X96 Air Q1000 (S905X3) running Manjaro ARM unstable. Have you had any success in getting 4K h264 videos to play smoothly on a 4K display under KDE or GNOME wayland? Have you only got meson decoding to work with mpv under Weston? Have you tried recent versions of KDE or GNOME with this? I'm using your mpv settings but I've not been able to get any videos to play smoothly yet. I should try some 1080p videos too to see if its just 4K vids that are the problem. Link to post Share on other sites More sharing options...
lgranie 0 Posted May 31 Author Share Posted May 31 Hi Dan, I can not help you so much : I do not have a s905x3 nor 4k monitor. I can only share with you that I disable hwdec (v4l2m2m-copy) in my mpv config for better results in h264. I did not mange yet to upgrade my kernel up to 5.9.14. Regards, Laurent. mpv.conf Link to post Share on other sites More sharing options...
hanguofu 0 Posted June 22 Share Posted June 22 Thanks for the tip . Could you please tell me how to use wayland/weston ? Currently I installed armbian ( kernel 5.7.16 ) built by balbes and I would like to try the improvements you mentioned. Regards ! Link to post Share on other sites More sharing options...
lgranie 0 Posted June 24 Author Share Posted June 24 sudo apt install weston copy the weston.ini file (available at the top of the tread) in ~/.config/ lauch weston with systemctl sudo systemctl restart weston.service Link to post Share on other sites More sharing options...
Recommended Posts