[solved]SRT streaming error

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[solved]SRT streaming error

longkas
This post was updated on .
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
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@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: SRT streaming error

longkas
I have found the solution by searching here:

gst-launch-1.0 -v videotestsrc ! x264enc ! mpegtsmux alignment=7  ! srtsink
uri=srt://:9988 mode=2



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: SRT streaming error

Nicolas Dufresne-5
In reply to this post by longkas


Le sam. 28 déc. 2019 06 h 15, longkas <[hidden email]> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel