Error merging audio and video ffmpeg-python

609 views Asked by At

So I'm trying to merge audio and video using ffmpeg-python but it keeps telling me one error

FileNotFoundError: [WinError 2] The system cannot find the file specified

Here's the code that im trying

def videoAudio():
    input_video = ffmpeg.input('./ONLYVIDEO.mp4')
    input_audio = ffmpeg.input('./ONLYAUDIO.webm')
    ffmpeg.concat(input_video, input_audio, v=1, a=1).output('./complete.mp4').run()

Any ideas of what's wrong?

1

There are 1 answers

0
angelord2k6 On BEST ANSWER

Enter here to download ffmpeg.exe, you have to have it where you're executing the script. Python ffmpeg won't accept path, why?

Look UP at the comments section of the question to see more information