Created
April 10, 2019 02:41
-
-
Save tatesuke/97639af47ef42d17b4bf73a03f4cfe63 to your computer and use it in GitHub Desktop.
動画と音声をマージ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#pip install ffmpeg-python | |
import ffmpeg | |
in_file = ffmpeg.input('output.avi') | |
in_wave = ffmpeg.input('1554859795.wav') | |
( | |
ffmpeg | |
.concat( | |
in_file, | |
in_wave, | |
v = 1, | |
a = 1 | |
) | |
.output('out.mp4') | |
.run() | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment