ffmpeg-python
ffmpeg-python copied to clipboard
ValueError: Expected at least 1 input stream(s); got 0 (FFMPEG)
program :
import subprocess import ffmpeg
def merge_files():
videofile = ffmpeg.input("C:\\Users\\amd\\Downloads\\ytd\\Two Minute Meditation_video.webm")
audiofile = ffmpeg.input("C:\\Users\\amd\\Downloads\\ytd\\Two Minute Meditation_audio.webm")
outputfile = ffmpeg.output("C:\\Users\\amd\\Downloads\\ytd\\Two Minute Meditation_complete.mp4")
codec = "copy"
subprocess.run(f"ffmpeg -i {videofile} -i {audiofile} -c {codec} {outputfile}")
merge_files()
not able to merge audio and video files
complete error:
Traceback (most recent call last):
File "C:/Users/amd/PycharmProjects/software_working/yt_downloader.py", line 14, in
Process finished with exit code 1
Hi, I'm currently having the same issue! I know it was a long time ago haha but did you ever find a solution for this?