gstreamer - WARNING: erroneous pipeline: could not link customsrc0 to mpegtsmux0 -


i cannot create pipeline gstreamer , don't know how can debug further.

gst-launch-1.0 --gst-debug=gst_caps:4 -v -e customsrc num-buffers=1000 ! video/x-h264,width=600,height=600,framerate=1/12,stream-format=byte-stream ! mpegtsmux ! udpsink host=10.92.7.2 port=5000 warning: erroneous pipeline: not link customsrc0 mpegtsmux0 

the capabilities of customsrc , mpegtsmux matching. missing.

customsrc

pad templates:   src template: 'src'     availability:     capabilities:       video/x-h264                   width: [ 1, 2147483647 ]                  height: [ 1, 2147483647 ]               framerate: [ 1/2147483647, 2147483647/1 ]           stream-format: avc               alignment: au 

mpegtsmux

pad templates:   sink template: 'sink_%d'     availability: on request       has request_new_pad() function: 0x76beca8c     capabilities:       video/x-h264           stream-format: byte-stream               alignment: { au, nal } 

what else can figure out mismatch?

caps filtering , defining how pipeline runs--they don't cause transformation themselves. example, if have 2 elements these caps on source , sink pads:

  video/x-h264       stream-format: byte-stream           alignment: { au, nal }    video/x-h264       stream-format: byte-stream           alignment: { au, nal } 

and place caps filter between them:

video/x-h264,alignment=nal 

you'll cause pipeline use nal alignment there. if elements have these caps on pads:

  video/x-h264       stream-format: avc           alignment: { au, nal }    video/x-h264       stream-format: byte-stream           alignment: { au, nal } 

you need add element convert video/x-h264,stream-format=avc video/x-h264,stream-format=byte-stream. h264parse because takes video/x-h264 content on sink pad, , outputs whatever stream-format , alignments needed downstream source:

  src template: 'src'     availability:     capabilities:       video/x-h264                  parsed: true           stream-format: { avc, avc3, byte-stream }               alignment: { au, nal }    sink template: 'sink'     availability:     capabilities:       video/x-h264 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -