cta-wave / mezzanine

This repo contains scripts that will build annotated test content from specific source content, compatible with the WAVE device playback test suite.
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Create single ffmpeg command for all steps #2

Closed technogeek00 closed 4 years ago

technogeek00 commented 4 years ago

Based on the steps outlined in the README I've created a script (mezzanine.sh) that contains a singular ffmpeg command that performs the full transformation. This allows all manipulations to occur in memory and with only one decode and one encode operation on the video for efficiency.

The only thing I could not directly figure out was generating qr codes via a filter, instead I've computed the frame times up front and pipe the raw qrencode output into ffmpeg as another video stream. As the output is being read directly from the pipe by ffmpeg the entire transformation remains in memory.

The following command produces output equivalent to the current README (notable exception is qrcodes have the specified name instead of "123456"):

./mezzanine.sh -b boundaries.png -t Cousine-Regular.ttf -s 00:00:07.250 -d 30 -f 30 ToS-4k-1920.mov tos-30sec-final.mp4