[Libva] VAAPI h264 h264encode test app fails

ykzhao yakui.zhao at intel.com
Wed Oct 17 18:01:59 PDT 2012


On Wed, 2012-10-17 at 12:24 -0600, Ratin wrote:
> Reading symbols from /usr/local/bin/h264encode...done.
> (gdb) r -w 1920 -h 1080 -o test.h264
> Starting program: /usr/local/bin/h264encode -w 1920 -h 1080 -o test.h264
> [Thread debugging using libthread_db enabled]
> Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
> libva info: VA-API version 0.34.0
> libva info: va_getDriverName() returns 0
> libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
> libva info: Found init function __vaDriverInit_0_33
> libva info: va_openDriver() returns 0
> Coded 400 frames, 1920x1080, save the coded file into test.h264
> Loading data into surface 15.....
> h264encode: i965_drv_video.c:1496: i965_EndPicture: Assertion
> `obj_context->codec_state.encode.seq_param' failed.
>       |00000000(I)(3240000 bytes coded)
> Program received signal SIGABRT, Aborted.
> 0x00007ffff72ff445 in raise () from /lib/x86_64-linux-gnu/libc.so.6
> 
> 
> The encoded file is there but when I try to play the file with
> mplayer, it has an error :
> mplayer /workspace/ratin/videos/test.h264
> MPlayer SVN-r32819-4.6 (C) 2000-2011 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 /workspace/ratin/videos/test.h264.
> Invalid seek to negative position!
> 
> 
> Exiting... (End of file)

Which platform is used ? Ivybridge or Sandybridge?  
BTW: Are you using the staging branch or master branch for the libva and
the driver? 

It will be better that you can try whether the avcenc encoding tool is
OK in your test.
> 
> How to fix this?
> 
> Vainfo:
> 
> libva info: VA-API version 0.34.0
> libva info: va_getDriverName() returns 0
> libva info: Trying to open /usr/local/lib/dri/i965_drv_video.so
> libva info: Found init function __vaDriverInit_0_33
> libva info: va_openDriver() returns 0
> vainfo: VA-API version: 0.34 (libva 1.1.0)
> vainfo: Driver version: Intel i965 driver - 1.0.19.pre1
> vainfo: Supported profile and entrypoints
>       VAProfileMPEG2Simple            :	VAEntrypointVLD
>       VAProfileMPEG2Main              :	VAEntrypointVLD
>       VAProfileH264Baseline           :	VAEntrypointVLD
>       VAProfileH264Baseline           :	VAEntrypointEncSlice
>       VAProfileH264Main               :	VAEntrypointVLD
>       VAProfileH264Main               :	VAEntrypointEncSlice
>       VAProfileH264High               :	VAEntrypointVLD
>       VAProfileH264High               :	VAEntrypointEncSlice
>       VAProfileVC1Simple              :	VAEntrypointVLD
>       VAProfileVC1Main                :	VAEntrypointVLD
>       VAProfileVC1Advanced            :	VAEntrypointVLD
> _______________________________________________
> Libva mailing list
> Libva at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/libva




More information about the Libva mailing list