Keeping video file playable while recording to it
<p>I am trying to stream a file , starting from an arbitrary position , that i am recording to at the same time. But until i stop recording the file seems to be not playable.</p>

<p>Recording</p>

<pre><code>gst-launch-1.0 -e videotestsrc ! x264enc ! mp4mux ! filesink location=test.mp4
</code></pre>

<p>Streaming from udp, starting from minute 1.</p>

<pre><code>ffmpeg -i  test.mp4 -re -ss 00:01:00 -f mpegts udp://127.0.0.1:1453
</code></pre>

<p>ffmpeg says <code>moov atom not found</code> and just quits.
After I stop the recording pipeline. Its works as expected.</p>

<p>Thank you all in advance.</p>