Dear all,
This post is to follow up on the discussion on https://www.collabora.com/news-and-blog/blog/2018/02/16/srt-in-gstreamer/ I am using Ubuntu 18 with GStreamer version 1.14.5, and hope to use srt. As described in the post " Andi: Jan 20, 2020 at 06:15 PM" on above webpage, I compiled and installed srt and gstreamer-bad-plugins from source. Now I wanted to run the sample pipeline: SENDER: gst-launch-1.0 videotestsrc ! video/x-raw, height=1080, width=1920 ! videoconvert ! x264enc tune=zerolatency ! video/x-h264, profile=high ! mpegtsmux ! srtserversink uri=srt://127.0.0.1:7001/ RECEIVER: gst-launch-1.0 srtclientsrc uri=srt://127.0.0.1:7001 ! decodebin ! autovideosink I checked with wireshark, the sink and src are exchanging pakets for handshake and keepalive, however not video pakets are transmitted. I ran the sender part with GST_DEBUG=GST_SCHEDULING:5. Here is the output for one cycle (I hope): 0:00:00.681951732 29548 0x5577ce3211e0 DEBUG GST_SCHEDULING gstpad.c:4320:gst_pad_chain_data_unchecked:<capsfilter0:sink> calling chainfunction &gst_base_transform_chain with buffer buffer: 0x7fd7e81190c0, pts 0:00:00.700000000, dts 99:99:99.999999999, dur 0:00:00.050000000, size 115200, offset 14, offset_end 15, flags 0x0 0:00:00.681995487 29548 0x5577ce3211e0 DEBUG GST_SCHEDULING gstpad.c:4320:gst_pad_chain_data_unchecked:<videoscale0:sink> calling chainfunction &gst_base_transform_chain with buffer buffer: 0x7fd7e81190c0, pts 0:00:00.700000000, dts 99:99:99.999999999, dur 0:00:00.050000000, size 115200, offset 14, offset_end 15, flags 0x0 0:00:00.682030399 29548 0x5577ce3211e0 DEBUG GST_SCHEDULING gstpad.c:4320:gst_pad_chain_data_unchecked:<videoconvert0:sink> calling chainfunction &gst_base_transform_chain with buffer buffer: 0x7fd7e81190c0, pts 0:00:00.700000000, dts 99:99:99.999999999, dur 0:00:00.050000000, size 115200, offset 14, offset_end 15, flags 0x0 0:00:00.682067493 29548 0x5577ce3211e0 DEBUG GST_SCHEDULING gstpad.c:4320:gst_pad_chain_data_unchecked:<x264enc0:sink> calling chainfunction &gst_video_encoder_chain with buffer buffer: 0x7fd7e81190c0, pts 0:00:00.700000000, dts 99:99:99.999999999, dur 0:00:00.050000000, size 115200, offset 14, offset_end 15, flags 0x0 0:00:00.684158430 29548 0x5577ce3211e0 DEBUG GST_SCHEDULING gstpad.c:4320:gst_pad_chain_data_unchecked:<mpegtsmux0:sink_65> calling chainfunction &gst_collect_pads_chain with buffer buffer: 0x7fd7e8134700, pts 1000:00:00.700000000, dts 1000:00:00.700000000, dur 0:00:00.050000000, size 3396, offset none, offset_end none, flags 0x2000 0:00:00.684292078 29548 0x5577ce3211e0 DEBUG GST_SCHEDULING gstpad.c:4335:gst_pad_chain_data_unchecked:<srtserversink0:sink> calling chainlistfunction &gst_base_sink_chain_list 0:00:00.731077715 29548 0x5577ce3211e0 DEBUG GST_SCHEDULING gstpad.c:4341:gst_pad_chain_data_unchecked:<srtserversink0:sink> called chainlistfunction &gst_base_sink_chain_list, returned ok 0:00:00.731142062 29548 0x5577ce3211e0 DEBUG GST_SCHEDULING gstpad.c:4326:gst_pad_chain_data_unchecked:<mpegtsmux0:sink_65> called chainfunction &gst_collect_pads_chain with buffer 0x7fd7e8134700, returned ok 0:00:00.731172599 29548 0x5577ce3211e0 DEBUG GST_SCHEDULING gstpad.c:4326:gst_pad_chain_data_unchecked:<x264enc0:sink> called chainfunction &gst_video_encoder_chain with buffer 0x7fd7e81190c0, returned ok 0:00:00.731206192 29548 0x5577ce3211e0 DEBUG GST_SCHEDULING gstpad.c:4326:gst_pad_chain_data_unchecked:<videoconvert0:sink> called chainfunction &gst_base_transform_chain with buffer 0x7fd7e81190c0, returned ok 0:00:00.731235360 29548 0x5577ce3211e0 DEBUG GST_SCHEDULING gstpad.c:4326:gst_pad_chain_data_unchecked:<videoscale0:sink> called chainfunction &gst_base_transform_chain with buffer 0x7fd7e81190c0, returned ok 0:00:00.731255275 29548 0x5577ce3211e0 DEBUG GST_SCHEDULING gstpad.c:4326:gst_pad_chain_data_unchecked:<capsfilter0:sink> called chainfunction &gst_base_transform_chain with buffer 0x7fd7e81190c0, returned ok I am still learning, how to read this, so I am not sure whether that buffer that reaches the srtserversink contains something? As I can not see the call of "gst_collect_pads_chain with buffer" as for the others. What could be the issue here? Thanks in advance! Andi -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
noone on this forum, who has worked with GStreamer SRT before?
-- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Le jeudi 23 janvier 2020 à 08:46 -0600, andis a écrit :
> noone on this forum, who has worked with GStreamer SRT before? Just a note, this is not a forum but a mailing list, despite nabble making it you think it's a forum. Short answer, try using latest stable GStreamer, 1.14 is pretty old considering that age of SRT support. regards, Nicolas _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by andis
Hello,
did you have success ? I'm facing the same problem Best regards Jahn -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
In reply to this post by andis
Hi,
I just succeeded with my first srt pipeline, using gstreamer packaged in Debian Testing. It needs some more tuning - buffering, encryption and statistics though. gst-inspect-1.0 version 1.18.3 GStreamer 1.18.3 http://packages.qa.debian.org/gstreamer1.0 gst-launch-1.0 -vvv udpsrc multicast-iface=enp7s0 auto-multicast=true uri=udp://10.1.1.1@232.10.10.1:2314 ! srtserversink uri=srt://:12314/ Setting pipeline to PAUSED ... Pipeline is live and does not need PREROLL ... Pipeline is PREROLLED ... Setting pipeline to PLAYING ... New clock: GstSystemClock WARNING: from element /GstPipeline:pipeline0/GstSRTServerSink:srtserversink0: Pipeline construction is invalid, please add queues. Additional debug info: ../libs/gst/base/gstbasesink.c(1249): gst_base_sink_query_latency (): /GstPipeline:pipeline0/GstSRTServerSink:srtserversink0: Not enough buffering available for the processing deadline of 0:00:00.020000000, add enough queues to buffer 0:00:00.020000000 additional data. Shortening processing latency to 0:00:00.000000000. ^Chandling interrupt. Interrupt: Stopping pipeline ... Execution ended after 0:17:03.034216413 Setting pipeline to NULL ... ERROR: from element /GstPipeline:pipeline0/GstSRTServerSink:srtserversink0: Failed to write to SRT socket: Canceled waiting for a connection. Additional debug info: ../ext/srt/gstsrtsink.c(181): gst_srt_sink_render (): /GstPipeline:pipeline0/GstSRTServerSink:srtserversink0 An error happened while waiting for EOS ERROR: from element /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: Internal data stream error. Additional debug info: ../libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipeline0/GstUDPSrc:udpsrc0: streaming stopped, reason error (-5) An error happened while waiting for EOS Freeing pipeline ... -- Sent from: http://gstreamer-devel.966125.n4.nabble.com/ _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |