gst-rtsp-server/examples/test-record

Alexandr Deryk via gstreamer-devel <[email protected]> Thu, 9 Jan 2025 15:53:03 +0200
Newsgroups gmane.comp.video.gstreamer.devel
Message-ID <CAEDOGCXY2CzPshamh5v8CWf2Pti5BATE=_tTewqWwCAGaheUEA@mail.gmail.com>
--000000000000c24ddd062b464c44
Content-Type: text/plain; charset="UTF-8"

Hi.

I am using gst-rtsp-server/examples/test-record.c
I can send video stream using:
gst-launch-1.0 videotestsrc ! x264enc ! rtspclientsink location=rtsp://
127.0.0.1:8554/test

I can't receive stream using:
gst-launch-1.0 rtspsrc location=rtsp://127.0.0.1:8554/test ! decodebin !
videoconvert ! autovideosink

ERROR: from element
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
Could not get/set settings from/on resource.
Progress: (open) Opening Stream
Additional debug info:
../gst/rtsp/gstrtspsrc.c(8240): gst_rtspsrc_retrieve_sdp ():
/GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/GstRTSPSrc:source:
Server can not provide an SDP.
Pipeline is PREROLLED ...
ERROR: pipeline doesn't want to preroll.
Prerolled, waiting for progress to finish...

What do I need to change/add to test-record..c to read rtspsrc ... /test
from rtspclientsink .../test?

Thanks.

--000000000000c24ddd062b464c44
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi.<div><br>I am using gst-rtsp-server/examples/test-recor=
d.c<br>I can send video stream using:<br>gst-launch-1.0 videotestsrc ! x264=
enc ! rtspclientsink location=3Drtsp://<a href=3D"http://127.0.0.1:8554/tes=
t">127.0.0.1:8554/test</a><br><br>I can&#39;t receive stream using:<br>gst-=
launch-1.0 rtspsrc location=3Drtsp://<a href=3D"http://127.0.0.1:8554/test"=
>127.0.0.1:8554/test</a> ! decodebin ! videoconvert ! autovideosink<br><br>=
ERROR: from element /GstPipeline:pipeline0/GstURIDecodeBin:uridecodebin0/Gs=
tRTSPSrc:source: Could not get/set settings from/on resource.<br>Progress: =
(open) Opening Stream<br>Additional debug info:<br>../gst/rtsp/gstrtspsrc.c=
(8240): gst_rtspsrc_retrieve_sdp (): /GstPipeline:pipeline0/GstURIDecodeBin=
:uridecodebin0/GstRTSPSrc:source:<br>Server can not provide an SDP.<br>Pipe=
line is PREROLLED ...<br>ERROR: pipeline doesn&#39;t want to preroll.<br>Pr=
erolled, waiting for progress to finish...<br><br>What do I need to change/=
add to test-record..c to read rtspsrc ... /test from rtspclientsink .../tes=
t?</div><div><br></div><div>Thanks.</div></div>

--000000000000c24ddd062b464c44--