<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <div class="moz-cite-prefix">On 01/24/2017 03:01 AM, Dimitrios
      Katsaros wrote:<br>
    </div>
    <blockquote
cite="mid:CAHpJRnzCCcaWECQCvVbriO8vniuaiMqyVAvjwL6cJKXf25aKdg@mail.gmail.com"
      type="cite">
      <div dir="ltr"><br>
        <blockquote class="gmail_quote" style="margin:0px 0px 0px
          0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span
            class="gmail-m_-8906929908263097101gmail-im"></span>this is
          the heart of my question. isn't there any way to use gstreamer
          to put the rtsp stream into a container (or anything else the
          browser needed) and serve to the browser with tcpserversink? i
          tried mp4mux or splitmuxsink in various incantations with
          various errors.<span
            class="gmail-m_-8906929908263097101gmail-im"><br>
          </span></blockquote>
        <div><br>
        </div>
        <div>rtsp is a protocol for controlling media across a network.
          In other words, the rtsp is the final step for you media
          pipeline. I am clarifying this since you are stating that you
          want to put your rtsp stream into a container, something that
          can not/should not be done. This might be a mistake but if you
          are confused about this it may be why you are having trouble
          transmitting data.<br>
        </div>
      </div>
    </blockquote>
    i must have misunderstood what you meant by "You need to put the
    video in a container format that will handle all that for you. "<br>
    <blockquote
cite="mid:CAHpJRnzCCcaWECQCvVbriO8vniuaiMqyVAvjwL6cJKXf25aKdg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>The normal order of tramsmission of media is raw media
          -> encoded media -> encoded media wrapped in a container
          -> media bundled in a network transmission protocol ->
          transfer across the wire. RTSP is nedded for transmission
          using udp.If you want to transmit a container format without
          using a network protocol then you would probably have to use
          something like tcpserversink to transmit the media correctly.
          <br>
          <br>
        </div>
        <div>I am not sure how Carlos implemented his solution, but
          based o what he suggested I would imagine a pipeline looking
          like:<br>
          <br>
          rtspsrc location=<a class="moz-txt-link-freetext" href="rtsp://">rtsp://</a><a moz-do-not-send="true"
            target="_blank" rel="noreferrer"
            href="http://user:password@192.168.1.5:554">user:password@<wbr>192.168.1.5:554</a>
          ! rtph264depay ! h264parse ! qtmux ! <http compatible
          sink><br>
          <br>
        </div>
        <div>The http compatible sink depends on how you are
          transmitting the media and how the browser is expecting it.
          You also need to set the qtmux properties to the correct
          values. fragment-duration needs to be a positive value and you
          should also set the streamable flag to true. You will probably
          have to play around with the values a bit.<br>
          <br>
        </div>
        <div>For the sink you will either want to use something like
          hlssink, but that expects a hls compatible player on the other
          end, or you can use something like multifilesink to create
          fragmented files, that you can serve using a standard http
          server. that will need from you to save the framgents in the
          correct location, with the correct name so the browser can
          request them. I am not sure how the video tag will work with a
          fragmented file on its own. That will need some looking into,
          A lot of people use stuff like dash.js or video.js to enhance
          the video tag. Again, some research is required.<br>
        </div>
      </div>
    </blockquote>
    <br>
    Thanks for all the info. <br>
    <blockquote
cite="mid:CAHpJRnzCCcaWECQCvVbriO8vniuaiMqyVAvjwL6cJKXf25aKdg@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><span class="gmail-m_-8906929908263097101gmail-im"></span></div>
      </div>
      <div class="gmail_extra"><br>
        <div class="gmail_quote">On Fri, Jan 20, 2017 at 7:51 PM,
          ITwrx.org <span dir="ltr"><<a moz-do-not-send="true"
              href="mailto:info@itwrx.org" target="_blank">info@itwrx.org</a>></span>
          wrote:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div bgcolor="#FFFFFF" text="#000000"><span class="">
                <div class="m_7104179223977272563moz-cite-prefix">On
                  01/20/2017 02:54 AM, Dimitrios Katsaros wrote:<br>
                </div>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div>The video tag in html is a bit problematic. The
                      idea behind it was to be able to play any video in
                      a browser but it requires that the browser
                      implement the logic for handing the media types,
                      which is a big blunder. Here is a table with a few
                      media types:<br>
                      <br>
                      <a moz-do-not-send="true"
href="https://developer.mozilla.org/en-US/docs/Web/HTML/Supported_media_formats"
                        target="_blank">https://developer.mozilla.org/<wbr>en-US/docs/Web/HTML/Supported_<wbr>media_formats</a><br>
                    </div>
                  </div>
                </blockquote>
              </span> right. firefox supports h264/aac but it doesn't
              support rtsp so i'm trying to use gstreamer to package the
              rtsp stream so that the browser doesn't know the
              difference.<span class=""><br>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div><br>
                      From what I see you are trying to reencode h264.
                      Is there any reason why h264parse is not enough? </div>
                  </div>
                </blockquote>
              </span> no, i just didn't know what i was doing. :)<span
                class=""><br>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div>h264 is a video compression standard but it
                      does not provide any information on duration,
                      metadata about the stream etc. You need to put the
                      video in a container format that will handle all
                      that for you. </div>
                  </div>
                </blockquote>
              </span> this is the heart of my question. isn't there any
              way to use gstreamer to put the rtsp stream into a
              container (or anything else the browser needed) and serve
              to the browser with tcpserversink? i tried mp4mux or
              splitmuxsink in various incantations with various errors.<span
                class=""><br>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div>If you intend on streaming to a media player
                      you can use tsmux to get an mpegts stream.
                      However, you will need a compatible player on the
                      client side like the vlc embedded player. That has
                      it's own problem in that you need to assume that
                      the client has vlc or any other player installed.
                    </div>
                  </div>
                </blockquote>
              </span> trying to avoid.<span class=""><br>
                <blockquote type="cite">
                  <div dir="ltr">
                    <div>One other alternative is to go for hls or mpeg
                      dash. That will require that you create a
                      fragmented stream, create the media descriptor
                      file for the fragmented stream and then provide it
                      via a http server. The nice thing about this
                      approach is that there are javascript based
                      players you can embed in your webpage. But it
                      requires a lot of work to implement all the
                      requirements. <br>
                    </div>
                  </div>
                </blockquote>
              </span> thanks for that info. will keep it in mind. would
              prefer just to use gstreamer. i can do it with
              videotestsrc and webm (seems to work well) and i can do it
              with v4l2src and webcam(poorly). hoping there's a way to
              do it with rtspsrc. <br>
              <span class="">
                <blockquote type="cite">
                  <div dir="ltr">
                    <div><br>
                    </div>
                    <div>I am sure people can suggest more alternatives,
                      but these are the ones I have played around with.
                      If you want something simple I would try the
                      mpegts stream to vlc. you will have a client to
                      start with and can then work towarsd embedding it
                      into your site. <br>
                      <br>
                    </div>
                    <div>Dimitrios<br>
                    </div>
                  </div>
                </blockquote>
              </span> Thanks
              <div>
                <div class="h5"><br>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div><br>
                      </div>
                    </div>
                    <div class="gmail_extra"><br>
                      <div class="gmail_quote">On Wed, Jan 18, 2017 at
                        9:07 PM, ITwrx.org <span dir="ltr"><<a
                            moz-do-not-send="true"
                            href="mailto:info@itwrx.org" target="_blank">info@itwrx.org</a>></span>
                        wrote:<br>
                        <blockquote class="gmail_quote" style="margin:0
                          0 0 .8ex;border-left:1px #ccc
                          solid;padding-left:1ex">hi,<br>
                          <br>
                          i'm trying to use gstreamer to get an rtsp
                          stream from an ip cam into my<br>
                          browser(html video tag). I'm currently trying
                          to use<br>
                          <br>
                          "gst-launch-1.0 rtspsrc location=<a
                            moz-do-not-send="true"
                            class="m_7104179223977272563moz-txt-link-freetext">rtsp://</a><a
                            moz-do-not-send="true"
                            href="http://user:password@192.168.1.5:554"
                            rel="noreferrer" target="_blank">user:password@<wbr>192.168.1.5:554</a>
                          !<br>
                          rtph264depay ! h264parse ! decodebin ! x264enc
                          ! tcpserversink<br>
                          host=127.0.0.1 port=8080"<br>
                          <br>
                          which seems to be sending something, but
                          firefox won't display the video<br>
                          and reports that it has mime type
                          "text/plain".<br>
                          <br>
                          Could anyone recommend the proper command for
                          accomplishing this?<br>
                          <br>
                          thanks<br>
                          <span class="m_7104179223977272563HOEnZb"><font
                              color="#888888"><br>
                              --<br>
                              Information Technology Works<br>
                              <a moz-do-not-send="true"
                                href="https://ITwrx.org"
                                rel="noreferrer" target="_blank">https://ITwrx.org</a><br>
                              @ITwrxorg<br>
                              <br>
                              ______________________________<wbr>_________________<br>
                              gstreamer-devel mailing list<br>
                              <a moz-do-not-send="true"
                                href="mailto:gstreamer-devel@lists.freedesktop.org"
                                target="_blank">gstreamer-devel@lists.freedesk<wbr>top.org</a><br>
                              <a moz-do-not-send="true"
                                href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel"
                                rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-dev<wbr>el</a><br>
                            </font></span></blockquote>
                      </div>
                      <br>
                    </div>
                    <br>
                    <fieldset
                      class="m_7104179223977272563mimeAttachmentHeader"></fieldset>
                    <br>
                    <pre>______________________________<wbr>_________________
gstreamer-devel mailing list
<a moz-do-not-send="true" class="m_7104179223977272563moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.<wbr>freedesktop.org</a>
<a moz-do-not-send="true" class="m_7104179223977272563moz-txt-link-freetext" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a>
</pre>
    </blockquote>
    

    <p>

    </p>
    <pre class="m_7104179223977272563moz-signature" cols="72">-- 
Information Technology Works
<a moz-do-not-send="true" class="m_7104179223977272563moz-txt-link-freetext" href="https://ITwrx.org" target="_blank">https://ITwrx.org</a>
@ITwrxorg

</pre>
  </div></div></div>


______________________________<wbr>_________________

gstreamer-devel mailing list

<a moz-do-not-send="true" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a>

<a moz-do-not-send="true" href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a>


</blockquote></div>
</div>


<fieldset class="mimeAttachmentHeader"></fieldset>
<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>
<p>
</p><pre class="moz-signature" cols="72">-- 
Information Technology Works
<a class="moz-txt-link-freetext" href="https://ITwrx.org">https://ITwrx.org</a>
@ITwrxorg

</pre></body></html>