You are not logged in.

#1 2013-08-11 01:01:01

xoma
Member
Registered: 2013-08-10
Posts: 17

mplayer2 will only play videos using the x11 driver

I'm having trouble using mplayer2 to play videos using the radeon video driver.  It keeps defaulting to x11 because vaapi and xv don't want to work.

MPlayer2 2.0-726-g6c87a98 (C) 2000-2012 MPlayer Team
Cannot open file '/home/tom/.mplayer/input.conf': No such file or directory
Failed to open /home/tom/.mplayer/input.conf.
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick

Playing something.mp4.
Detected file format: QuickTime / MOV (libavformat)
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (aac), -aid 0, -alang und
Clip info:
 major_brand: mp42
 minor_version: 0
 compatible_brands: isommp42
 creation_time: 2011-10-11 15:34:23
Load subtitles in .
Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory
[vdpau] Error when calling vdp_device_create_x11: 1
[VO_XV] It seems there is no Xvideo support for your video card available.
[VO_XV] Run 'xvinfo' to verify its Xv support and read
[VO_XV] DOCS/HTML/en/video.html#xv!
[VO_XV] See 'mplayer -vo help' for other (non-xv) video out drivers.
[VO_XV] Try -vo x11.
[ass] auto-open
Selected video codec: H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [libavcodec]
Selected audio codec: AAC (Advanced Audio Coding) [libavcodec]
AUDIO: 44100 Hz, 2 ch, floatle, 152.0 kbit/5.39% (ratio: 19003->352800)
AO: [pulse] Init failed: Connection refused
AO: [alsa] 48000Hz 2ch floatle (4 bytes per sample)
Starting playback...
VIDEO:  1280x720  30.000 fps  2394.7 kbps (299.3 kB/s)
VO: [x11] 1280x720 => 1280x720 Planar YV12 
[swscaler @ 0x7fc7bc212e60]using unscaled yuv420p -> bgra special converter
Colorspace details not fully supported by selected vo.

I'm not sure if this belongs in the hardware section or not.

Last edited by xoma (2013-08-11 01:03:10)

Offline

#2 2013-08-11 01:21:24

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: mplayer2 will only play videos using the x11 driver

What card is this? What's the output of 'mplayer -vo help'?

Offline

#3 2013-08-11 01:28:52

xoma
Member
Registered: 2013-08-10
Posts: 17

Re: mplayer2 will only play videos using the x11 driver

MPlayer2 2.0-726-g6c87a98 (C) 2000-2012 MPlayer Team
Available video output drivers:
	vdpau	VDPAU with X11
	xv	X11/Xv
	gl3	OpenGL 3.x
	gl	OpenGL
	x11	X11 ( XImage/Shm )
	sdl	SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
	caca	libcaca
	v4l2	V4L2 MPEG Video Decoder Output
	null	Null video output
	yuv4mpeg	yuv4mpeg output for mjpegtools
	png	PNG file
	jpeg	JPEG file
	gif89a	animated GIF output
	tga	Targa output
	pnm	PPM/PGM/PGMYUV file
	md5sum	md5sum of each frame
	gl_nosw	OpenGL no software rendering

It's an HD 7770

Offline

#4 2013-08-11 01:34:17

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: mplayer2 will only play videos using the x11 driver

What's the output of xvinfo?

Offline

#5 2013-08-11 01:36:35

xoma
Member
Registered: 2013-08-10
Posts: 17

Re: mplayer2 will only play videos using the x11 driver

X-Video Extension version 2.2
screen #0
 no adaptors present

Offline

#6 2013-08-11 01:53:50

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: mplayer2 will only play videos using the x11 driver

What's the output of 'xrandr'?

Offline

#7 2013-08-11 01:55:27

xoma
Member
Registered: 2013-08-10
Posts: 17

Re: mplayer2 will only play videos using the x11 driver

Screen 0: minimum 320 x 200, current 1600 x 900, maximum 16384 x 16384
DisplayPort-0 connected 1600x900+0+0 (normal left inverted right x axis y axis) 443mm x 249mm
   1600x900       60.0*+
   1280x1024      75.0     60.0  
   1440x900       75.0     59.9  
   1280x960       60.0  
   1366x768       60.0  
   1360x768       60.0  
   1280x800       74.9     59.8  
   1152x864       75.0  
   1280x768       74.9     59.9  
   1280x720       59.9  
   1024x768       75.0     70.1     60.0  
   1024x576       60.0  
   800x600        72.2     75.0     60.3     56.2  
   848x480        60.0  
   640x480        75.0     72.8     60.0  
   720x400        70.1  
HDMI-0 disconnected (normal left inverted right x axis y axis)
DVI-0 disconnected (normal left inverted right x axis y axis)
DVI-1 disconnected (normal left inverted right x axis y axis)

Offline

#8 2013-08-11 08:22:13

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: mplayer2 will only play videos using the x11 driver

if you happen to be using glamor as accelmethod, xv doesn't currently work with it.
I switched to using gl2 output because of this, you could try if that works for you.

never bothered to mess with vdpau myself, but this

Failed to open VDPAU backend libvdpau_nvidia.so: cannot open shared object file: No such file or directory

suggest it is trying to use nvidia's vdpau backend for you ati card. did you check the vdpau section in arch wiki mplayer page?

Last edited by ooo (2013-08-11 08:30:09)

Offline

#9 2013-08-11 16:38:22

xoma
Member
Registered: 2013-08-10
Posts: 17

Re: mplayer2 will only play videos using the x11 driver

Thanks ooo.  It says on the wiki people using southern bridge have glamor automatically enabled.  Is there a way to disable this besides recompiling the driver?

EDIT: I disabled glamor and rebooted by recompiling the driver.  Didn't change anything.

Last edited by xoma (2013-08-11 16:51:12)

Offline

#10 2013-08-11 21:42:30

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: mplayer2 will only play videos using the x11 driver

normally you should be able to revert back to EXA acceleration (which is  actually really slow compared to glamor) by putting something like this in/etc/X11/xorg.conf.d/20-radeon.conf

Section "Device"
	Identifier  "My Graphics Card"
	Driver	"radeon"
	Option	"AccelMethod" "EXA"
EndSection

but, apparently exa support might still be missing for radeonsi. x.org radeon feature page says 'gallium' and even though I keep hearing about gallium drivers I have no idea what that could mean in practice.

if I'm not mistaken xv support for glamor was going to be gsoc project this year so hopefully this will be fixed in near future.

looks like vdpau should work with glamor (and radeonsi) but again, I have very limited experience of so I really can't tell for sure.


sorry I couldn't help much. best advice I can give is using opengl output until things get better..

Last edited by ooo (2013-08-11 21:47:10)

Offline

#11 2013-08-11 21:48:15

Gusar
Member
Registered: 2009-08-25
Posts: 3,607

Re: mplayer2 will only play videos using the x11 driver

There is no EXA for radeonSI and there never will be, there is only glamor. Xv was indeed a GSoC project, but it never even started, so don't count on having Xv support anytime soon.

VDPAU works, but only with mesa 9.2, which isn't released yet. Until it is (release date is August 22nd), you need to use mesa-git from AUR.

Offline

#12 2013-08-11 22:27:58

xoma
Member
Registered: 2013-08-10
Posts: 17

Re: mplayer2 will only play videos using the x11 driver

Thanks guys.  I think I'll just wait until the software I need is released then.  On my hardware X11 actually works good enough even for 1080p videos.  But it's good to know that I'll be able to use VDPAU soon.

EDIT: I thought EXA was for mostly newer cards?  I have it enabled in one of my config files.  Should I disable it?

Last edited by xoma (2013-08-11 22:31:27)

Offline

#13 2013-08-11 22:40:54

ooo
Member
Registered: 2013-04-10
Posts: 1,638

Re: mplayer2 will only play videos using the x11 driver

exa is older acceleration method and slower than glamor.

If you have enabled it, xorg will simply fall back to glamor since exa isn't supported for your card.

Offline

Board footer

Powered by FluxBB