mirror of
https://github.com/RekuNote/Hatenatools3.git
synced 2026-10-30 00:09:13 +00:00
Works when audio is shorter than video
This commit is contained in:
1 parent
17085f316b
commit
09b665a712
1 file changed
+5
@@ -852,5 +852,10 @@ if __name__ == '__main__':
|
|||||||
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."
|
||||||
Reference in new issue
Block a user
