i have tried
import ffmpeg
video = ffmpeg.input('video.mp4')
audio = ffmpeg.input('audio.mp3')
ffmpeg.merge_outputs(video, audio).run()
and it returns
TypeError: Expected incoming stream(s) to be of one of the following types: ffmpeg.nodes.OutputStream; got <class 'ffmpeg.nodes.FilterableStream'>
and i have tried
import ffmpeg
video = ffmpeg.input('video.mp4')
audio = ffmpeg.input('audio.mp3')
ffmpeg.concat(video, audio, v=1, a=1).output('finished_video.mp4').run()
and it returns
FileNotFoundError: [WinError 2] The system cannot find the file specified
also i did try
import subprocess
subprocess.run("ffmpeg -i video.mp4 -i audio.mp3 -c copy output.mp4")
and it returns
'ffmpeg' is not recognized as an internal or external command
how can i do it right ?