rtspsrc issue under Windows7-64 bit.

Guender, Michael michael.guender at barco.com
Fri Sep 27 07:34:49 PDT 2013


Hello,

This is in regard of gstreamer 0.10.36

As it seems, using rtspsrc with multicast streams uses an internal buffer size of 8192 bytes for the video udp/rtp buffer (udpsrc0) and ignores the given udp-buffer-size parameter value.
If the same cmd line is executed with protocols=1 (e.g. unicast), the udp-buffer-size parameter is respected and used internally on udpsrc0.

Having a small udp-buffer-size of 8192 leads to regular drops of udp buffers in our use case and thus to image artefacts.

Please have a look at the two following command lines/debug/logging outputs:

C:\Users\Barco>gst-launch-0.10 rtspsrc location="rtsp://192.168.182.114/mgs-video?launch=barcomgsp%20uri-in=rtp://239.180.45.1:47806%3Fencoding-name%3DH264" protocols=2 udp-buffer-size=1048576 ! decodebin2 ! ffmpegcolorspace ! d3dvideosink sync=false
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
0:00:00.109200000  2040 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:792:gst_udpsrc_start:<udpsrc0> allocating socket for 239.1.24.27:29460
0:00:00.124800000  2040 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:803:gst_udpsrc_start:<udpsrc0> got socket 328
0:00:00.124800000  2040 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:805:gst_udpsrc_start:<udpsrc0> setting reuse 1
0:00:00.124800000  2040 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:812:gst_udpsrc_start:<udpsrc0> binding on port 29460
0:00:00.140400000  2040 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:881:gst_udpsrc_start:<udpsrc0> have udp buffer of 8192 bytes
0:00:00.140400000  2040 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:905:gst_udpsrc_start:<udpsrc0> joining multicast group 239.1.24.27
0:00:00.156000000  2040 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:914:gst_udpsrc_start:<udpsrc0> bound, on port 29460
0:00:00.156000000  2040 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:792:gst_udpsrc_start:<udpsrc1> allocating socket for 239.1.24.27:29461
0:00:00.171600000  2040 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:803:gst_udpsrc_start:<udpsrc1> got socket 344
0:00:00.171600000  2040 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:805:gst_udpsrc_start:<udpsrc1> setting reuse 1
0:00:00.187200000  2040 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:812:gst_udpsrc_start:<udpsrc1> binding on port 29461
0:00:00.187200000  2040 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:881:gst_udpsrc_start:<udpsrc1> have udp buffer of 8192 bytes
0:00:00.202800000  2040 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:905:gst_udpsrc_start:<udpsrc1> joining multicast group 239.1.24.27
0:00:00.218400000  2040 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:914:gst_udpsrc_start:<udpsrc1> bound, on port 29461
^C
C:\Users\Barco>gst-launch-0.10 rtspsrc location="rtsp://192.168.182.114/mgs-video?launch=barcomgsp%20uri-in=rtp://239.180.45.1:47806%3Fencoding-name%3DH264" protocols=1 udp-buffer-size=1048576 ! decodebin2 ! ffmpegcolorspace ! d3dvideosink sync=false
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Setting pipelin0e: 0t0o: 0P0L.A0Y7I8N0G0 0.0..0
  4824Ne w0 0c0l0o0c0k0:0 0G2s7tCS7y3sCt0e mCloDcEkB
G                 udpsrc gstudpsrc.c:792:gst_udpsrc_start:<udpsrc0> allocating socket for 0.0.0.0:0
0:00:00.093600000  4824 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:803:gst_udpsrc_start:<udpsrc0> got socket 320
0:00:00.093600000  4824 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:805:gst_udpsrc_start:<udpsrc0> setting reuse 0
0:00:00.109200000  4824 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:812:gst_udpsrc_start:<udpsrc0> binding on port 0
0:00:00.109200000  4824 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:861:gst_udpsrc_start:<udpsrc0> setting udp buffer of 1048576 bytes
0:00:00.109200000  4824 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:881:gst_udpsrc_start:<udpsrc0> have udp buffer of 1048576 bytes
0:00:00.124800000  4824 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:914:gst_udpsrc_start:<udpsrc0> bound, on port 64216
0:00:00.124800000  4824 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:917:gst_udpsrc_start:<udpsrc0> notifying port 64216
0:00:00.140400000  4824 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:792:gst_udpsrc_start:<udpsrc1> allocating socket for 0.0.0.0:64217
0:00:00.140400000  4824 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:803:gst_udpsrc_start:<udpsrc1> got socket 336
0:00:00.140400000  4824 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:805:gst_udpsrc_start:<udpsrc1> setting reuse 0
0:00:00.156000000  4824 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:812:gst_udpsrc_start:<udpsrc1> binding on port 64217
0:00:00.156000000  4824 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:881:gst_udpsrc_start:<udpsrc1> have udp buffer of 8192 bytes
0:00:00.156000000  4824 00000000027C73C0 DEBUG                 udpsrc gstudpsrc.c:914:gst_udpsrc_start:<udpsrc1> bound, on port 64217

As you can see, the setting of the buffer size is not included/executed when protocols is set to 2.

Any idea/explanation where to search for /how to fix?
____________________________________________________________________
Michael Günder
Windows Team Leader
Traffic, Surveillance & Monitoring

Barco Control Rooms GmbH
Greschbachstrasse 5a
D - 76229 Karlsruhe
Tel +49 721 6201 175   Fax+49 721 6201 190
http://www.barco.com<http://www.barco.com/>
mailto:michael.guender at barco.com<mailto:thomas.kappler at barco.com>
____________________________________________________________________
Registered at 76229 Karlsruhe, Amtsgericht Mannheim HRB 102241, Management: Stephen Leyland, Lutz Nehrhoff
[http://www.barco.com/images/signatures/CRS_signature.jpg]<http://www.barco.com/>

This message is subject to the following terms and conditions: MAIL DISCLAIMER<http://www.barco.com/en/maildisclaimer>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130927/22ac1496/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 32632 bytes
Desc: image001.jpg
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20130927/22ac1496/attachment-0001.jpg>


More information about the gstreamer-devel mailing list