<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Il 28/11/2011 12:34, Nezer Zaidenberg ha scritto:
    <blockquote
cite="mid:CAFHPcenyWBzK2Ka+ct_4sE8Jfe1MqDe=7fT8=evVZuPFxTQVUw@mail.gmail.com"
      type="cite">
      <div dir="ltr">Hi All,
        <div><br>
        </div>
        <div>I have a live source (webcam) that I want to record
          continuously without losing any video - but also be able to
          playback everything up to the last minute. I am trying to dump
          the video to a fifo and then record it from the fifo one
          minute at a time.</div>
        <div><br>
        </div>
        <div>The problem is that it seems there is a problem with the
          timestamps. It looks like gstreamer expects a clock to be
          supplied by the filesrc but that doesn't happen. </div>
        <div>Specifically when I try to play the pipe instead of record
          it, I get choppy video and a warning is emitted about the
          timestamps.</div>
        <div><br>
        </div>
        <div>Does anyone know how I could record an mpeg stream from a
          fifo?</div>
        <div><br>
        </div>
        <div>For reference, here are the pipelines:</div>
        <div>source pipe:</div>
        <div>gst-launch rtspsrc location="&lt;webcam&gt;" ! rtpmp4vdepay
          ! filesink location=pipe</div>
        <div><br>
        </div>
        <div>record pipe:</div>
        <div>gst-launch filesrc location=pipe ! 'video/mpeg,
          mpegversion=4, systemstream=false, width=320, height=240.
          framerate=(fraction)30/1, codec_data=...' ! matroskamux !
          filesink location="1.mkv"</div>
        <div><br>
        </div>
        <div>play pipe:</div>
        <div>gst-launch filesrc location=pipe ! 'video/mpeg,
          mpegversion=4, systemstream=false, width=320, height=240.
          framerate=(fraction)30/1, codec_data=...' ! ffdec_mpeg4 !
          ffmpegcolorspace ! autovideosink</div>
      </div>
    </blockquote>
    <br>
    try to add do-timestamp=true to the filesrc element (or sync=false
    to the videosink), however gstreamer allow to record and play with
    only 1 pipeline, no need for this hack:<br>
    <br>
<a class="moz-txt-link-freetext" href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugins-tee.html">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer-plugins/html/gstreamer-plugins-tee.html</a><br>
<a class="moz-txt-link-freetext" href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gstreamer-app.html">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-base-libs/html/gstreamer-app.html</a><br>
    <br>
    Nicola<br>
    <br>
    <blockquote
cite="mid:CAFHPcenyWBzK2Ka+ct_4sE8Jfe1MqDe=7fT8=evVZuPFxTQVUw@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div><br>
        </div>
        <div>Thanks,</div>
        <div>  Tomer &amp; Nezer</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <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="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>