Works when audio is shorter than video

This commit is contained in:
WORD559 committed 2018-07-04 15:43:43 +01:00
1 parent 17085f316b
commit 09b665a712
1 file changed
+5
+5
View File
@@ -852,5 +852,10 @@ if __name__ == '__main__':
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."