[Libva] CBR encoding fails

Artem Makhutov artem at makhutov.org
Sun Jul 20 10:34:34 PDT 2014


Hello,

I am trying to do CBR encoding of a video.

I am using lates git master of libva and libva-intel-drivers.

Before commit "745340dd013399f64507de73401ab3adb712dad5 in intel-drivers (Encoding: Use the different delimeter to pass packed_rawdata and slice_header based on VAConfigAttribEncPackedHeaders attribute)" it just segfaults in intel_mfc_brc_prepare.
After this commit I am getting this:

h264encode -w 1920 -h 1080 --srcyuv /tmp/123.yuv -f 25 -n 0 --rcmode CBR --bitrate 8500000
Source YUV file /tmp/123.yuv with 1376 frames
Source frame is 1920x1080 and will code clip to 1920x1088 with crop


INPUT:Try to encode H264...
INPUT: RateControl  : CBR
INPUT: Resolution   : 1920x1080, 1376 frames
INPUT: FrameRate    : 25
INPUT: Bitrate      : 8500000
INPUT: Slieces      : 1
INPUT: IntraPeriod  : 30
INPUT: IDRPeriod    : 60
INPUT: IpPeriod     : 1
INPUT: Initial QP   : 26
INPUT: Min QP       : 0
INPUT: Source YUV   : FILE:/tmp/123.yuv (fourcc NV12)
INPUT: Coded Clip   : /tmp/test.264
INPUT: Rec   Clip   : Not save reconstructed frame


libva info: VA-API version 0.35.2
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib64/va/drivers/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_35
libva info: va_openDriver() returns 0
Use profile VAProfileH264High
Support rate control mode (0x12):CBR CQP
Support VAConfigAttribEncPackedHeaders
Support packed sequence headers
Support packed picture headers
Support packed slice headers
Support packed misc headers
Support 1 RefPicList0 and 1 RefPicList1
WARNING: packed slice_header data is missing for some slice under packed SLICE_HEADER mode
encode_frames:vaEndPicture (2013) failed,exit

Also any stable releases segfaults when trying to encode CBR.

Any chance to fix it?

Thanks, Artem


-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 4291 bytes
Desc: Kryptographische S/MIME-Signatur
URL: <http://lists.freedesktop.org/archives/libva/attachments/20140720/e5b4f5d3/attachment.bin>


More information about the Libva mailing list