by Guest » 23 Feb 2025, 07:57
Ich verwende yt_dlp mit Python, um ein Video von YouTube als nur Audio-MP3-Datei zu laden. Bis vor kurzem funktionierte dies einwandfrei, aber jetzt erhalte ich die folgende Fehlermeldung: < /p>
Code: Select all
ERROR: Postprocessing: audio conversion failed: Error opening output files: Encoder not found
Beide yt_dlp (Version 2025.02.19) und ffmpeg (Version 7.1) sind auf dem neuesten Stand. Ich arbeite an einem Windows 11 -System mit Python 3.12. />def ydl_download_video(entry, out_path= "O:\\MP3\\00 CHARTS\\NEU\\"):
url = entry.get('ylink').strip('\n')
artist = entry.get('artist')
title = entry.get('title')
ydl_opts = {
'format': 'bestaudio/best',
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '192',
}],
'cookiefile': 'all_cookies.txt',
'outtmpl': f'{out_path}{artist} - {title}.%(ext)s'
}
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
ydl.download(
)
< /code>
Dies ist die Ausgabe auf dem ... 87]Problem und kann möglicherweise eine Lösung vorschlagen? Leider habe ich noch keine Lösung für mein
Problem gefunden.
Ich verwende yt_dlp mit Python, um ein Video von YouTube als nur Audio-MP3-Datei zu laden. Bis vor kurzem funktionierte dies einwandfrei, aber jetzt erhalte ich die folgende Fehlermeldung: < /p>
[code]ERROR: Postprocessing: audio conversion failed: Error opening output files: Encoder not found
[/code]
Beide yt_dlp (Version 2025.02.19) und ffmpeg (Version 7.1) sind auf dem neuesten Stand. Ich arbeite an einem Windows 11 -System mit Python 3.12. />def ydl_download_video(entry, out_path= "O:\\MP3\\00 CHARTS\\NEU\\"):
url = entry.get('ylink').strip('\n')
artist = entry.get('artist')
title = entry.get('title')
ydl_opts = {
'format': 'bestaudio/best',
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '192',
}],
'cookiefile': 'all_cookies.txt',
'outtmpl': f'{out_path}{artist} - {title}.%(ext)s'
}
with yt_dlp.YoutubeDL(ydl_opts) as ydl:
ydl.download([url])
< /code>
Dies ist die Ausgabe auf dem Bildschirm, wenn die Funktion ausgeführt wird. < /p>
Trying to download Track...
[youtube] Extracting URL: [youtube]DlMEn5UU678[/youtube]
[youtube] DlMEn5UU678: Downloading webpage
[youtube] DlMEn5UU678: Downloading tv client config
[youtube] DlMEn5UU678: Downloading player 7795af42
[youtube] DlMEn5UU678: Downloading tv player API JSON
[info] DlMEn5UU678: Downloading 1 format(s): 251
[download] Destination: O:\MP3\00 CHARTS\NEU\Steff Da Campo & Robbie Mendez - Cry (Just A Little).webm
[download] 100% of 2.93MiB in 00:00:00 at 9.25MiB/s
[ExtractAudio] Destination: O:\MP3\00 CHARTS\NEU\Steff Da Campo & Robbie Mendez - Cry (Just A Little).mp3
ERROR: Postprocessing: audio conversion failed: Error opening output files: Encoder not found
ERROR: Postprocessing: audio conversion failed: Error opening output files: Encoder not found
< /code>
Der Track ist auch als .Webm -Datei im Ausgaberordner verfügbar, wird jedoch nicht mehr wie gewohnt in MP3 konvertiert. < /p>
Gibt es jemand Wer hat das gleiche [url=viewtopic.php?t=11587]Problem[/url] und kann möglicherweise eine Lösung vorschlagen? Leider habe ich noch keine Lösung für mein [url=viewtopic.php?t=11587]Problem[/url] gefunden.