Decoding, Rendering, and Encoding engines for PosterVideos.
- Decode the video background into frames using ffmpeg.
- Use stdout pipe to handle data stream.
- Obtain magic buffer (first 8bytes of the frame)
- Compare other buffers in the stream.
- If that matches the magic buffer then treat it as a new frame.
- Concat the frame and send it to Rendering Engine.
- Render frame.
- Pipe frames to Encoder.
- ffmpeg encodes the video for you.