SRT streaming error

Nicolas Dufresne nicolas at ndufresne.ca
Sat Dec 28 21:12:38 UTC 2019


Le sam. 28 déc. 2019 06 h 15, longkas <longkas at gmail.com> a écrit :

> Hello,
> I have built SRT and did a test but I got "payload size error" when I tried
> to play the stream using VLC player
>
> 1) on server:
> # gst-launch-1.0 -v videotestsrc ! srtsink uri=srt://:9988 mode=2
>

SRT protocol expect packets of size around 1300 bytes. Also, it's not
really meant to be used without a container.

Most users will send a transport streams (mpegtsmux) to the element, and
use the alignment to control the size (alignment being a number of TS
packet, so N * 188 bytes). On top of which, you may need to pick a
compression method. Unfortunately, you have to know these things to use
GStreamer, but we can help here.

Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> /GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps =
> video/x-raw, format=(string)I420, width=(int)320, height=(int)240,
> framerate=(fraction)30/1, multiview-mode=(string)mono,
> pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive
> /GstPipeline:pipeline0/GstSRTSink:srtsink0.GstPad:sink: caps = video/x-raw,
> format=(string)I420, width=(int)320, height=(int)240,
> framerate=(fraction)30/1, multiview-mode=(string)mono,
> pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive
> Pipeline is PREROLLED ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> 06:00:08 PM.697653/videotestsrc0:s*E:SRT.cc: LiveCC: payload size: 115200
> exceeds maximum allowed 1316
> 06:00:08 PM.947806/videotestsrc0:s*E:SRT.cc: LiveCC: payload size: 115200
> exceeds maximum allowed 1316
>
> 2) on client:
> #vlc srt://:9988?pkt_size=1316
>
>
>
> --
> Sent from: http://gstreamer-devel.966125.n4.nabble.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20191228/a1863241/attachment.htm>


More information about the gstreamer-devel mailing list