gst-rtsp-server local streaming with the huge delay

doon don-prog at mail.ru
Wed Jan 27 18:26:45 PST 2016


Nicolas Dufresne-3 wrote
> Le lundi 25 janvier 2016 à 19:06 -0800, doon a écrit :
>> The problem is that video begins to play only after 50 seconds-long
>> freezing
>> on the first frame(I see first frame 50 second and only after that
>> video
>> begins).
>> And if I use this pipeline(with the audio playback) then video stuck
>> on the
>> first frame and does not start after 3 minutes(I did not check after
>> this): 
>> 
>> gst-launch-1.0 --gst-debug=3 rtspsrc
>> location="rtsp://127.0.0.1:8554/test" !
>> rtph264depay ! decodebin name=dec ! videoconvert ! autovideosink dec.
>> !
>> audioconvert ! autoaudiosink
>> 
>> *How can I playback video without the delay(in the first case) and
>> how can I
>> playback video with the audio(in the second case)?*
> 
> The delay is likely related to the source file you are using. How was
> it encoded ? What's the distance between key-frame ?
> 
> The easiest to get both audio and video is to use playbin.
> 
> Nicolas
> _______________________________________________
> gstreamer-devel mailing list

> gstreamer-devel at .freedesktop

> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> 
> 
> signature.asc (188 bytes)
> <http://gstreamer-devel.966125.n4.nabble.com/attachment/4675492/0/signature.asc>

Ok, thanks, playbin works with video+audio but also with the big delay. And
how can I check distance between key-frame?
And this is some additional Information that may be useful:
If I just playback local file(without rtsp transmission) via "playbin
uri=file:///..." then I get instantaneous playback without delay.
This file has H264 - MPEG-4 AVC and MPEG AAC Audio codecs.
If I set any playbin latency in the range between 0 and 100000, then I get
playback without initial delay but with the lags and freezes during
playback(latency value doesn't matter - lags will be almost the same).



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/gst-rtsp-server-local-streaming-with-the-huge-delay-tp4675481p4675528.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list