On 1 March 2013 16:35, Julian Herrera <span dir="ltr"><<a href="mailto:julian.herrera@tvgenius.net" target="_blank">julian.herrera@tvgenius.net</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On 01/03/2013 15:13, Steve Hart wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi<br>
We are investigating the possibility of using ffmpeg to record and<br>
playback video<br>
Could anyone tell me if it is possible to play back and seek within a<br>
file that is recording<br>
at the same time.<br>
So<br>
If we have a program that starts capturing video from an external<br>
source, encodes and records to disk<br>
and at the same time, play the video to screen and (most importantly)<br>
seek within it.<br>
(jog/shuttle/ffw etc).<br>
<br>
Is this possible?<br>
Any caveats?<br>
<br>
</blockquote>
<br></div></div>
I did something similar a few days ago. I used the Live555 library to dump an mpegts stream into a local temp file from an RTSP server. Then I used libav to play that file at the same time on different threads and everything worked fine. I guess you just have to be sure of not crossing the boundaries of the temporary file.<span class="HOEnZb"><font color="#888888"><br>

<br>
Julian Herrera</font></span><div class="HOEnZb"><div class="h5"><br>
<br>
<br>
<br>
______________________________<u></u>_________________<br>
Libav-user mailing list<br>
<a href="mailto:Libav-user@ffmpeg.org" target="_blank">Libav-user@ffmpeg.org</a><br>
<a href="http://ffmpeg.org/mailman/listinfo/libav-user" target="_blank">http://ffmpeg.org/mailman/<u></u>listinfo/libav-user</a><br>
</div></div></blockquote></div><br>The issue here is seeking I think.
<div>I can open the currently recording file and play it back fine - but as soon as I seek, I get errors/hangs.</div><div>I ensure that any seek forward is clamped at 2 secs before the current record.</div><div>I should mention this is dv50 into mxf wrap.</div>
<div>Steve</div>