067b4e0c6b
Based on work done by Tiago Jacobs and Guilherme Pereira Leme to investigate the behaviour of ffmpeg on videos with changing input size. Rather than having the EDL code set fixed sizes for the scale and pad filters, instead use ffmpeg's built in features to calculate the scale and pad automatically, dynamically updating if the input video size changes. In the version of ffmpeg in Ubuntu 20.04, the 'movie' input filter is buggy and doesn't correctly handle the video size changing. Instead of using the movie filter, use separate inputs to the ffmpeg command (the design used here is based on the code in audio.rb). The filter chain is now stored into a file (using -filter_complex_script) to reduce problems with the command line getting too long. We are using a version of ffmpeg that's new enough to have the tpad filter now too, so use it to extend the video if needed instead of an extra concat. |
||
---|---|---|
.. | ||
edl | ||
generators | ||
workers | ||
edl.rb | ||
events_archiver.rb | ||
workers.rb |