<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">That is known from experience and
      looking at various outputs such as 'gst-inspect-1.0 $ELEMENT' or
      GST_DEBUG=3 or even GST_DEBUG=*PAD*:5,3<br>
      <br>
      For the element naming, the test-record --help output is useful
      for this.<br>
      <br>
      Cheers<br>
      -Matt<br>
      <br>
      On 4/9/18 12:57 am, Dinh Nguyen wrote:<br>
    </div>
    <blockquote type="cite"
cite="mid:CAKNZUh1qNXPvBa1tAPv+DqTYO112ogDZt=UeP=Aj+KVBu7Fxgw@mail.gmail.com">
      <meta http-equiv="content-type" content="text/html; charset=UTF-8">
      <div dir="ltr">
        <div>Hello Matthew,</div>
        <div><br>
        </div>
        <div>Thanks a lot, it is working for me know.</div>
        <div><br>
        </div>
        <div>Well, the pipeline elements are so confusing for me. How
          could one know that after this element should be that element;
          is there something like interface?</div>
        <div><br>
        </div>
        <div>Thanks again.</div>
        <div><br>
        </div>
        <div><br>
          <div class="gmail_quote">
            <div dir="ltr">On Mon, Sep 3, 2018 at 12:55 PM Matthew
              Waters <<a href="mailto:ystreet00@gmail.com"
                moz-do-not-send="true">ystreet00@gmail.com</a>>
              wrote:<br>
            </div>
            <blockquote class="gmail_quote" style="margin:0 0 0
              .8ex;border-left:1px #ccc solid;padding-left:1ex">
              <div text="#000000" bgcolor="#FFFFFF">
                <div class="m_6634057219399094567moz-cite-prefix">On
                  3/9/18 3:37 pm, Dinh Nguyen wrote:<br>
                </div>
                <blockquote type="cite">
                  <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="m_6634057219399094567moz-txt-link-freetext"
                        moz-do-not-send="true">rtsp://</a><a
                        href="http://127.0.0.1:8554/test"
                        target="_blank" 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>
              </div>
              <div text="#000000" bgcolor="#FFFFFF">
                <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>
              </div>
              <div text="#000000" bgcolor="#FFFFFF">
                <blockquote type="cite">
                  <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"
                        target="_blank" 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_6634057219399094567m_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="m_6634057219399094567moz-txt-link-freetext" moz-do-not-send="true">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="m_6634057219399094567moz-txt-link-freetext" moz-do-not-send="true">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+P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7Jm5ic3A7Jm5ic3A7&#xA;Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7IHJ0c3BjbGllbnQgcnRzcC1jbGllbnQuYzoyOTQ2Omhh&#xA;bmRsZV9zZHA6IGNsaWVudCAweGU1NTFhMDogY291bGQgbm90IGhhbmRsZSBTRFA8YnI+MDowMDow&#xA;OS4xMjAxMTA3NzcmbmJzcDsmbmJzcDsgOTUxJm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7&#xA;Jm5ic3A7IDB4ZDBhMTkwIEVSUk9SJm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7&#xA;Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7Jm5ic3A7IHJ0c3BjbGllbnQgcnRzcC1jbGll&#xA;bnQuYzozMTA3OmhhbmRsZV9hbm5vdW5jZV9yZXF1ZXN0OiBjbGllbnQgMHhlNTUxYTA6IGNhbid0&#xA;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_6634057219399094567m_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_6634057219399094567m_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="m_6634057219399094567moz-txt-link-freetext" moz-do-not-send="true">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="m_6634057219399094567moz-txt-link-freetext" moz-do-not-send="true">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
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
Freeing pipeline ...
</code></pre>
                                  <div
title="MDH:PGRpdj5gYGA8YnI+PC9kaXY+PGRpdj5nc3QtbGF1bmNoLTEuMCB2aWRlb3Rlc3RzcmMgISB4MjY0&#xA;ZW5jICEgcnRzcGNsaWVudHNpbmsgbG9jYXRpb249cnRzcDovLzEyNy4wLjAuMTo4NTU0L3Rlc3Q8&#xA;YnI+U2V0dGluZyBwaXBlbGluZSB0byBQQVVTRUQgLi4uPGJyPjxnIGNsYXNzPSJncl8gZ3JfNDE1&#xA;IGdyLWFsZXJ0IGdyX2dyYW1tIGdyX2lubGluZV9jYXJkcyBncl9ydW5fYW5pbSBHcmFtbWFyIG9u&#xA;bHktaW5zIGRvdWJsZVJlcGxhY2UgcmVwbGFjZVdpdGhvdXRTZXAiIGlkPSI0MTUiIGRhdGEtZ3It&#xA;aWQ9IjQxNSI+UGlwZWxpbmU8L2c+IGlzIFBSRVJPTExFRCAuLi48YnI+UHJvZ3Jlc3M6IChvcGVu&#xA;KSBPcGVuaW5nIFN0cmVhbTxicj5Qcm9ncmVzczogKGNvbm5lY3QpIENvbm5lY3RpbmcgdG8gcnRz&#xA;cDovLzEyNy4wLjAuMTo4NTU0L3Rlc3Q8YnI+UmVkaXN0cmlidXRlIGxhdGVuY3kuLi48YnI+UHJv&#xA;Z3Jlc3M6IChvcGVuKSBSZXRyaWV2aW5nIHNlcnZlciBvcHRpb25zPGJyPlByb2dyZXNzOiAob3Bl&#xA;bikgT3BlbmVkIFN0cmVhbTxicj5TZXR0aW5nIHBpcGVsaW5lIHRvIFBMQVlJTkcgLi4uPGJyPk5l&#xA;dyBjbG9jazogR3N0U3lzdGVtQ2xvY2s8YnI+UHJvZ3Jlc3M6IChyZXF1ZXN0KSBTZW5kaW5nIFJF&#xA;Q09SRCByZXF1ZXN0PGJyPlByb2dyZXNzOiAocmVjb3JkKSBTZW5kaW5nIHNlcnZlciBzdHJlYW0g&#xA;aW5mbzxicj5FUlJPUjogZnJvbSBlbGVtZW50IC9Hc3RQaXBlbGluZTpwaXBlbGluZTAvR3N0UlRT&#xA;UENsaWVudFNpbms6cnRzcGNsaWVudHNpbmswOiBDb3VsZCBub3QgcmVhZCBmcm9tIHJlc291cmNl&#xA;Ljxicj5BZGRpdGlvbmFsIGRlYnVnIGluZm86PGJyPmdzdHJ0c3BjbGllbnRzaW5rLmMoMzA1OSk6&#xA;IGdzdF9ydHNwX2NsaWVudF9zaW5rX3NlbmQgKCk6IC9Hc3RQaXBlbGluZTpwaXBlbGluZTAvR3N0&#xA;UlRTUENsaWVudFNpbms6cnRzcGNsaWVudHNpbmswOjxicj5Hb3QgZXJyb3IgcmVzcG9uc2U6IDQx&#xA;NSAoVW5zdXBwb3J0ZWQgTWVkaWEgVHlwZSkuPGJyPkV4ZWN1dGlvbiBlbmRlZCBhZnRlciAwOjAw&#xA;OjAwLjA0NjM0Mjc4Mjxicj5TZXR0aW5nIHBpcGVsaW5lIHRvIFBBVVNFRCAuLi48YnI+U2V0dGlu&#xA;ZyBwaXBlbGluZSB0byBSRUFEWSAuLi48YnI+U2V0dGluZyBwaXBlbGluZSB0byBOVUxMIC4uLjxi&#xA;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="m_6634057219399094567mimeAttachmentHeader"></fieldset>
                  <pre class="m_6634057219399094567moz-quote-pre">_______________________________________________
gstreamer-devel mailing list
<a class="m_6634057219399094567moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" moz-do-not-send="true">gstreamer-devel@lists.freedesktop.org</a>
<a class="m_6634057219399094567moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank" moz-do-not-send="true">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
                </blockquote>
              </div>
            </blockquote>
          </div>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>