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
@@ -851,6 +851,11 @@ if __name__ == '__main__':
export_command.pop(7) export_command.pop(7)
export_command.pop(8) export_command.pop(8)
subprocess.call(export_command) 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: else:
print "Error!\nThere's no such mode." print "Error!\nThere's no such mode."