简体   繁体   English

无法使用 srt 生活 stream,面临“不支持的时间戳参考时钟”问题

[英]unable to live stream using srt, facing "Unsupported timestamp reference clock" issue

I am trying to stream video using srt protocol, streaming source is rtsp client.我正在尝试使用 srt 协议 stream 视频,流媒体源是 rtsp 客户端。

gst-launch-1.0 --gst-debug=3 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.

when I am trying to run above pipeline, getting FIXME logs and not able see stream on vlc player.当我尝试在管道上方运行时,获取 FIXME 日志并且无法在 vlc 播放器上看到 stream。

Logs:日志:

0:00:00.285731958  2338   0x7f600338f0 FIXME                default gstutils.c:3981:gst_pad_create_stream_id_internal:<fakesrc0:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
Progress: (request) Sent PLAY request
0:00:00.294357875  2338   0x7f600338a0 FIXME                default gstutils.c:3981:gst_pad_create_stream_id_internal:<fakesrc1:src> Creating random stream-id, consider implementing a deterministic way of creating a stream-id
0:00:00.349911500  2338   0x7f60033400 FIXME        rtpjitterbuffer gstrtpjitterbuffer.c:1551:gst_jitter_buffer_sink_parse_caps:<rtpjitterbuffer0> Unsupported timestamp reference clock
0:00:00.350078166  2338   0x7f60033400 FIXME        rtpjitterbuffer gstrtpjitterbuffer.c:1559:gst_jitter_buffer_sink_parse_caps:<rtpjitterbuffer0> Unsupported media clock
0:00:00.355827125  2338   0x7f600334a0 FIXME        rtpjitterbuffer gstrtpjitterbuffer.c:1551:gst_jitter_buffer_sink_parse_caps:<rtpjitterbuffer1> Unsupported timestamp reference clock
0:00:00.358561833  2338   0x7f600334a0 FIXME        rtpjitterbuffer gstrtpjitterbuffer.c:1559:gst_jitter_buffer_sink_parse_caps:<rtpjitterbuffer1> Unsupported media clock
0:00:02.358866251  2338   0x7f50002400 FIXME           rtph265depay gstrtph265depay.c:1310:gst_rtp_h265_depay_process:<rtph265depay0> Assuming DONL field is not present
0:00:02.360083834  2338   0x7f50002400 FIXME           rtph265depay gstrtph265depay.c:1310:gst_rtp_h265_depay_process:<rtph265depay0> Assuming DONL field is not present
0:00:02.360472292  2338   0x7f50002400 FIXME           rtph265depay gstrtph265depay.c:1310:gst_rtp_h265_depay_process:<rtph265depay0> Assuming DONL field is not present
0:00:02.360655334  2338   0x7f50002400 FIXME           rtph265depay gstrtph265depay.c:1310:gst_rtp_h265_depay_process:<rtph265depay0> Assuming DONL field is not present
0:00:02.360766126  2338   0x7f50002400 FIXME           rtph265depay gstrtph265depay.c:1310:gst_rtp_h265_depay_process:<rtph265depay0> Assuming DONL field is not present
0:00:02.360916376  2338   0x7f50002400 FIXME           rtph265depay gstrtph265depay.c:1310:gst_rtp_h265_depay_process:<rtph265depay0> Assuming DONL field is not present
0:00:02.361559709  2338     0x36f5acf0 FIXME               basesink gstbasesink.c:3248:gst_base_sink_default_event:<srtsink0> stream-start event without group-id. Consider implementing group-id handling in the upstream elements
0:00:02.362658667  2338   0x7f50002400 FIXME           rtph265depay gstrtph265depay.c:1310:gst_rtp_h265_depay_process:<rtph265depay0> Assuming DONL field is not present

Thanks in advance.提前致谢。

Try putting the videorate gstreamer element before the srtsink element.尝试将 videorate gstreamer 元素放在 srtsink 元素之前。 https://gstreamer.freedesktop.org/documentation/videorate/index.html?gi-language=c https://gstreamer.freedesktop.org/documentation/videorate/index.html?gi-language=c

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM