From 09b665a7123dab944e5409f322cb69996bcda50d Mon Sep 17 00:00:00 2001 From: WORD559 Date: Wed, 4 Jul 2018 15:43:43 +0100 Subject: [PATCH] Works when audio is shorter than video --- PPM.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PPM.py b/PPM.py index 9bfb3f5..b278be7 100755 --- a/PPM.py +++ b/PPM.py @@ -851,6 +851,11 @@ if __name__ == '__main__': export_command.pop(7) export_command.pop(8) subprocess.call(export_command) + + # Now I'll need to insert sound effects + # I can probably do this with ffmpeg by extending the audio with leading silence and using ffmpeg -i video.mkv -i gallop.ogg -filter_complex "[0:0][1:0] amix=inputs=2:duration=longest" main.ogg + # or at least something similar + # it'll need some experimentation. I'll have to do it another day. else: print "Error!\nThere's no such mode."