streamheader missing in caps while linking rtmpsink dynamically
hi,
The following pipeline1 works fine when rtmpsink is connected to flvmux at startup of pipeline, and streamheader on caps is available. However if initially flvmux is not connected to rtmpsink and later connected dynamically, streamheader is missing on the caps and rtmp stream is failing. Log of both pipeline is attached on file.
Gstreamer version : 1.14.4
pipeline 1:
videotestsrc ! video/x-raw,width=1280,height=720,framerate=30/1 ! videoconvert ! queue ! x264enc ! flvmux streamable=true name=mux ! tee name=tee1 ! queue ! rtmpsink location="rtmp://localhost/relrix/stream" sync=true audiotestsrc is_live=true do-timestamp=true ! audioconvert ! faac ! mux.
pipeline 2 (initially connected to testsink, 5 sec. later dynamically connected to tee->queue->rtmpsink): videotestsrc ! video/x-raw,width=1280,height=720,framerate=30/1 ! videoconvert ! queue ! x264enc ! flvmux streamable=true name=mux ! tee name=tee1 ! queue ! testsink sync=true audiotestsrc is_live=true do-timestamp=true ! audioconvert ! faac ! mux.
Thank you. Shishir Pokharel