Wednesday, September 19, 2018

Add sound to video using ffmpeg

import os
os.system("ffmpeg -i video.mp4 -i a.mp3 -codec copy -shortest output.avi")

here a.mp3 audio is added to video.mp4 and output file is output.avi

No comments:

Post a Comment