简体   繁体   中英

Error merging audio and video ffmpeg-python

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?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM