You are not logged in.

#1 2011-12-14 22:14:57

jhnns
Member
Registered: 2011-12-14
Posts: 5

No picture with hardware acceleration on mplayer

Like the title says, i get this error when i try to run mplayer:

$ mplayer -vo vaapi -va vaapi virtual/t.mkv 
MPlayer SVN-r34357-4.6.2 (C) 2000-2011 MPlayer Team
176 audio & 379 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing virtual/t.mkv.
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0, 
[lavf] stream 1: audio (dca), -aid 0, -alang eng, DTS-CORE 1536K
VIDEO:  [H264]  1920x800  0bpp  23.976 fps    0.0 kbps ( 0.0 kbyte/s)
Load subtitles in virtual/
libva: VA-API version 0.32.0
libva: User requested driver 'xvba'
libva: Trying to open /usr/lib/dri//xvba_drv_video.so
libva error: /usr/lib/dri//xvba_drv_video.so init failed
libva: va_openDriver() returns -1
[vo_vaapi] vaInitialize(): unknown libva error
Error opening/initializing the selected video_out (-vo) device.
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 1536.0 kbit/100.00% (ratio: 192000->192000)
Selected audio codec: [ffdca] afm: ffmpeg (FFmpeg DTS)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
Starting playback...
A:   3.0 (03.0) of 58.6 (58.6)  6.1% 
$ mplayer -vo help
MPlayer SVN-r34357-4.6.2 (C) 2000-2011 MPlayer Team
176 audio & 379 video codecs
Available video output drivers:
	xv	X11/Xv
	gl_nosw	OpenGL no software rendering
	x11	X11 ( XImage/Shm )
	xover	General X11 driver for overlay capable video output drivers
	sdl	SDL YUV/RGB/BGR renderer (SDL v1.1.7+ only!)
	gl	OpenGL
	gl2	X11 (OpenGL) - multiple textures version
	dga	DGA ( Direct Graphic Access V2.0 )
	fbdev	Framebuffer Device
	fbdev2	Framebuffer Device
	matrixview	MatrixView (OpenGL)
	aa	AAlib
	caca	libcaca
	v4l2	V4L2 MPEG Video Decoder Output
	xvidix	X11 (VIDIX)
	cvidix	console VIDIX
	null	Null video output
	xvmc	XVideo Motion Compensation
	mpegpes	MPEG-PES to DVB card
	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
	mng	MNG file
	vaapi	VA API with X11

I get sound, but no picture. If i run mplayer without the extra options i get a picture, but no hw acceleration.

I run catalyst and have installed xvba-video and mplayer-vaapi. The card it runs on is ATI HD 6310 over HDMI
Any ideas or tips on what I can do?

Last edited by jhnns (2011-12-14 22:25:31)

Offline

#2 2011-12-14 22:20:44

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: No picture with hardware acceleration on mplayer

isn't clear enough?

libva: Trying to open /usr/lib/dri//xvba_drv_video.so
libva error: /usr/lib/dri//xvba_drv_video.so init failed
libva: va_openDriver() returns -1
[vo_vaapi] vaInitialize(): unknown libva error
Error opening/initializing the selected video_out (-vo) device.

same issue should exist if you type vainfo


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2011-12-14 22:30:05

jhnns
Member
Registered: 2011-12-14
Posts: 5

Re: No picture with hardware acceleration on mplayer

wonder wrote:

isn't clear enough?

libva: Trying to open /usr/lib/dri//xvba_drv_video.so
libva error: /usr/lib/dri//xvba_drv_video.so init failed
libva: va_openDriver() returns -1
[vo_vaapi] vaInitialize(): unknown libva error
Error opening/initializing the selected video_out (-vo) device.

same issue should exist if you type vainfo

$ vainfo 
vainfo: Error, can't open display: ''

I guess its clear, but i dont know how to fix it. When i type mplayer -vo help it says that I have vaapi.

Offline

#4 2011-12-16 00:03:38

lamnk
Member
Registered: 2008-01-30
Posts: 65
Website

Re: No picture with hardware acceleration on mplayer

Hey I got the same problem with the same card, after install the new kernel and fglrx, i guess, before that mplayer works fine:

lamnk:~ % vainfo                                                 
libva: VA-API version 0.32.0
libva: User requested driver 'xvba'
libva: Trying to open /usr/lib/dri//xvba_drv_video.so
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  140 (ATIFGLEXTENSION)
  Minor opcode of failed request:  67 ()
  Value in failed request:  0x17
  Serial number of failed request:  10
  Current serial number in output stream:  10
lamnk:~ % mplayer hello.avi
MPlayer SVN-r34357-4.6.2 (C) 2000-2011 MPlayer Team
176 audio & 379 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.

Playing hello.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO:  [XVID]  640x352  12bpp  23.976 fps  920.6 kbps (112.4 kbyte/s)
Clip info:
 Software: Nandub v1.0rc2
Load subtitles in ./
SUB: Added subtitle file (1): ./hello.sub
[vo_vaapi] Using OpenGL rendering
libva: VA-API version 0.32.0
libva: User requested driver 'xvba'
libva: Trying to open /usr/lib/dri//xvba_drv_video.so
X11 error: BadValue (integer parameter out of range for operation)
xvba_video: XVBA_CreateContext(): status 11
libva error: /usr/lib/dri//xvba_drv_video.so init failed
libva: va_openDriver() returns -1
[vo_vaapi] vaInitialize(): unknown libva error
Error opening/initializing the selected video_out (-vo) device.
==========================================================================
Opening audio decoder: [mpg123] MPEG 1.0/2.0/2.5 layers I, II, III
AUDIO: 48000 Hz, 2 ch, s16le, 32.0 kbit/2.08% (ratio: 4000->192000)
Selected audio codec: [mpg123] afm: mpg123 (MPEG 1.0/2.0/2.5 layers I, II, III)
==========================================================================
[AO OSS] audio_setup: Can't open audio device /dev/dsp: No such file or directory
AO: [alsa] 48000Hz 2ch s16le (2 bytes per sample)
Video: no video
It's for you, right?
A:   9.0 (09.0) of 11029.7 ( 3:03:49.6)  1.3% 


MPlayer interrupted by signal 2 in module: play_audio
A:   9.1 (09.0) of 11029.7 ( 3:03:49.6)  1.3% 

Exiting... (Quit)

Offline

#5 2011-12-16 00:30:12

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: No picture with hardware acceleration on mplayer

Offline

#6 2011-12-16 00:43:07

lamnk
Member
Registered: 2008-01-30
Posts: 65
Website

Re: No picture with hardware acceleration on mplayer

I rebuilt the module with

% sudo /usr/bin/catalyst_build_module all

then reinstalled all the xvba related packages mentioned in Arch Wiki then rebooted.

Now plain mplayer doesn't work. I must specify -va vaapi and -vo vaapi switches. Then it works. Otherwise X will crash.

Offline

#7 2011-12-16 01:16:49

David Batson
Member
Registered: 2011-10-13
Posts: 640

Re: No picture with hardware acceleration on mplayer

I don't really use mplayer, but I noticed with VLC that I had to turn off hardware acceleration in VLC preferences for VLC to work.  Might need to do something similar in mplayer when not using vaapi.

Offline

#8 2011-12-17 00:52:37

lamnk
Member
Registered: 2008-01-30
Posts: 65
Website

Re: No picture with hardware acceleration on mplayer

Dunno, I work around the crash issue by adding "vo=vaapi" in .mplayer/config

The new Tear-Free-Desktop feature is really nice, it noticeably improve picture quality in videos.

Offline

#9 2011-12-18 08:55:11

jhnns
Member
Registered: 2011-12-14
Posts: 5

Re: No picture with hardware acceleration on mplayer

David Batson wrote:

Thanks! I installed ubuntu and followed that guide, it worked out nicely.
I guess i'm not ready to take the arch step on to the desktop yet.

Offline

Board footer

Powered by FluxBB