Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-11-08T10:51:37.150Z
Answers.Text: Wow, thats a really nice "hack".
Answers.UserDisplayName: timonsku
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2014-11-07T07:00:30.890Z
Answers.LastActivityDate: 2017-02-05T15:19:54.740Z
Answers.LastEditDate: 2017-02-05T15:19:54.740Z
Answers.UserDisplayName: Clover Fox
Body: <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>
  
Tags: <ffmpeg>
Title: ffmpeg input from images stream out video
UserDisplayName: Clover Fox
ThreadText: # 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".  
  
  ---
  
  