Traceback (most recent call last):
File "C:/Users/amd/PycharmProjects/software_working/yt_downloader.py", line 14, in
merge_files()
File "C:/Users/amd/PycharmProjects/software_working/yt_downloader.py", line 9, in merge_files
outputfile = ffmpeg.output("C:\Users\amd\Downloads\ytd\Two Minute Meditation_complete.mp4")
File "C:\Python 37\lib\site-packages\ffmpeg_ffmpeg.py", line 94, in output
return OutputNode(streams, output.name, kwargs=kwargs).stream()
File "C:\Python 37\lib\site-packages\ffmpeg\nodes.py", line 314, in init
kwargs=kwargs,
File "C:\Python 37\lib\site-packages\ffmpeg\nodes.py", line 201, in init
self.__check_input_len(stream_map, min_inputs, max_inputs)
File "C:\Python 37\lib\site-packages\ffmpeg\nodes.py", line 158, in __check_input_len
min_inputs, len(stream_map)
ValueError: Expected at least 1 input stream(s); got 0
program :
import subprocess import ffmpeg
def merge_files():
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
merge_files()
File "C:/Users/amd/PycharmProjects/software_working/yt_downloader.py", line 9, in merge_files
outputfile = ffmpeg.output("C:\Users\amd\Downloads\ytd\Two Minute Meditation_complete.mp4")
File "C:\Python 37\lib\site-packages\ffmpeg_ffmpeg.py", line 94, in output
return OutputNode(streams, output.name, kwargs=kwargs).stream()
File "C:\Python 37\lib\site-packages\ffmpeg\nodes.py", line 314, in init
kwargs=kwargs,
File "C:\Python 37\lib\site-packages\ffmpeg\nodes.py", line 201, in init
self.__check_input_len(stream_map, min_inputs, max_inputs)
File "C:\Python 37\lib\site-packages\ffmpeg\nodes.py", line 158, in __check_input_len
min_inputs, len(stream_map)
ValueError: Expected at least 1 input stream(s); got 0
Process finished with exit code 1