<div dir="ltr"><div>I don't know exactly what you mean with "live files", just as Sebastian pointed out, the first thing that came to my head was <span style class="">unix</span> sockets.<br><br></div>I imagine that you are trying to do this because each pipeline is running on a different process, if this is the case maybe the shared memory <span style class="">plugins</span> will do the trick to you:<br>
<div><div><br>http://<span style class="">gstreamer</span>.<span style class="">freedesktop</span>.org/data/doc/<span style class="">gstreamer</span>/head/<span style class="">gst</span>-<span style class="">plugins</span>-bad-<span style class="">plugins</span>/html/<span style class="">gst</span>-<span style class="">plugins</span>-bad-<span style class="">plugins</span>-<span style class="">shmsrc</span>.html<br>
<br>http://<span style class="">gstreamer</span>.<span style class="">freedesktop</span>.org/data/doc/<span style class="">gstreamer</span>/head/<span style class="">gst</span>-<span style class="">plugins</span>-bad-<span style class="">plugins</span>/html/<span style class="">gst</span>-<span style class="">plugins</span>-bad-<span style class="">plugins</span>-<span style class="">shmsink</span>.html<br>
</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, May 12, 2014 at 4:15 AM, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On So, 2014-05-11 at 21:09 +0200, Bernhard Graaf wrote:<br>
> One short question:<br>
><br>
><br>
><br>
> Do we have a module to work with a live file?<br>
><br>
> I have to different pipelines. One pipeline to write into a file, one<br>
> pipeline to read from the same.<br>
><br>
> I have tried to use filesrc, fdsrc and playbin to read the file, but every<br>
> module stops playing after a short time (the length of the file during<br>
> opening).<br>
><br>
> Or is there any trick in a C-Program to persuade the reading module to read<br>
> forward (I've try to ignore EOS, but with the same result)?<br>
<br>
filesrc is checking if the file size has changed when it reaches the<br>
end, and will then read any newly added data. And then check again.<br>
<br>
However this setup is never going to work reliable as there is no<br>
synchronisation at all between the writing process and the reading<br>
process. You'll most likely often get into the case where filesrc reads<br>
over the end of the already written file and then goes to EOS, and only<br>
then the writer adds some further data.<br>
<br>
The real solution for this problem would be to either use pipe or socket<br>
for the data transfer instead of going over the file system (and then<br>
use fdsrc), or to properly integrate the writer into the GStreamer<br>
pipeline with an appsrc or a custom source element instead of using a<br>
file.<br>
<span class="HOEnZb"><font color="#888888"><br>
--<br>
Sebastian Dröge, Centricular Ltd - <a href="http://www.centricular.com" target="_blank">http://www.centricular.com</a><br>
Expertise, Straight from the Source<br>
</font></span><br>_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
<br></blockquote></div><br></div>