vah264enc: there is an issue for 4k vbr encode
test cmdline:
gst-launch-1.0 -vf filesrc location=/home/focus/yuv/4k_2013_3840x2160_I420_75frames.yuv num-buffers=75 ! rawvideoparse format=i420 width=3840 height=2160 framerate=30 ! videoconvert chroma-mode=none dither=0 ! video/x-raw,format=NV12 ! vah264enc rate-control=vbr key-int-max=30 target-usage=4 num-slices=1 b-frames=3 target-percentage=70 bitrate=142857 ref-frames=1 ! video/x-h264,profile=main ! h264parse ! filesink location=test.h264
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
Got context from element 'vah264enc0': gst.va.display.handle=context, gst-display=(GstObject)"\(GstVaDisplayDrm\)\ vadisplaydrm1";
/GstPipeline:pipeline0/GstRawVideoParse:rawvideoparse0.GstPad:src: caps = video/x-raw, format=(string)I420, width=(int)3840, height=(int)2160, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, framerate=(fraction)30/1
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw, width=(int)3840, height=(int)2160, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, format=(string)NV12, chroma-site=(string)mpeg2
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)3840, height=(int)2160, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, format=(string)NV12, chroma-site=(string)mpeg2
/GstPipeline:pipeline0/GstVaH264Enc:vah264enc0: dct8x8 = false
/GstPipeline:pipeline0/GstVaH264Enc:vah264enc0: cpb-size = 408162
/GstPipeline:pipeline0/GstVaH264Enc:vah264enc0: b-frames = 0
/GstPipeline:pipeline0/GstVaH264Enc:vah264enc0.GstPad:src: caps = video/x-h264, profile=(string)main, level=(string)6.1, width=(int)3840, height=(int)2160, alignment=(string)au, stream-format=(string)byte-stream, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:src: caps = video/x-h264, profile=(string)main, level=(string)6.1, width=(int)3840, height=(int)2160, alignment=(string)au, stream-format=(string)byte-stream, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = video/x-h264, profile=(string)main, level=(string)6.1, width=(int)3840, height=(int)2160, alignment=(string)au, stream-format=(string)byte-stream, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2, parsed=(boolean)true
/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/x-h264, profile=(string)main, level=(string)6.1, width=(int)3840, height=(int)2160, alignment=(string)au, stream-format=(string)byte-stream, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2, parsed=(boolean)true
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:sink: caps = video/x-h264, profile=(string)main, level=(string)6.1, width=(int)3840, height=(int)2160, alignment=(string)au, stream-format=(string)byte-stream, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2
/GstPipeline:pipeline0/GstCapsFilter:capsfilter1.GstPad:sink: caps = video/x-h264, profile=(string)main, level=(string)6.1, width=(int)3840, height=(int)2160, alignment=(string)au, stream-format=(string)byte-stream, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2
/GstPipeline:pipeline0/GstVaH264Enc:vah264enc0.GstPad:sink: caps = video/x-raw, width=(int)3840, height=(int)2160, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, format=(string)NV12, chroma-site=(string)mpeg2
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)3840, height=(int)2160, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)30/1, format=(string)NV12, chroma-site=(string)mpeg2
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw, format=(string)I420, width=(int)3840, height=(int)2160, interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1, chroma-site=(string)mpeg2, framerate=(fraction)30/1
0:00:00.068594978 121102 0x56147cd825e0 ERROR vah264enc gstvah264enc.c:2984:gst_va_h264_enc_encode_frame:<vah264enc0> Encode frame error
0:00:00.068610177 121102 0x56147cd825e0 ERROR vah264enc gstvah264enc.c:3456:_encode_frame:<vah264enc0> Failed to encode the frame
ERROR: from element /GstPipeline:pipeline0/GstVaH264Enc:vah264enc0: Failed to encode the frame.
Additional debug info:
../sys/va/gstvah264enc.c(3554): gst_va_h264_enc_handle_frame (): /GstPipeline:pipeline0/GstVaH264Enc:vah264enc0
ERROR: pipeline doesn't want to preroll.
ERROR: from element /GstPipeline:pipeline0/GstRawVideoParse:rawvideoparse0: Internal data stream error.
Setting pipeline to NULL ...
Additional debug info:
../libs/gst/base/gstbaseparse.c(3681): gst_base_parse_loop (): /GstPipeline:pipeline0/GstRawVideoParse:rawvideoparse0:
streaming stopped, reason error (-5)
ERROR: pipeline doesn't want to preroll.
Freeing pipeline ...