streaming recorded TS over UDP
Tim Müller
tim at centricular.com
Thu Apr 18 08:48:29 UTC 2019
On Tue, 2019-04-16 at 17:22 +0200, Lajos Okos wrote:
Hi Lajos,
> I have a recorded HLS stream created with hlssink2 that I would like
> to stream with the below pipeline:
>
> gst-launch-1.0 \
> 2 souphttpsrc location=http://.../.../playlist.m3u8 ! \
> 3 hlsdemux ! \
> 4 tsparse set-timestamps=true ! \
> 5 rtpmp2tpay ! \
> 6 udpsink sync=true host=239.211.8.222 port=1234
>
> I can play the multicast stream from the pipeline with VLC more or
> less ok, although time to time the picture freezes and I lose audio.
>
> Configuring some logging for tsparse, I can see that it pushes
> buffers out with quite a large variation in duration. Sometimes the
> buffers have duration of 5-6 seconds other time they are just a
> fraction of a second. Checking the stream in Wireshark the bitrate of
> the player's multicast stream varies a lot. Is there a way to keep
> the duration of the pushed buffers from tsparse low? I guess the
> large variation of the output bitrate is due to the fact that the
> elements following tsparse underrun but this is just guessing. Any
> suggestions on how to change the pipeline that the output bitrate
> stays more or less static with just a reasonable variation?
>
> Many thanks for your suggestions!
If you suspect that the elements following tsparse underrun, then a
generous queue might help (queue max-size-time=30000000000 max-size-
bytes=0 max-size-buffers=0 or somesuch perhaps).
Cheers
Tim
--
Tim Müller, Centricular Ltd - http://www.centricular.com
More information about the gstreamer-devel
mailing list