Haivision / srt

Secure, Reliable, Transport
https://www.srtalliance.org
Mozilla Public License 2.0
3.01k stars 824 forks source link

srt only working if gst debug level is 5 #2445

Open gorleabhinav opened 1 year ago

gorleabhinav commented 1 year ago

I am facing some weird issue while streaming with srt, I am not sure this issues is related gstreamer or srt library.

Pipeline1:

gst-launch-1.0 --gst-debug=srt*:5 rtspsrc location="rtsp://admin:admin@localhost/live.sdp" short-header=TRUE name=demux demux. ! rtph265depay ! queue ! video/x-h265 ! mpegtsmux name=mux1 ! srtsink uri=srt://:8888 demux. ! queue ! rtpmp4adepay ! aacparse ! mux1.

Pipeline2:

gst-launch-1.0  rtspsrc location="rtsp://admin:admin@localhost/live.sdp" short-header=TRUE name=demux demux. ! rtph265depay ! queue ! video/x-h265 ! mpegtsmux name=mux1 ! srtsink uri=srt://:8888 demux. ! queue ! rtpmp4adepay ! aacparse ! mux1.

Pipeline1 is working: able to see the video stream on vlc player.

Pipeline2 is not working: there is no error while playing Pipeline2, but not getiing any video on vlc player.

The difference between pipelines is Pipeline1 has --gst-debug=srt*:5 and Pipeline2 does not has the set debug level.

version details: gstreamer vesrion: 1.16.2 srt version: 1.5.0

how can we fix this issue ? any help would be appreciated.

maxsharabayko commented 1 year ago

Does VLC show any error in the "messages" window? Do you see any SRT traffic on the network?

gorleabhinav commented 1 year ago

VLC does not showing any error in the message window. For pipeline2: on network I can see only keepalive packets.

ethouris commented 1 year ago

If so, it means that the connection has been established successfully, but no data are being sent. Hard to speculate what happened, but definitely the call to any srt_send* functions hasn't been done. Could be also messing with the buffer sizes, but I doubt that the gstreamer element is changing default options.

@justinjoy maybe you can help?

gorleabhinav commented 1 year ago

@ethouris , @justinjoy any update?

ethouris commented 1 year ago

Seems like Justin is busy and I don't know how to approach it. Still, I'd look for problems in the sources of the srtsink element. Might be like executing key functions in assert() or something like that.

gorleabhinav commented 1 year ago

Sure. For more info check unable-to-live-stream-using-srt-facing-unsupported-timestamp-reference-clock.

gorleabhinav commented 1 year ago

@maxsharabayko any update?

maxsharabayko commented 1 year ago

@gorleabhinav No updates. Any help is appreciated.