"Hello,
I am trying to setup my orange pi pc2 to play video on the tv (among other things),
but I must say that I am having a real hard time. Today, I restarted from this clean image:
Armbian_5.40_Orangepipc2_Ubuntu_xenial_next_4.14.15_desktop
using startx+mpv I am able to play my video out of the box using software decoding...
Unfortunately, if I use the full screen mode, the video is slow like hell. (without full screen it plays fine).
So I suspect I need to use hardware decoding.
startx /usr/bin/mpv --fs MyVideo.avi
X.Org X Server 1.18.4
Release Date: 2016-07-19
X Protocol Version 11, Revision 0
Build Operating System: Linux 4.4.0-97-generic aarch64 Ubuntu
Current Operating System: Linux orangepipc2 4.14.15-sunxi64 #30 SMP Tue Jan 30 17:40:12 CET 2018 aarch64
Kernel command line: root=UUID=6342048c-723e-476d-a785-c345ff4c7099 rootwait rootfstype=ext4 console=tty1 console=ttyS0,115200 panic=10 consoleblank=0 loglevel=1 ubootpart=3bd93a3c-01 usb-storage.quirks=0x2537:0x1066:u,0x2537:0x1068:u cgroup_enable=memory swapaccount=1
Build Date: 13 October 2017 01:58:44PM
xorg-server 2:1.18.4-0ubuntu0.7 (For technical support please see http://www.ubuntu.com/support)
Current version of pixman: 0.33.6
Before reporting problems, check http://wiki.x.org
to make sure that you have the latest version.
Markers: (--) probed, (**) from config file, (==) default setting,
(++) from command line, (!!) notice, (II) informational,
(WW) warning, (EE) error, (NI) not implemented, (??) unknown.
(==) Log file: "/var/log/Xorg.1.log", Time: Sat Mar 24 09:17:18 2018
(==) Using config directory: "/etc/X11/xorg.conf.d"
(==) Using system config directory "/usr/share/X11/xorg.conf.d"
gbm: failed to open any driver (search paths /usr/lib/aarch64-linux-gnu/dri:${ORIGIN}/dri:/usr/lib/dri)
gbm: Last dlopen error: /usr/lib/dri/sun4i-drm_dri.so: cannot open shared object file: No such file or directory
failed to load driver: sun4i-drm
EGL_MESA_drm_image required.
Playing: MyVideo.avi
(+) Video --vid=1 (mpeg4)
(+) Audio --aid=1 (mp3)
AO: [alsa] 48000Hz stereo 2ch s16
VO: [x11] 720x404 yuv420p
Should I worry about the "failed to load driver: sun4i-drm" error message ?
I tried to install vdpau, but I couldn't find instructions that seem to be working fine for armbian for H5.
See bellow the output of the lsmod command:
>lsmod
Module Size Used by
fuse 98304 3
rpcsec_gss_krb5 32768 0
zram 28672 4
sun8i_codec_analog 28672 1
sun4i_codec 49152 3
snd_soc_hdmi_codec 16384 1
sun4i_i2s 20480 2
snd_soc_simple_card 16384 1
snd_soc_simple_card_utils 16384 1 snd_soc_simple_card
snd_soc_core 155648 6 sun4i_codec,sun4i_i2s,sun8i_codec_analog,snd_soc_hdmi_codec,snd_soc_simple_card_utils,snd_soc_simple_card
ir_lirc_codec 16384 0
snd_pcm_dmaengine 16384 1 snd_soc_core
snd_pcm 106496 4 sun4i_i2s,snd_pcm_dmaengine,snd_soc_hdmi_codec,snd_soc_core
lirc_dev 16384 1 ir_lirc_codec
snd_timer 32768 1 snd_pcm
sunxi_cir 16384 0
sunxi 20480 0
musb_hdrc 98304 1 sunxi
sun4i_gpadc_iio 16384 0
iio_hwmon 16384 0
industrialio 65536 2 iio_hwmon,sun4i_gpadc_iio
dw_hdmi_i2s_audio 16384 0
dw_hdmi_cec 16384 0
sy8106a_regulator 16384 1
sun8i_dw_hdmi 16384 0
dw_hdmi 28672 2 dw_hdmi_i2s_audio,sun8i_dw_hdmi
cec 53248 2 dw_hdmi_cec,dw_hdmi
rc_core 32768 6 ir_lirc_codec,cec,lirc_dev,sunxi_cir
sun4i_tcon 28672 1 sun8i_dw_hdmi
sun8i_mixer 16384 0
sun4i_drm 16384 2
If I anyway install vdpau and try to see vdpauinfo I get:
vdpauinfo says:
display: :0 screen: 0
Error creating VDPAU device: 25
So I am a bit disappointed and running out of ideas to find a solution to this problem.
Did anybody have some advice (or even better, a recipe) for me ?
Thanks in advance for your help,
Loic