Wenn du dir nicht sicher bist, in welchem der anderen Foren du die Frage stellen sollst, dann bist du hier im Forum für allgemeine Fragen sicher richtig.
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
Die Fehlermeldung sag doch recht deutlich, was schief geht: pydub braucht ffmpeg oder avconf. Und findet die nicht. Du musst das also installieren. Steht bestimmt in der pydub-Doku beschrieben. Und siehe da:
@toper3902: Du musst eines der beiden Kommandozeilenprogramme ffmpeg.exe oder avconv.exe installieren. Das hat nichts mit Python oder Python-Modulen zu tun. Das Python-Modul `ffmpeg` ist dazu da das Programm ffmpeg von Python aus anzusprechen. Das setzt aber voraus, dass das auch installiert und über %PATH% erreichbar ist.
„A life is like a garden. Perfect moments can be had, but not preserved, except in memory. LLAP” — Leonard Nimoy's last tweet.
Und dann tu die doch wohin wo es dir gefaellt. Darin solltest du irgendwo ffmpeg.exe finden, und den Pfad dahin musst du in deine Umegbungsvariable PATH eintragen, wie schon geschrieben.
Hast du dein Windows neu gestartet? Wenn nicht, mach das mal. Wenn das immer noch nichts hilft, dann poste bitte die Ausgabe von "set" aus der CMD.EXE.