Pydub Fehler [WinError 2]
Verfasst: Freitag 1. März 2019, 20:25
Hallo zusammen
Ich möchte gerne in python zwei mp3 dateien zu einer zusammenfügen.
Allerdings bekomme ich diese Fehlermeldung:
Warning (from warnings module):
File "C:\Users\Tobias_Arbeit\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pydub\utils.py", line 165
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
Warning (from warnings module):
File "C:\Users\Tobias_Arbeit\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pydub\utils.py", line 193
warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)
RuntimeWarning: Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
Traceback (most recent call last):
File "D:\Tobias\Python\test.py", line 10, in <module>
sound1 = AudioSegment.from_file(file1)
File "C:\Users\Tobias_Arbeit\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pydub\audio_segment.py", line 665, in from_file
info = mediainfo_json(orig_file)
File "C:\Users\Tobias_Arbeit\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pydub\utils.py", line 263, in mediainfo_json
res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
File "C:\Users\Tobias_Arbeit\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 756, in __init__
restore_signals, start_new_session)
File "C:\Users\Tobias_Arbeit\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 1155, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden
Ich möchte gerne in python zwei mp3 dateien zu einer zusammenfügen.
Code: Alles auswählen
from pydub import AudioSegment
file1 = "Audio1.mp3"
file2 = "Audio2.mp3"
sound1 = AudioSegment.from_file(file1)
sound2 = AudioSegment.from_file(file2)
combined = sound1.overlay(sound2)
combined.export("Audio3.mp3", format='mp3')
Warning (from warnings module):
File "C:\Users\Tobias_Arbeit\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pydub\utils.py", line 165
warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)
RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
Warning (from warnings module):
File "C:\Users\Tobias_Arbeit\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pydub\utils.py", line 193
warn("Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work", RuntimeWarning)
RuntimeWarning: Couldn't find ffprobe or avprobe - defaulting to ffprobe, but may not work
Traceback (most recent call last):
File "D:\Tobias\Python\test.py", line 10, in <module>
sound1 = AudioSegment.from_file(file1)
File "C:\Users\Tobias_Arbeit\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pydub\audio_segment.py", line 665, in from_file
info = mediainfo_json(orig_file)
File "C:\Users\Tobias_Arbeit\AppData\Local\Programs\Python\Python37-32\lib\site-packages\pydub\utils.py", line 263, in mediainfo_json
res = Popen(command, stdin=stdin_parameter, stdout=PIPE, stderr=PIPE)
File "C:\Users\Tobias_Arbeit\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 756, in __init__
restore_signals, start_new_session)
File "C:\Users\Tobias_Arbeit\AppData\Local\Programs\Python\Python37-32\lib\subprocess.py", line 1155, in _execute_child
startupinfo)
FileNotFoundError: [WinError 2] Das System kann die angegebene Datei nicht finden