<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le sam. 28 déc. 2019 06 h 15, longkas <<a href="mailto:longkas@gmail.com">longkas@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
I have built SRT and did a test but I got "payload size error" when I tried<br>
to play the stream using VLC player<br>
<br>
1) on server:<br>
# gst-launch-1.0 -v videotestsrc ! srtsink uri=srt://:9988 mode=2<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">SRT protocol expect packets of size around 1300 bytes. Also, it's not really meant to be used without a container.</div><div dir="auto"><br></div><div dir="auto">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.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Setting pipeline to PAUSED ...<br>
Pipeline is PREROLLING ...<br>
/GstPipeline:pipeline0/GstVideoTestSrc:videotestsrc0.GstPad:src: caps =<br>
video/x-raw, format=(string)I420, width=(int)320, height=(int)240,<br>
framerate=(fraction)30/1, multiview-mode=(string)mono,<br>
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive<br>
/GstPipeline:pipeline0/GstSRTSink:srtsink0.GstPad:sink: caps = video/x-raw,<br>
format=(string)I420, width=(int)320, height=(int)240,<br>
framerate=(fraction)30/1, multiview-mode=(string)mono,<br>
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive<br>
Pipeline is PREROLLED ...<br>
Setting pipeline to PLAYING ...<br>
New clock: GstSystemClock<br>
06:00:08 PM.697653/videotestsrc0:s*E:SRT.cc: LiveCC: payload size: 115200<br>
exceeds maximum allowed 1316<br>
06:00:08 PM.947806/videotestsrc0:s*E:SRT.cc: LiveCC: payload size: 115200<br>
exceeds maximum allowed 1316<br>
<br>
2) on client:<br>
#vlc srt://:9988?pkt_size=1316<br>
<br>
<br>
<br>
--<br>
Sent from: <a href="http://gstreamer-devel.966125.n4.nabble.com/" rel="noreferrer noreferrer" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>