0
youtube-dl.utils.DownloadError: ERROR: audio conversion failed: file: mp3 invalid argument
Python的 - YouTube的-dl.utils.DownloadError:ERROR:音頻轉換失敗:文件:MP3無效參數
與下面的參數,在Windows 7上的Python 3.6上運行的YouTube-DL,FFmpeg的,並出現上述錯誤libmp3lame已安裝。
ydl_opts = {
"format": "bestaudio/best",
"extractaudio": True,
"outtmpl": fetch_name + "%(ext)s",
"noplaylist": True,
"nocheckcertificate": True,
"postprocessors": [{
"key": "FFmpegExtractAudio",
"preferredcodec": "mp3",
"preferredquality": "192",
}],
"progress_hooks": [hook]
}
fetch_name例如是C:\Path\File
。 [hook]
只顯示下載消息。 我在這裏和互聯網上搜索,但無法找到此錯誤。
[mcve]將有助於診斷。 – Cecilia