[Libva] Fwd: libVA playback mpeg2 failed.

stephen xi stephenxi08 at gmail.com
Wed Oct 28 05:20:55 PDT 2009


HI,Admin:
Can i have post priviliege ?
Thanks
Stephen

---------- Forwarded message ----------
From: stephen xi <stephenxi08 at gmail.com>
Date: Wed, Oct 28, 2009 at 5:46 PM
Subject: libVA playback mpeg2 failed.
To: libva at lists.freedesktop.org


HI, Guys
Could you help check why I can not playback MPEG2 with VAAPI at G45 ?

Thanks for advance!

Stephen



Steps:

1. Prepare a new ubuntu9.04 for Intel G45.

2. Download the latest libva (libva-latest.tar.gz ) from
http://www.splitted-desktop.com/~gbeauchesne/libva/.

3. The tarball contains the upstream libva sources. Patches are in the
debian/patches directory. Patch it.

$ dpkg-buildpackage -rfakeroot -uc -us

4. $  ./configure –prefix=/usr  --enable-i965-driver

5. $  make && make install

Result: 1) It will create and install libva-0.31.0.3.so.1.0.0 into /usr/lib/
and make the /usr/lib/libva.so -> libva-0.31.0.3.so.1.0.0 link;

            2) It will create and install i965_drv_video.so into
/usr/lib/va/drivers/

6. Download the latest mplayer-vaapi package from
http://www.splitted-desktop.com/~gbeauchesne/mplayer-vaapi/,

7. Make sure you also have `svn' (subversion) and all necessary MPlayer
libraries.

$ apt-get install subversion

$ apt-get build-dep mplayer

8. unpack mplayer tarball and run the supplied script to build mplayer-vaapi


   $ ./Checkout-patch-build.sh

9. Copy the “mplayer” executable program into /usr/local/bin or /usr/bin.

10. Made the requirement environment variable.

$ export LIBVA_DRIVERS_PATH=/usr/lib/va/drivers/



11. Running MPlayer with vaapi.

$ mplayer –vo vaapi <URI>

                        Result: can’t play video by vaapi yet. FYI attached
logs.



Logs:

roott at test-desktop:/home/mplayer/mplayer-vaapi-20091015/mplayer-vaapi.svn#
mplayer -vo vaapi /home/MPEG2_720x480_30fps_2M.mpg

MPlayer SVN-r29766-4.3.3 (C) 2000-2009 MPlayer Team

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 /home/MPEG2_720x480_30fps_2M.mpg.

MPEG-PS file format detected.

VIDEO:  MPEG2  720x480  (aspect 2)  30.000 fps  2000.0 kbps (250.0 kbyte/s)

libva: libva version 0.31.0-sds3

libva: va_getDriverName() returns 0

libva: Trying to open /usr/lib/va/drivers//i965_drv_video.so

libva: va_openDriver() returns 0

==========================================================================

Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough

Could not find matching colorspace - retrying with -vf scale...

Opening video filter: [scale]

The selected video_out device is incompatible with this codec.

Try appending the scale filter to your filter list,

e.g. -vf spp,scale instead of -vf spp.

VDecoder init failed :(

Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family

Unsupported PixelFormat -1

Selected video codec: [ffmpeg2] vfm: ffmpeg (FFmpeg MPEG-2)

==========================================================================

==========================================================================

Opening audio decoder: [mp3lib] MPEG layer-2, layer-3

AUDIO: 32000 Hz, 2 ch, s16le, 192.0 kbit/18.75% (ratio: 24000->128000)

Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)

==========================================================================

AO: [oss] 32000Hz 2ch s16le (2 bytes per sample)

Starting playback...

Could not find matching colorspace - retrying with -vf scale...

Opening video filter: [scale]

The selected video_out device is incompatible with this codec.

Try appending the scale filter to your filter list,

e.g. -vf spp,scale instead of -vf spp.



FATAL: Could not initialize video filters (-vf) or video output (-vo).



mplayer: i965_drv_video.c:809: i965_DestroyBuffer: Assertion `obj_buffer'
failed.





MPlayer interrupted by signal 6 in module: uninit_vo

- MPlayer crashed. This shouldn't happen.

  It can be a bug in the MPlayer code _or_ in your drivers _or_ in your

  gcc version. If you think it's MPlayer's fault, please read

  DOCS/HTML/en/bugreports.html and follow the instructions there. We can't
and

  won't help unless you provide this information when reporting a possible
bug.

root at test-desktop:/home/mplayer/mplayer-vaapi-20091015/mplayer-vaapi.svn#
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freedesktop.org/archives/libva/attachments/20091028/34910731/attachment-0001.htm 


More information about the Libva mailing list