i've written a custom QtGStreamer appsink which is working fine. I'm in trouble trying to split with a tee the pipeline to process recording of the stream because the pipeline starts to preroll but never goes in playback state.
My pipeline:
souphttpsrc location="%1" ! queue ! tee name=tp tp.! queue ! tsdemux ! h264parse ! splitmuxsink muxer=mpegtsmux location=/tmp/rec/video%02d.mov max-size-time=60000000000 max-size-bytes=100000000 tp.! queue ! appsink name="mysink"
If i comment any of the two tee branches anything works as expected.
This is also working:
souphttpsrc location="%1" ! queue ! tee name=tp tp.! queue ! tsdemux ! h264parse ! splitmuxsink muxer=mpegtsmux location=/tmp/rec/video%02d.mov max-size-time=60000000000 max-size-bytes=100000000 tp.! queue ! decodebin ! autovideosink
Why is my AppSink working just alone?