<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Hi I have a similar problem but in my case I want to store and retrieve raw rtp packets. Is it possible to do this as well or the filesink requires a specific file format? I put my question here because I thought the issue is the same. Basically I want the functionality of a buffer but because the data will be too big I want to store it in a file temporarily.<br><br>Thank you.<br><br>- Zelalem S. <br><br><div><hr id="stopSpelling">From: bernhard.graaf@gmx.de<br>To: gstreamer-devel@lists.freedesktop.org<br>Subject: AW: Writing Video and reading in same time<br>Date: Sat, 25 Jun 2011 18:35:43 +0200<br><br>


<meta http-equiv="Content-Type" content="text/html; charset=unicode">
<meta name="Generator" content="Microsoft SafeHTML">



<style>
.ExternalClass .ecxshape
{;}
</style>

<style>
.ExternalClass p.ecxMsoNormal, .ExternalClass li.ecxMsoNormal, .ExternalClass div.ecxMsoNormal
{margin-bottom:.0001pt;font-size:12.0pt;font-family:'Times New Roman';color:black;}
.ExternalClass a:link, .ExternalClass span.ecxMsoHyperlink
{color:blue;text-decoration:underline;}
.ExternalClass a:visited, .ExternalClass span.ecxMsoHyperlinkFollowed
{color:purple;text-decoration:underline;}
.ExternalClass pre
{margin-bottom:.0001pt;font-size:10.0pt;font-family:'Courier New';color:black;}
.ExternalClass span.ecxE-MailFormatvorlage17
{font-family:Arial;color:windowtext;}
.ExternalClass span.ecxE-MailFormatvorlage19
{font-family:Arial;color:navy;}
@page Section1
{size:595.3pt 841.9pt;}
.ExternalClass div.ecxSection1
{page:Section1;}
.ExternalClass ol
{margin-bottom:0cm;}
.ExternalClass ul
{margin-bottom:0cm;}

</style>





<div class="ecxSection1">

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-US">Hi Stefan,</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-US">&nbsp;</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-US">Yes, no problem.</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-US">I’m using my own
C-Program for that, but my pipe is looks like:</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-US">&nbsp;</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-US">Server:</span></font></p>

<p class="ecxMsoNormal"><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">à</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)</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-US">&nbsp;</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-US">Client:</span></font></p>

<ol style="" start="1" type="1">
 <li class="ecxMsoNormal" 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</span></font></li>
 <li class="ecxMsoNormal" 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</span></font></li>
</ol>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-US">&nbsp;</span></font></p>

<p class="ecxMsoNormal"><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).</span></font></p>

<p class="ecxMsoNormal"><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>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-US">&nbsp;</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-US">Thanks</span></font></p>

<p class="ecxMsoNormal"><font color="navy" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial; color: navy;" lang="EN-US">&nbsp;</span></font></p>

<div>

<div class="ecxMsoNormal" 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" size="2" width="100%" align="center">

</span></font></div>

<p class="ecxMsoNormal"><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;"> gstreamer-devel-bounces+bernhard.graaf=gmx.de@lists.freedesktop.org
[mailto:gstreamer-devel-bounces+bernhard.graaf=gmx.de@lists.freedesktop.org] <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>
gstreamer-devel@lists.freedesktop.org<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;"></span></font></p>

</div>

<p class="ecxMsoNormal"><font color="black" face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

<p class="ecxMsoNormal"><font color="black" face="Times New Roman" size="3"><span style="font-size: 12pt;">On 06/25/11 17:56, Bernhard Graaf wrote: </span></font></p>

<p class="ecxMsoNormal"><font color="black" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US">Hi,</span></font></p>

<p class="ecxMsoNormal"><font color="black" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US">&nbsp;</span></font></p>

<p class="ecxMsoNormal"><font color="black" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US">I have a problem with gstreamer.</span></font></p>

<p class="ecxMsoNormal"><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).</span></font></p>

<p class="ecxMsoNormal"><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.</span></font></p>

<p class="ecxMsoNormal"><font color="black" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US">For example:</span></font></p>

<p class="ecxMsoNormal"><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).</span></font></p>

<p class="ecxMsoNormal"><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.</span></font></p>

<p class="ecxMsoNormal"><font color="black" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US">Here my question:</span></font></p>

<p class="ecxMsoNormal"><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></p>

<p class="ecxMsoNormal"><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>
</span></font></p>

<p class="ecxMsoNormal"><font color="black" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US">&nbsp;</span></font></p>

<p class="ecxMsoNormal"><font color="black" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US">Thanks’ for your help!!!!</span></font></p>

<p class="ecxMsoNormal"><font color="black" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US">&nbsp;</span></font></p>

<p class="ecxMsoNormal"><font color="black" face="Arial" size="2"><span style="font-size: 10pt; font-family: Arial;" lang="EN-US">Bernhard</span></font></p>

<pre><font color="black" face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp;</span></font></pre><pre><fieldset class="ecxmimeAttachmentHeader"></fieldset><font color="black" face="Courier New" size="2"><span style="font-size: 10pt;">&nbsp;</span></font></pre><pre><font color="black" face="Courier New" size="2"><span style="font-size: 10pt;">_______________________________________________</span></font></pre><pre><font color="black" face="Courier New" size="2"><span style="font-size: 10pt;">gstreamer-devel mailing list</span></font></pre><pre><font color="black" face="Courier New" size="2"><span style="font-size: 10pt;"><a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a></span></font></pre><pre><font color="black" face="Courier New" size="2"><span style="font-size: 10pt;"><a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></span></font></pre>

<p class="ecxMsoNormal"><font color="black" face="Times New Roman" size="3"><span style="font-size: 12pt;">&nbsp;</span></font></p>

</div>




<br>_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</div>                                               </div></body>
</html>