<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    On 06/25/11 18:35, Bernhard Graaf wrote:
    <blockquote cite="mid:DA6F153C6CAB4B26A6E029DD60DD2E85@BernhardPC"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html;
        charset=ISO-8859-1">
      <meta name="Generator" content="Microsoft Word 11 (filtered
        medium)">
      <!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
      <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Wingdings;
        panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";
        color:black;}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline;}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
span.E-MailFormatvorlage17
        {mso-style-type:personal;
        font-family:Arial;
        color:windowtext;}
span.E-MailFormatvorlage19
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.Section1
        {page:Section1;}
 /* List Definitions */
 @list l0
        {mso-list-id:1563174883;
        mso-list-type:hybrid;
        mso-list-template-ids:1403799906 67567631 67567641 67567643 67567631 67567641 67567643 67567631 67567641 67567643;}
@list l0:level1
        {mso-level-tab-stop:36.0pt;
        mso-level-number-position:left;
        text-indent:-18.0pt;}
ol
        {margin-bottom:0cm;}
ul
        {margin-bottom:0cm;}
-->
</style><!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
      <div class="Section1">
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-US">Hi Stefan,<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-US"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-US">Yes, no problem.<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-US">I&#8217;m using my own
              C-Program for that, but my pipe is looks like:<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-US"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-US">Server:<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-US">Dvbsrc ! mpegtsmux name=demux
              demux.video_xxxx ! queue ! mpegpsmux name=mux ! filesink
              location=xyz.mpg demux.audo_xxxx
              ! queue ! mux. (converting Mpeg-TS to Mpeg-PS </span></font><font
            color="navy" face="Wingdings" size="2"><span
              style="font-size: 10pt; font-family: Wingdings; color:
              navy;" lang="EN-US">&agrave;</span></font><font color="navy"
            face="Arial" size="2"><span style="font-size: 10pt;
              font-family: Arial; color: navy;" lang="EN-US"> is running
              well)<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-US"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-US">Client:<o:p></o:p></span></font></p>
        <ol style="margin-top: 0cm;" start="1" type="1">
          <li class="MsoNormal" style="color: navy;"><font color="navy"
              face="Arial" size="2"><span style="font-size: 10pt;
                font-family: Arial;" lang="EN-US">playbin2
                video-sink=xvimagesink uri=xyz.mpg<o:p></o:p></span></font></li>
          <li class="MsoNormal" style="color: navy;"><font color="navy"
              face="Arial" size="2"><span style="font-size: 10pt;
                font-family: Arial;" lang="EN-US">filesrc
                location=xyz.mpg ! mpegpsdemux name=demux ! queue !
                mpeg2dec ! xvimagsink demux. ! queue ! mad ! alsasink<o:p></o:p></span></font></li>
        </ol>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-US"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-US">Both of them are running
              well with a closed file (have a given file length).<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-US">But also both of the have
              the same problem: running to the point of file, where the
              file length was as
              opening time.</span></font></p>
      </div>
    </blockquote>
    The problem is that at somepoint filesrc is checking the filesize
    and it is not aware that it changes.<br>
    <br>
    You could try using a pipe instead of files (fssink+fdsrc instead of
    filesink,filesrc). Otherwise we might need a flag on filesrc to
    restat the file for each read and if size changed send a duration
    change.<br>
    <br>
    Stefan<br>
    <br>
    <blockquote cite="mid:DA6F153C6CAB4B26A6E029DD60DD2E85@BernhardPC"
      type="cite">
      <div class="Section1">
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-US"><o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-US"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-US">Thanks<o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="navy" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial; color: navy;"
              lang="EN-US"><o:p>&nbsp;</o:p></span></font></p>
        <div>
          <div class="MsoNormal" style="text-align: center;"
            align="center"><font color="black" face="Times New Roman"
              size="3"><span style="font-size: 12pt; color: windowtext;">
                <hr tabindex="-1" align="center" size="2" width="100%">
              </span></font></div>
          <p class="MsoNormal"><b><font color="black" face="Tahoma"
                size="2"><span style="font-size: 10pt; font-family:
                  Tahoma; color: windowtext; font-weight: bold;">Von:</span></font></b><font
              color="black" face="Tahoma" size="2"><span
                style="font-size: 10pt; font-family: Tahoma; color:
                windowtext;">
                <a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel-bounces+bernhard.graaf=gmx.de@lists.freedesktop.org">gstreamer-devel-bounces+bernhard.graaf=gmx.de@lists.freedesktop.org</a>
                [<a class="moz-txt-link-freetext" href="mailto:gstreamer-devel-bounces+bernhard.graaf=gmx.de@lists.freedesktop.org">mailto:gstreamer-devel-bounces+bernhard.graaf=gmx.de@lists.freedesktop.org</a>]
                <b><span style="font-weight: bold;">Im Auftrag von </span></b>Stefan
                Kost<br>
                <b><span style="font-weight: bold;">Gesendet:</span></b>
                Samstag, 25. Juni 2011
                18:09<br>
                <b><span style="font-weight: bold;">An:</span></b>
                <a class="moz-txt-link-abbreviated" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
                <b><span style="font-weight: bold;">Betreff:</span></b>
                Re: Writing Video and
                reading in same time</span></font><font color="black"><span
                style="color: windowtext;"><o:p></o:p></span></font></p>
        </div>
        <p class="MsoNormal"><font color="black" face="Times New Roman"
            size="3"><span style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
        <p class="MsoNormal"><font color="black" face="Times New Roman"
            size="3"><span style="font-size: 12pt;">On 06/25/11 17:56,
              Bernhard Graaf wrote: <o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-US">Hi,<u1:p></u1:p></span></font><o:p></o:p></p>
        <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-US"><u1:p>&nbsp;</u1:p></span></font><o:p></o:p></p>
        <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-US">I
              have a problem with gstreamer.<u1:p></u1:p></span></font><o:p></o:p></p>
        <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-US">I
              write a video stream in a file and
              try to read it with another process (a few seconds later).<u1:p></u1:p></span></font><o:p></o:p></p>
        <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-US">If
              I link the reading pipe using
              filesrc or playbin2 and could only see the video as long
              as the file is in
              opening time.<u1:p></u1:p></span></font><o:p></o:p></p>
        <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-US">For
              example:<u1:p></u1:p></span></font><o:p></o:p></p>
        <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-US">If
              the file is only 4 seconds long
              in the time I link the reading pipe, I could only see this
              4 seconds, but the
              writing pipe is running and the file is much longer in the
              meantime (sorry for
              my bad English).<u1:p></u1:p></span></font><o:p></o:p></p>
        <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-US">I
              hope you can understand my problem.<u1:p></u1:p></span></font><o:p></o:p></p>
        <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-US">Here
              my question:<u1:p></u1:p></span></font><o:p></o:p></p>
        <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-US">Is
              there any solution to write a
              video file with one process and read it with another pipe?</span></font><o:p></o:p></p>
        <p class="MsoNormal"><font color="black" face="Times New Roman"
            size="3"><span style="font-size: 12pt;"><br>
              What format are you using. Could you explain the scenario
              better. Do you wnat
              to relay a we-stream? Maybe you can stream the video
              without writing it to a
              file buffer.<br>
              <br>
              Stefan<br>
              <br>
              <o:p></o:p></span></font></p>
        <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-US"><u1:p></u1:p><u1:p>&nbsp;</u1:p></span></font><o:p></o:p></p>
        <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-US">Thanks&#8217;
              for your help!!!!<u1:p></u1:p></span></font><o:p></o:p></p>
        <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-US"><u1:p>&nbsp;</u1:p></span></font><o:p></o:p></p>
        <p class="MsoNormal"><font color="black" face="Arial" size="2"><span
              style="font-size: 10pt; font-family: Arial;" lang="EN-US">Bernhard<u1:p></u1:p></span></font><o:p></o:p></p>
        <pre wrap=""><font color="black" face="Courier New" size="2"><span style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
        <pre><fieldset class="mimeAttachmentHeader"></fieldset><font color="black" face="Courier New" size="2"><span style="font-size: 10pt;"><o:p>&nbsp;</o:p></span></font></pre>
        <pre><font color="black" face="Courier New" size="2"><span style="font-size: 10pt;">_______________________________________________<o:p></o:p></span></font></pre>
        <pre><font color="black" face="Courier New" size="2"><span style="font-size: 10pt;">gstreamer-devel mailing list<o:p></o:p></span></font></pre>
        <pre><font color="black" face="Courier New" size="2"><span style="font-size: 10pt;"><a moz-do-not-send="true" href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><o:p></o:p></span></font></pre>
        <pre><font color="black" face="Courier New" size="2"><span style="font-size: 10pt;"><a moz-do-not-send="true" href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><o:p></o:p></span></font></pre>
        <p class="MsoNormal"><font color="black" face="Times New Roman"
            size="3"><span style="font-size: 12pt;"><o:p>&nbsp;</o:p></span></font></p>
      </div>
      <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
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>