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"):
Based on the steps outlined in the README I've created a script (
mezzanine.sh
) that contains a singularffmpeg
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"
):