user6735: I am using ffmpeg to capture a video recording device and would like to add an overlay to it .
I have images being rendered on the fly and I would like to use them as the overlay . 
How can I take a set of Images as they are being rendered and use it as an overlay to a video stream ?

user6735: Couldn't wait! Figured it out:
I saved an image to the file out.png at a fixed frame rate from processing.
Created a fifo:
mkfifo fifo

Then in one terminal:
tail -f out.png  > fifo

Then in another terminal:
cat fifo | ffmpeg  -f image2pipe -r 1 -i pipe:0 spo.mp4

Making sure to close tail first allowing ffmpeg to write the last bit of the file.

6735: <p>I am using ffmpeg to capture a video recording device and would like to add an overlay to it .</p>

<p>I have images being rendered on the fly and I would like to use them as the overlay . </p>

<p>How can I take a set of Images as they are being rendered and use it as an overlay to a video stream ?</p>
 6735: <p><strong>Couldn't wait! Figured it out:</strong></p>

<p><em>I saved an image to the file <code>out.png</code> at a fixed frame rate from processing.</em></p>

<p>Created a fifo:</p>

<pre><code>mkfifo fifo
</code></pre>

<p>Then in one terminal:</p>

<pre><code>tail -f out.png  &gt; fifo
</code></pre>

<p>Then in another terminal:</p>

<pre><code>cat fifo | ffmpeg  -f image2pipe -r 1 -i pipe:0 spo.mp4
</code></pre>

<p>Making sure to close tail first allowing <code>ffmpeg</code> to write the last bit of the file.</p>
