UDPSINK live stream bug
Angel Martin
amartin at vicomtech.org
Wed Feb 24 10:45:39 UTC 2016
Dear all,
In Gstreamer 1.4.4 the udpsink plugin with sync=true works in real-time. It
means to stream a 2 minutes video file it takes 2 minutes (like a live
source)
In Gstreamer 1.7.1 (also in 1.6.0) the udpsink plugin with sync=true works
similar to sync=false. It means to stream a 2 minutes video file it takes 5
seconds (like a on demand source)
I used the next pipelines in the different Gstreamer versions:
1) Create a sample file
gst-launch-1.0 -e videotestsrc ! video/x-raw, framerate=10/1, width=320,
height=240, format=I420 ! timeoverlay font-desc="sans bold 40" halignment=0
valignment=2 ! x264enc bitrate=200 key-int-max=10 ! h264parse
config-interval=1 ! mpegtsmux ! filesink location=test.ts
2) Stream the file
gst-launch-1.0 filesrc location=test.ts ! tsparse ! tsdemux ! h264parse !
mpegtsmux ! rndbuffersize min=1316 max=1316 ! udpsink port=5014
host=127.0.0.1 sync=true enable-last-sample=false send-duplicates=false
blocksize=1316
3) Play the Stream
gst-launch-1.0 udpsrc uri=udp://127.0.0.1:5014 ! video/mpegts ! tsdemux
name=demux ! video/x-h264 ! queue ! decodebin ! autovideosink
Best,
Angel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160224/6a214780/attachment.html>
More information about the gstreamer-devel
mailing list