gst-rtsp-server local streaming with the huge delay

doon don-prog at mail.ru
Mon Jan 25 19:06:22 PST 2016


I trying to use /gst-rtsp-server-1.6.0/examples/test-mp4.c/ code in the my
project(I just copied and pasted it) with these program arguments:
"--port=8554", "/home/user/Downloads/test.mp4", so the code in the my server
project is the same as the code in the test-mp4.c sample. Client pipeline:

gst-launch-1.0 --gst-debug=3 rtspsrc location="rtsp://127.0.0.1:8554/test" !
decodebin ! videoconvert ! autovideosink

output:

/Setting pipeline to PAUSED ...
libva info: VA-API version 0.38.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_0_38
libva info: va_openDriver() returns 0
Pipeline is live and does not need PREROLL ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to rtsp://127.0.0.1:8554/test
Progress: (open) Retrieving server options
Progress: (open) Retrieving media info
Progress: (request) SETUP stream 0
Progress: (request) SETUP stream 1
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending PLAY request
0:00:00.077865519  8310 0x7fa54c05b5e0 FIXME                default
gstutils.c:3766:gst_pad_create_stream_id_internal:<fakesrc0:src> Creating
random stream-id, consider implementing a deterministic way of creating a
stream-id
Progress: (request) Sending PLAY request
0:00:00.077988188  8310 0x7fa54c05b590 FIXME                default
gstutils.c:3766:gst_pad_create_stream_id_internal:<fakesrc1:src> Creating
random stream-id, consider implementing a deterministic way of creating a
stream-id
Progress: (request) Sent PLAY request
Got context from element 'vaapidecode0': gst.vaapi.Display=context,
display=(GstVaapiDisplay)NULL;
0:00:00.084908234  8310 0x7fa54c05b8a0 FIXME           videodecoder
gstvideodecoder.c:1057:gst_video_decoder_drain_out:<vaapidecode0> Sub-class
should implement drain()
0:00:00.085136441  8310 0x7fa54c05b8a0 FIXME           videodecoder
gstvideodecoder.c:1057:gst_video_decoder_drain_out:<vaapidecode0> Sub-class
should implement drain()
0:00:00.124864255  8310 0x7fa54c05b800 WARN                 basesrc
gstbasesrc.c:2943:gst_base_src_loop:<udpsrc3> error: Internal data flow
error.
0:00:00.124909800  8310 0x7fa54c05b800 WARN                 basesrc
gstbasesrc.c:2943:gst_base_src_loop:<udpsrc3> error: streaming task paused,
reason not-linked (-1)
Redistribute latency...
Redistribute latency.../

And the server output looks like repetition of this:

/structure: application/x-rtp-source-stats, ssrc=(uint)3090239742,
internal=(boolean)false, validated=(boolean)false,
received-bye=(boolean)false, is-csrc=(boolean)false,
is-sender=(boolean)false, seqnum-base=(int)-1, clock-rate=(int)-1,
rtcp-from=(string)127.0.0.1:34715, octets-sent=(guint64)0,
packets-sent=(guint64)0, octets-received=(guint64)0,
packets-received=(guint64)0, bitrate=(guint64)0, packets-lost=(int)0,
jitter=(uint)0, sent-pli-count=(uint)0, recv-pli-count=(uint)0,
sent-fir-count=(uint)0, recv-fir-count=(uint)0, have-sr=(boolean)false,
sr-ntptime=(guint64)0, sr-rtptime=(uint)0, sr-octet-count=(uint)0,
sr-packet-count=(uint)0, sent-rb=(boolean)false,
sent-rb-fractionlost=(uint)0, sent-rb-packetslost=(int)0,
sent-rb-exthighestseq=(uint)0, sent-rb-jitter=(uint)0, sent-rb-lsr=(uint)0,
sent-rb-dlsr=(uint)0, have-rb=(boolean)true, rb-fractionlost=(uint)0,
rb-packetslost=(int)0, rb-exthighestseq=(uint)3188, rb-jitter=(uint)2,
rb-lsr=(uint)1573035928, rb-dlsr=(uint)38397, rb-round-trip=(uint)33;/

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)?*



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


More information about the gstreamer-devel mailing list