<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<div class="moz-cite-prefix">On 3/9/18 3:37 pm, Dinh Nguyen wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAKNZUh3iO-uXhrUZsLhtkiony6sWtRVzo3zQDfhp_gv-NOJH9w@mail.gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div dir="ltr">
<div>Hello Nicolas,</div>
<div><br>
</div>
<div>Thanks for your response.</div>
<div><br>
</div>
<div>I am trying with your suggestion</div>
<div>`gst-launch-1.0 videotestsrc ! x264enc ! rtph264pay !
rtspclientsink location=<a class="moz-txt-link-freetext" href="rtsp://">rtsp://</a><a
href="http://127.0.0.1:8554/test`" moz-do-not-send="true">127.0.0.1:8554/test`</a></div>
<div><br>
</div>
<div>however, seems that the pipe itself get error</div>
<div>`WARNING: erroneous pipeline: could not link rtph264pay0 to
rtspclientsink0`.</div>
<div><br>
</div>
<div>I am not sure I get your suggestion right?</div>
</div>
</blockquote>
<p><br>
rtspclientsink already includes payloaders so you don't need a
rtph264pay there.<br>
<br>
What you're missing is that the name of the elements need to match
a specific format. i.e. the depayloader in your test-record
command line needs to be named 'depay0'. You also may need to
modify the test-record example to send an EOS on shutdown so that
mp4 headers are finalized correctly as the resulting fiel will not
really be playable as-is. Another option is to attempt to attempt
enable robust-muxing mode.<br>
<br>
Cheers<br>
-Matt<br>
<br>
</p>
<blockquote type="cite"
cite="mid:CAKNZUh3iO-uXhrUZsLhtkiony6sWtRVzo3zQDfhp_gv-NOJH9w@mail.gmail.com">
<div dir="ltr">
<div>Thanks.<br>
</div>
<div><br>
</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr">On Mon, Sep 3, 2018 at 2:09 AM Nicolas Dufresne
<<a href="mailto:nicolas@ndufresne.ca"
moz-do-not-send="true">nicolas@ndufresne.ca</a>> wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="auto">
<div><br>
<br>
<div class="gmail_quote">
<div dir="ltr">Le sam. 1 sept. 2018 23:57, Dinh Nguyen
<<a href="mailto:dinh.nguyen@zinnoinc.com"
target="_blank" moz-do-not-send="true">dinh.nguyen@zinnoinc.com</a>>
a écrit :<br>
</div>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div>Hello,</div>
<div><br>
</div>
<div>I am new to GStreamer ecosystem, and nowhere to
be good at C; hence, please forgive if I put this
silly question here.</div>
<div><br>
</div>
<div>I am using gst-rtsp server, with test-record to
save a "record" stream from client to a file
(mp4), and this is the error.</div>
<div><br>
</div>
<div
class="m_8394479757017198616m_8976826271294293531markdown-here-wrapper">
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline;white-space:pre-wrap;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">GST_DEBUG=2 ./build/test-record "( rtph264depay ! h264parse ! mp4mux ! filesink location=result3.mp4 )"
stream ready at <a class="moz-txt-link-freetext" href="rtsp://">rtsp://</a><a href="http://127.0.0.1:8554/test" rel="noreferrer" target="_blank" moz-do-not-send="true">127.0.0.1:8554/test</a>
On the sender, send a stream with rtspclientsink:
gst-launch-1.0 videotestsrc ! x264enc ! rtspclientsink location=<a class="moz-txt-link-freetext" href="rtsp://">rtsp://</a><a href="http://127.0.0.1:8554/test" rel="noreferrer" target="_blank" moz-do-not-send="true">127.0.0.1:8554/test</a>
0:00:09.120079875 951 0xd0a190 ERROR rtspmedia rtsp-media.c:3637:default_handle_sdp: 0x7f93380452b0: Media has more or less streams than SDP (0 /= 1)
0:00:09.120101464 951 0xd0a190 ERROR rtspclient rtsp-client.c:2946:handle_sdp: client 0xe551a0: could not handle SDP
0:00:09.120110777 951 0xd0a190 ERROR rtspclient rtsp-client.c:3107:handle_announce_request: client 0xe551a0: can't handle SDP
</code></pre>
<div
title="MDH:PGRpdj5gYGA8YnI+PC9kaXY+PGRpdj5HU1RfREVCVUc9MiAuL2J1aWxkL3Rlc3QtcmVjb3JkICIo
IHJ0cGgyNjRkZXBheSAhIGgyNjRwYXJzZSAhIG1wNG11eCAhIGZpbGVzaW5rIGxvY2F0aW9uPXJl
c3VsdDMubXA0ICkiPGJyPnN0cmVhbSByZWFkeSBhdCBydHNwOi8vMTI3LjAuMC4xOjg1NTQvdGVz
dDxicj5PbiB0aGUgc2VuZGVyLCBzZW5kIGEgc3RyZWFtIHdpdGggcnRzcGNsaWVudHNpbms6PGJy
PiZuYnNwOyBnc3QtbGF1bmNoLTEuMCB2aWRlb3Rlc3RzcmMgISB4MjY0ZW5jICEgcnRzcGNsaWVu
dHNpbmsgbG9jYXRpb249cnRzcDovLzEyNy4wLjAuMTo4NTU0L3Rlc3Q8YnI+MDowMDowOS4xMjAw
Nzk4NzUmbmJzcDsmbmJzcDsgOTUxJm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7
IDB4ZDBhMTkwIEVSUk9SJm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7
Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7IHJ0c3BtZWRpYSBydHNwLW1lZGlh
LmM6MzYzNzpkZWZhdWx0X2hhbmRsZV9zZHA6IDB4N2Y5MzM4MDQ1MmIwOiBNZWRpYSBoYXMgbW9y
ZSBvciBsZXNzIHN0cmVhbXMgdGhhbiBTRFAgKDAgLz0gMSk8YnI+MDowMDowOS4xMjAxMDE0NjQm
bmJzcDsmbmJzcDsgOTUxJm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7IDB4ZDBh
MTkwIEVSUk9SJm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7
Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7IHJ0c3BjbGllbnQgcnRzcC1jbGllbnQuYzoyOTQ2Omhh
bmRsZV9zZHA6IGNsaWVudCAweGU1NTFhMDogY291bGQgbm90IGhhbmRsZSBTRFA8YnI+MDowMDow
OS4xMjAxMTA3NzcmbmJzcDsmbmJzcDsgOTUxJm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7
Jm5ic3A7IDB4ZDBhMTkwIEVSUk9SJm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7
Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7IHJ0c3BjbGllbnQgcnRzcC1jbGll
bnQuYzozMTA3OmhhbmRsZV9hbm5vdW5jZV9yZXF1ZXN0OiBjbGllbnQgMHhlNTUxYTA6IGNhbid0
IGhhbmRsZSBTRFA8YnI+PC9kaXY+PGRpdj5gYGA8L2Rpdj4="
style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0"></div>
</div>
<div><br>
</div>
<div>This is the client side:</div>
<div
class="m_8394479757017198616m_8976826271294293531markdown-here-wrapper">
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline;white-space:pre-wrap;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">gst-launch-1.0 videotestsrc ! x264enc ! rtspclientsink </code></pre>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<div dir="auto">
<div dir="auto">To rtspclientsink you should provide one or
more RTP stream. To change h264 into RTP, you need to add
rtph264pay.</div>
<div dir="auto"><br>
</div>
</div>
<div dir="auto">
<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">
<div dir="ltr">
<div
class="m_8394479757017198616m_8976826271294293531markdown-here-wrapper">
<pre style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;font-size:1em;line-height:1.2em;margin:1.2em 0px"><code style="font-size:0.85em;font-family:Consolas,Inconsolata,Courier,monospace;margin:0px 0.15em;padding:0px 0.3em;white-space:pre-wrap;border:1px solid rgb(234,234,234);background-color:rgb(248,248,248);border-radius:3px;display:inline;white-space:pre-wrap;overflow:auto;border-radius:3px;border:1px solid rgb(204,204,204);padding:0.5em 0.7em;display:block!important">location=<a class="moz-txt-link-freetext" href="rtsp://">rtsp://</a><a href="http://127.0.0.1:8554/test" rel="noreferrer" target="_blank" moz-do-not-send="true">127.0.0.1:8554/test</a>
Setting pipeline to PAUSED ...
Pipeline is PREROLLED ...
Progress: (open) Opening Stream
Progress: (connect) Connecting to <a class="moz-txt-link-freetext" href="rtsp://">rtsp://</a><a href="http://127.0.0.1:8554/test" rel="noreferrer" target="_blank" moz-do-not-send="true">127.0.0.1:8554/test</a>
Redistribute latency...
Progress: (open) Retrieving server options
Progress: (open) Opened Stream
Setting pipeline to PLAYING ...
New clock: GstSystemClock
Progress: (request) Sending RECORD request
Progress: (record) Sending server stream info
ERROR: from element /GstPipeline:pipeline0/GstRTSPClientSink:rtspclientsink0: Could not read from resource.
Additional debug info:
gstrtspclientsink.c(3059): gst_rtsp_client_sink_send (): /GstPipeline:pipeline0/GstRTSPClientSink:rtspclientsink0:
Got error response: 415 (Unsupported Media Type).
Execution ended after 0:00:00.046342782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GluZTpwaXBlbGluZTAvR3N0UlRT
UENsaWVudFNpbms6cnRzcGNsaWVudHNpbmswOiBDb3VsZCBub3QgcmVhZCBmcm9tIHJlc291cmNl
Ljxicj5BZGRpdGlvbmFsIGRlYnVnIGluZm86PGJyPmdzdHJ0c3BjbGllbnRzaW5rLmMoMzA1OSk6
IGdzdF9ydHNwX2NsaWVudF9zaW5rX3NlbmQgKCk6IC9Hc3RQaXBlbGluZTpwaXBlbGluZTAvR3N0
UlRTUENsaWVudFNpbms6cnRzcGNsaWVudHNpbmswOjxicj5Hb3QgZXJyb3IgcmVzcG9uc2U6IDQx
NSAoVW5zdXBwb3J0ZWQgTWVkaWEgVHlwZSkuPGJyPkV4ZWN1dGlvbiBlbmRlZCBhZnRlciAwOjAw
OjAwLjA0NjM0Mjc4Mjxicj5TZXR0aW5nIHBpcGVsaW5lIHRvIFBBVVNFRCAuLi48YnI+U2V0dGlu
ZyBwaXBlbGluZSB0byBSRUFEWSAuLi48YnI+U2V0dGluZyBwaXBlbGluZSB0byBOVUxMIC4uLjxi
cj5GcmVlaW5nIHBpcGVsaW5lIC4uLjxicj48L2Rpdj48ZGl2PmBgYDwvZGl2Pg=="
style="height:0;width:0;max-height:0;max-width:0;overflow:hidden;font-size:0em;padding:0;margin:0"></div>
</div>
<div><br>
</div>
<div>Could you please give me a hint for this
problems.</div>
<div><br>
</div>
<div>Thanks in advanced.<br>
</div>
</div>
</blockquote>
</div>
</div>
</div>
<div dir="auto">
<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">
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org"
rel="noreferrer" target="_blank"
moz-do-not-send="true">gstreamer-devel@lists.freedesktop.org</a><br>
<a
href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"
rel="noreferrer noreferrer" target="_blank"
moz-do-not-send="true">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote>
</div>
</div>
</div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org"
target="_blank" moz-do-not-send="true">gstreamer-devel@lists.freedesktop.org</a><br>
<a
href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"
rel="noreferrer" target="_blank" moz-do-not-send="true">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
gstreamer-devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a>
<a class="moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
</blockquote>
</body>
</html>