gstreamer vaapiencode_h264 occasional caps rejected

Arjen Veenhuizen arjen.veenhuizen at tno.nl
Fri Jan 30 14:33:54 PST 2015


So I bumped into this problem today (git clone of current master, full clean
compile). Caps seem to be fine but it just won' t stick. When switching
vaapiencode_h264 for x264enc all works like a charm

gst-launch-1.0 -vvee  filesrc location= bbb_h264_only_mpeg2ts.ts ! tsdemux !
h264parse ! avdec_h264 ! videoconvert  ! queue ! vaapiencode_h264
rate-control=cbr bitrate=1024 keyframe-period=90 tune=none ! mpegtsmux !
filesink location=test.ts

Any ideas?

Relevant output LOG:

Setting pipeline to PAUSED ...
libva info: VA-API version 0.36.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/nvidia_drv_video.so
libva info: Found init function __vaDriverInit_0_32
libva info: va_openDriver() returns 0
0:00:00.111516307 11087      0x1510920 WARN                 basesrc
gstbasesrc.c:3480:gst_base_src_start_complete:<filesrc0> pad not activated
yet
Pipeline is PREROLLING ...
Got context from element 'vaapiencodeh264-0': gst.vaapi.Display=context,
display=(GstVaapiDisplay)NULL;
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:sink: caps =
"video/x-h264\,\ stream-format\=\(string\)byte-stream\,\
alignment\=\(string\)nal"
0:00:00.118739085 11087      0x14a3680 WARN               h264parse
gsth264parse.c:1056:gst_h264_parse_handle_frame:<h264parse0> broken/invalid
nal Type: 9 AU delimiter, Size: 2 will be dropped
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps =
"video/x-h264\,\ stream-format\=\(string\)avc\,\ alignment\=\(string\)au\,\
width\=\(int\)854\,\ height\=\(int\)480\,\ framerate\=\(fraction\)0/1\,\
parsed\=\(boolean\)true\,\ level\=\(string\)3\,\ profile\=\(string\)high\,\
codec_data\=\(buffer\)0164001effe100196764001eacd940d83de6e1000003000100000300300f162d9601000568ebecb22c"
/GstPipeline:pipeline0/avdec_h264:avdec_h264-0.GstPad:sink: caps =
"video/x-h264\,\ stream-format\=\(string\)avc\,\ alignment\=\(string\)au\,\
width\=\(int\)854\,\ height\=\(int\)480\,\ framerate\=\(fraction\)0/1\,\
parsed\=\(boolean\)true\,\ level\=\(string\)3\,\ profile\=\(string\)high\,\
codec_data\=\(buffer\)0164001effe100196764001eacd940d83de6e1000003000100000300300f162d9601000568ebecb22c"
/GstPipeline:pipeline0/avdec_h264:avdec_h264-0.GstPad:src: caps =
"video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)854\,\
height\=\(int\)480\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\
interlace-mode\=\(string\)progressive\,\ chroma-site\=\(string\)jpeg\,\
colorimetry\=\(string\)bt601\,\ framerate\=\(fraction\)0/1"
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps =
"video/x-raw\,\ format\=\(string\)I420\,\ width\=\(int\)854\,\
height\=\(int\)480\,\ pixel-aspect-ratio\=\(fraction\)1/1\,\
interlace-mode\=\(string\)progressive\,\ chroma-site\=\(string\)jpeg\,\
colorimetry\=\(string\)bt601\,\ framerate\=\(fraction\)0/1"
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = "video/x-raw\,\
format\=\(string\)I420\,\ width\=\(int\)854\,\ height\=\(int\)480\,\
pixel-aspect-ratio\=\(fraction\)1/1\,\
interlace-mode\=\(string\)progressive\,\ chroma-site\=\(string\)jpeg\,\
colorimetry\=\(string\)bt601\,\ framerate\=\(fraction\)0/1"
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = "video/x-raw\,\
format\=\(string\)I420\,\ width\=\(int\)854\,\ height\=\(int\)480\,\
pixel-aspect-ratio\=\(fraction\)1/1\,\
interlace-mode\=\(string\)progressive\,\ chroma-site\=\(string\)jpeg\,\
colorimetry\=\(string\)bt601\,\ framerate\=\(fraction\)0/1"
0:00:00.129330040 11087      0x14a36d0 ERROR                  vaapi
gstvaapiencoder.c:857:gst_vaapi_encoder_set_rate_control: unsupported rate
control mode (1)
0:00:00.129373527 11087      0x14a36d0 WARN            videoencoder
gstvideoencoder.c:647:gst_video_encoder_setcaps:<vaapiencodeh264-0> rejected
caps video/x-raw, format=(string)I420, width=(int)854, height=(int)480,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
chroma-site=(string)jpeg, colorimetry=(string)bt601, framerate=(fraction)0/1
0:00:00.129440203 11087      0x14a36d0 ERROR                  vaapi
gstvaapiencoder.c:857:gst_vaapi_encoder_set_rate_control: unsupported rate
control mode (1)
0:00:00.129464701 11087      0x14a36d0 WARN            videoencoder
gstvideoencoder.c:647:gst_video_encoder_setcaps:<vaapiencodeh264-0> rejected
caps video/x-raw, format=(string)I420, width=(int)854, height=(int)480,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
chroma-site=(string)jpeg, colorimetry=(string)bt601, framerate=(fraction)0/1
0:00:00.129487362 11087      0x14a36d0 WARN                GST_PADS
gstpad.c:3747:gst_pad_peer_query:<queue0:src> could not send sticky events
0:00:00.139479196 11087      0x14a36d0 ERROR                  vaapi
gstvaapiencoder.c:857:gst_vaapi_encoder_set_rate_control: unsupported rate
control mode (1)
0:00:00.139567487 11087      0x14a36d0 WARN            videoencoder
gstvideoencoder.c:647:gst_video_encoder_setcaps:<vaapiencodeh264-0> rejected
caps video/x-raw, format=(string)I420, width=(int)854, height=(int)480,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
chroma-site=(string)jpeg, colorimetry=(string)bt601, framerate=(fraction)0/1
0:00:00.139671637 11087      0x14a36d0 ERROR                  vaapi
gstvaapiencoder.c:857:gst_vaapi_encoder_set_rate_control: unsupported rate
control mode (1)
0:00:00.139706807 11087      0x14a36d0 WARN            videoencoder
gstvideoencoder.c:647:gst_video_encoder_setcaps:<vaapiencodeh264-0> rejected
caps video/x-raw, format=(string)I420, width=(int)854, height=(int)480,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
chroma-site=(string)jpeg, colorimetry=(string)bt601, framerate=(fraction)0/1
0:00:00.139786626 11087      0x14a36d0 ERROR                  vaapi
gstvaapiencoder.c:857:gst_vaapi_encoder_set_rate_control: unsupported rate
control mode (1)
0:00:00.139817638 11087      0x14a36d0 WARN            videoencoder
gstvideoencoder.c:647:gst_video_encoder_setcaps:<vaapiencodeh264-0> rejected
caps video/x-raw, format=(string)I420, width=(int)854, height=(int)480,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
chroma-site=(string)jpeg, colorimetry=(string)bt601, framerate=(fraction)0/1
0:00:00.140573096 11087      0x14a3680 WARN              mpegtsbase
mpegtsbase.c:1366:mpegts_base_loop:<tsdemux0> error: Internal data stream
error.
0:00:00.140605124 11087      0x14a3680 WARN              mpegtsbase
mpegtsbase.c:1366:mpegts_base_loop:<tsdemux0> error: stream stopped, reason
not-negotiated
ERROR: from element /GstPipeline:pipeline0/GstTSDemux:tsdemux0: Internal
data stream error.
Additional debug info:
mpegtsbase.c(1366): mpegts_base_loop ():
/GstPipeline:pipeline0/GstTSDemux:tsdemux0:
stream stopped, reason not-negotiated
ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
0:00:00.142502030 11087      0x14a3680 WARN                   queue
gstqueue.c:873:gst_queue_handle_sink_event:<queue0> error: Internal data
flow error.
0:00:00.142549185 11087      0x14a3680 WARN                   queue
gstqueue.c:873:gst_queue_handle_sink_event:<queue0> error: streaming task
paused, reason not-negotiated (-4)
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = "NULL"
/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = "NULL"
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps =
"NULL"
/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps =
"NULL"
/GstPipeline:pipeline0/avdec_h264:avdec_h264-0.GstPad:src: caps = "NULL"
/GstPipeline:pipeline0/avdec_h264:avdec_h264-0.GstPad:sink: caps = "NULL"
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = "NULL"
/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:sink: caps = "NULL"
/GstPipeline:pipeline0/GstTSDemux:tsdemux0.GstPad:video_0100: caps = "NULL"
Freeing pipeline ...




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gstreamer-vaapiencode-h264-occasional-caps-rejected-tp4666866p4670524.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list