Decoding, Rendering, and Encoding engines for PosterVideos.

  1. Decode the video background into frames using ffmpeg.
  2. Use stdout pipe to handle data stream.
  3. Obtain magic buffer (first 8bytes of the frame)
  4. Compare other buffers in the stream.
  5. If that matches the magic buffer then treat it as a new frame.
  6. Concat the frame and send it to Rendering Engine.
  7. Render frame.
  8. Pipe frames to Encoder.
  9. ffmpeg encodes the video for you.