Skip to content

Instantly share code, notes, and snippets.

@tatesuke
Created April 10, 2019 02:41
Show Gist options
  • Save tatesuke/97639af47ef42d17b4bf73a03f4cfe63 to your computer and use it in GitHub Desktop.
Save tatesuke/97639af47ef42d17b4bf73a03f4cfe63 to your computer and use it in GitHub Desktop.
動画と音声をマージ
#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