mpv doesn't display video on raspberry pi 2

This forum is for discussion about general software issues.

mpv doesn't display video on raspberry pi 2

Postby xenphor » Fri Oct 09, 2015 5:46 pm

I'm having issues with mpv on archlinux arm. I can get it to output audio but it displays no video. Here's what it says on startup:

$this->bbcode_second_pass_code('', '
$ mpv Sonic_the_Hedgehog_Megamix_V5.0_Beta_-_Walkthrough-HGoa65UjBJs.mp4
Playing: Sonic_the_Hedgehog_Megamix_V5.0_Beta_-_Walkthrough-HGoa65UjBJs.mp4
(+) Video --vid=1 (*) (h264)
(+) Audio --aid=1 --alang=und (*) (aac)
[vo/opengl] Suspected software renderer or indirect context.
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vo/vdpau] Error when calling vdp_device_create_x11: 1
[vo/xv] No Xvideo support found.
libva info: VA-API version 0.38.0
libva info: va_getDriverName() returns -1
libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
[vaapi] vaInitialize(): unknown libva error
Error opening/initializing the selected video_out (-vo) device.
Video: no video
AO: [alsa] 44100Hz stereo 2ch float
A: 00:00:15 / 00:37:48 (0%)
')

It seems it can't find a video out device? I tried vo=rpi and vo=x11 but neither worked.
xenphor
 
Posts: 12
Joined: Wed Mar 26, 2014 1:19 pm

Re: mpv doesn't display video on raspberry pi 2

Postby gripped » Sat Oct 10, 2015 9:43 pm

The x11 video output was removed at version 0.10.0. That broke video for me as well.
You can compile mpv with egl video output support and that should give you video if you have egl working on your board.

I created a pull request to enable the egl output but it has not been accepted
https://github.com/archlinuxarm/PKGBUILDs/pull/1270

The good news is that the mpv dev's have reverted the removal of the x11 driver in git master
https://github.com/mpv-player/mpv/commi ... a2c8a63b76
so 0.12.0 should have the x11 video output again.
gripped
 
Posts: 22
Joined: Sat Nov 30, 2013 1:28 pm

Re: mpv doesn't display video on raspberry pi 2

Postby xenphor » Sun Oct 11, 2015 2:39 am

Does mpv have hardware acceleration on archlinux arm? What would be the differences between using x11 and egl? You said you have to have egl already working somehow?
xenphor
 
Posts: 12
Joined: Wed Mar 26, 2014 1:19 pm

Re: mpv doesn't display video on raspberry pi 2

Postby gripped » Sun Oct 11, 2015 9:15 am

It's simply a case of adding --enable-egl-x11 to the configure options when you compile mpv. (You can just edit the PKGBUILD and use makepkg to build a new package)
Then starting it with --vo=opengl:backend=x11egl:es

On my Odroid XU3 this then means the video output is using egl provided by the mali chip. So yes hardware accelerated. Scaling and filters etc work much better.
The actual video decoding is still done by ffmpeg ie software decoding.

I don't know much about the Rpi2 so don't know if it will work for you.
You'd have to try it.
gripped
 
Posts: 22
Joined: Sat Nov 30, 2013 1:28 pm

Re: mpv doesn't display video on raspberry pi 2

Postby summers » Sun Oct 11, 2015 12:28 pm

I thought someone did that accerated video code, when broadcom opened up the spec of the vc4 graphics chip. But checking:

http://dri.freedesktop.org/wiki/VC4/

And sounds like its just work in progress ...
Last edited by summers on Mon Oct 12, 2015 9:23 am, edited 1 time in total.
summers
 
Posts: 995
Joined: Sat Sep 06, 2014 12:56 pm

Re: mpv doesn't display video on raspberry pi 2

Postby WarheadsSE » Sun Oct 11, 2015 3:45 pm

IIRC, that is all handled through OMX.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: mpv doesn't display video on raspberry pi 2

Postby xenphor » Sun Oct 11, 2015 9:39 pm

So if it just uses ffmpeg to decode I'm assuming it can't do HD?
xenphor
 
Posts: 12
Joined: Wed Mar 26, 2014 1:19 pm

Re: mpv doesn't display video on raspberry pi 2

Postby gripped » Sun Oct 11, 2015 11:42 pm

It does 1080p on the XU3 just fine. ymmv.
gripped
 
Posts: 22
Joined: Sat Nov 30, 2013 1:28 pm

Re: mpv doesn't display video on raspberry pi 2

Postby xenphor » Sat Oct 17, 2015 10:27 pm

I got it to display video now with what was mentioned:

$this->bbcode_second_pass_code('', '
$ mpv --vo=opengl:backend=x11egl:es Sonic_the_Hedgehog_Megamix_V5.0_Beta_-_Walkthrough-HGoa65UjBJs.mp4
Playing: Sonic_the_Hedgehog_Megamix_V5.0_Beta_-_Walkthrough-HGoa65UjBJs.mp4
(+) Video --vid=1 (*) (h264)
(+) Audio --aid=1 --alang=und (*) (aac)
libEGL warning: DRI2: failed to authenticate
[vo/opengl] Suspected software renderer or indirect context.
[vo/opengl] High bit depth FBOs unsupported. Enabling dumb mode.
[vo/opengl] Most extended features will be disabled.
AO: [alsa] 44100Hz stereo 2ch float
VO: [opengl] 1280x720 yuv420p
AV: 00:00:06 / 00:37:48 (0%) A-V: 0.304 Dropped: 190

Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).

AV: 00:00:19 / 00:37:48 (0%) A-V: 2.107 Dropped: 540
')

Unfortunately it's way too slow. Do those opengl messages mean anything or is that normal?

edit: On the gentoo wiki it says there is an option to enable for hardware decoding on the raspberry pi:
https://wiki.gentoo.org/wiki/Mpv

Any way to access this on archlinux arm?

edit2: Apparently there is a rpi hwdec option but it doesn't help at all.

$this->bbcode_second_pass_code('', ' mpv --hwdec=help
Invalid value for option hwdec: help
Valid values are:
no
auto
vdpau
vda
videotoolbox
vaapi
vaapi-copy
dxva2-copy
rpi
')
xenphor
 
Posts: 12
Joined: Wed Mar 26, 2014 1:19 pm

Re: mpv doesn't display video on raspberry pi 2

Postby gripped » Sun Oct 18, 2015 7:51 am

As I said to begin with you would need to have egl/gles drivers working on your board for the egl video output to work via the gpu.
It seems you don't on the rpi2 ? So mesa is being used which is software, done on the cpu.

Looking at the configure options of mpv under
video outputs:
is
--disable-rpi disable Raspberry Pi support [autodetect]

Which suggests if you build your own package on your rpi2 the configure script might detect Raspberry Pi support and include it.
Or you could try specifically enabling it. --enable-rpi
I doubt it is enabled in the standard Alarm package ?
And whether this "Raspberry Pi support" refers to just the original rpi or the rpi2 as well I don't know.

Have a look on the mpv github and see what discussion you can find around the rpi2
gripped
 
Posts: 22
Joined: Sat Nov 30, 2013 1:28 pm


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron