trying to get tee working

Marc Marc at f1-outsourcing.eu
Thu Sep 16 09:05:04 UTC 2021


I have problems understanding tee and getting a simple solution to work, splitting a live stream and using one stream for some processing or so. I am using this command to generate a test stream[1]
Why do I have to add the leaky=1 to get this to work? (Just grabbed this from some example, but most tee examples do not have this). And why does this then not work when I add some processing to the 2nd stream? Th



working (as in plays with a vlc client)
=======
gst-launch-1.0 -vv srtsrc uri=srt://:55555?mode=listener ! tee name=t \
    t. ! queue leaky=1 ! srtsink uri=srt://:33333 \
    t. ! queue leaky=1 ! srtsink uri=srt://:33334 
(although it takes 9s before the video appears)



not working
===========
gst-launch-1.0 -vv srtsrc uri=srt://:55555?mode=listener ! tee name=t \
    t. ! queue ! srtsink uri=srt://:33333 \
    t. ! queue ! srtsink uri=srt://:33334 

gst-launch-1.0 -vv srtsrc uri=srt://:55555?mode=listener ! tee name=t \
    t. ! queue leaky=1 ! srtsink uri=srt://:33333 \
    t. ! queue leaky=1 ! tsdemux ! video/x-h264 ! h264parse ! mpegtsmux name=mux ! tsparse ! srtsink uri=srt://:33334

gst-launch-1.0 -vv srtsrc uri=srt://:55555?mode=listener ! tee name=t \
    t. ! queue leaky=1 ! srtsink uri=srt://:33333 sync=false \
    t. ! queue leaky=1 ! tsdemux ! video/x-h264 ! h264parse ! mpegtsmux name=mux ! tsparse ! srtsink uri=srt://:33334 sync=false


[1]
gst-launch-1.0 videotestsrc !  x264enc ! mpegtsmux name=mux ! srtsink uri=srt://192.168.10.22:55555?mode=caller \
  audiotestsrc wave=pink-noise ! avenc_ac3 ! mux.


More information about the gstreamer-devel mailing list