[Libva] Status of libva and mplayer/ffmpeg?
Erik Slagter
erik at slagter.name
Wed Oct 12 00:30:48 PDT 2011
>> It compiles okay, but when I try to run it, it segfaults. This only happens
>> when no filters are specified, otherwise it just runs unaccellerated. Any
>> idea?
>
> You probably have default filters specified in the global or your
> personal mplayer config file.
No, commented everything out. I also tried with -vf-clr explicitly.
>> eos erik:/nfs/video/muziek $ mplayer -vo vaapi -va vaapi 'BBC Children In
>> Need 2010.mp4'
>
> Please prefix your command with "gdb --args" (without double quotes),
> then in gdb:
> $ run
> $ bt (when it crashes).
This might be a problem with the current mplayer itself, as this mplayer
also crashes without -vo vaapi -va vaapi. I will check that. In "vaapi"
it yields abort, in "normal" mode segfault...
Here you go with this command line:
gdb --args ~/mplayer -vf-clr -vo vaapi -va-vaapi 'test.ts'
Unsupported PixelFormat 61
[VD_FFMPEG] Trying pixfmt=1.
Movie-Aspect is undefined - no prescaling applied.
VO: [vaapi] 1920x1088 => 1920x1088 H.264 VA-API Acceleration [fs]
[VD_FFMPEG] XVMC-accelerated MPEG-2.
mplayer: libmpcodecs/vf.c:279: vf_get_image: Assertion `h == -1 || h >=
vf->h' failed.
Program received signal SIGABRT, Aborted.
[Switching to Thread 0x7ffff728b700 (LWP 758)]
0x0000003c2ac352d5 in raise () from /lib64/libc.so.6
Missing separate debuginfos, use: debuginfo-install
SDL-1.2.14-12.fc15.x86_64 a52dec-0.7.4-15.fc11.x86_64
alsa-lib-1.0.24-2.fc15.x86_64
alsa-plugins-pulseaudio-1.0.24-2.fc15.x86_64
audiofile-0.2.7-2.fc15.x86_64 bzip2-libs-1.0.6-3.fc15.x86_64
dbus-libs-1.4.6-5.fc15.x86_64 esound-libs-0.2.41-4.fc15.x86_64
expat-2.0.1-11.fc15.x86_64 faad2-libs-2.7-1.fc11.x86_64
flac-1.2.1-6.fc12.x86_64 fontconfig-2.8.0-3.fc15.x86_64
freetype-2.4.4-5.fc15.x86_64 giflib-4.1.6-4.fc15.x86_64
glibc-2.14-5.x86_64 lame-libs-3.98.4-1.fc14.x86_64
lcms-libs-1.19-4.fc15.x86_64 libICE-1.0.6-3.fc15.x86_64
libSM-1.2.0-2.fc15.x86_64 libX11-1.4.3-1.fc15.x86_64
libXau-1.0.6-2.fc15.x86_64 libXcursor-1.1.11-3.fc15.x86_64
libXdamage-1.1.3-2.fc15.x86_64 libXext-1.2.0-2.fc15.x86_64
libXfixes-5.0-1.fc15.x86_64 libXi-1.4.3-2.fc15.x86_64
libXinerama-1.1.1-2.fc15.x86_64 libXrender-0.9.6-2.fc15.x86_64
libXtst-1.2.0-2.fc15.x86_64 libXv-1.0.6-2.fc15.x86_64
libXvMC-1.0.6-3.fc15.x86_64 libXxf86vm-1.1.1-2.fc15.x86_64
libasyncns-0.8-2.fc15.x86_64 libdrm-2.4.26-1.fc15.x86_64
libgcc-4.6.1-9.fc15.x86_64 libjpeg-turbo-1.1.1-1.fc15.x86_64
libmad-0.15.1b-13.fc12.x86_64 libmng-1.0.10-5.fc15.x86_64
libogg-1.2.2-3.fc15.x86_64 libpciaccess-0.12.1-1.fc15.x86_64
libpng-1.2.46-1.fc15.x86_64 libsndfile-1.0.25-1.fc15.x86_64
libstdc++-4.6.1-9.fc15.x86_64 libuuid-2.19.1-1.4.fc15.x86_64
libva-201110051317-1ems.x86_64 libvorbis-1.3.2-1.fc15.x86_64
libxcb-1.7-2.fc15.x86_64 live555-0-0.30.2011.01.24.fc15.x86_64
lzo-2.06-1.fc15.x86_64 mesa-libGL-7.11-1.fc15.x86_64
mesa-libGLU-7.11-1.fc15.x86_64 opencore-amr-0.1.2-1.fc12.x86_64
pulseaudio-libs-0.9.22-5.fc15.x86_64 speex-1.2-0.13.rc1.fc15.x86_64
tcp_wrappers-libs-7.6-60.fc15.x86_64 va-intel-201110051322-1ems.x86_64
xcb-util-0.3.6-2.fc15.x86_64 zlib-1.2.5-3.fc15.x86_64
(gdb) where
#0 0x0000003c2ac352d5 in raise () from /lib64/libc.so.6
#1 0x0000003c2ac36beb in abort () from /lib64/libc.so.6
#2 0x0000003c2ac2dc5e in __assert_fail_base () from /lib64/libc.so.6
#3 0x0000003c2ac2dd02 in __assert_fail () from /lib64/libc.so.6
#4 0x00000000004e2f4c in vf_get_image (vf=<optimized out>,
outfmt=1447100464, mp_imgtype=<optimized out>, mp_imgflag=4111, w=1920,
h=<optimized out>)
at libmpcodecs/vf.c:279
#5 0x00000000004e0f2f in mpcodecs_get_image (sh=<optimized out>,
mp_imgtype=<optimized out>, mp_imgflag=<optimized out>, w=<optimized out>,
h=<optimized out>) at libmpcodecs/vd.c:390
#6 0x00000000005a67ee in get_buffer (avctx=0x15212e0,
pic=0x7fffe8085660) at libmpcodecs/vd_ffmpeg.c:599
#7 0x00000000008456dc in alloc_frame_buffer (pic=0x7fffe8085660,
s=0x1690c70) at libavcodec/mpegvideo.c:239
#8 ff_alloc_picture (s=0x1690c70, pic=0x7fffe8085660, shared=<optimized
out>) at libavcodec/mpegvideo.c:284
#9 0x00000000008471a6 in MPV_frame_start (s=0x1690c70, avctx=0x15212e0)
at libavcodec/mpegvideo.c:1089
#10 0x0000000000792919 in ff_h264_frame_start (h=0x1690c70) at
libavcodec/h264.c:1253
#11 0x00000000007965f9 in decode_slice_header (h=0x1690c70,
h0=<optimized out>) at libavcodec/h264.c:2802
#12 0x00000000007993cf in decode_nal_units (h=0x1690c70, buf=0x182a730
"", buf_size=170421) at libavcodec/h264.c:3779
#13 0x0000000000799dde in decode_frame (avctx=0x15212e0, data=0x151ad28,
data_size=0x151ae98, avpkt=<optimized out>) at libavcodec/h264.c:3968
#14 0x0000000000875b8f in frame_worker_thread (arg=0x151abd0) at
libavcodec/pthread.c:302
#15 0x0000003b0cc07b31 in start_thread () from /lib64/libpthread.so.0
#16 0x0000003c2acdfd2d in clone () from /lib64/libc.so.6
More information about the Libva
mailing list