<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>

CC BY-SA 3.0
2014-11-08T10:51:37.150Z
Wow, thats a really nice "hack".
timonsku
CC BY-SA 3.0
2014-11-07T07:00:30.890Z
2017-02-05T15:19:54.740Z
2017-02-05T15:19:54.740Z
Clover Fox
<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>

<ffmpeg>
ffmpeg input from images stream out video
Clover Fox
# ffmpeg input from images stream out video

(Asked by: username_0 on 2014-11-07)

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 ?

**Tags:** ffmpeg


---

## 1 answers

### Answer by username_0 on 2014-11-07. Score: 5

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.

> **Comments:**
> **username_1**: Wow, thats a really nice "hack".  

---

