2017-03-14 57 views
0

youtube-dl.utils.DownloadError: ERROR: audio conversion failed: file: mp3 invalid argumentPython的 - 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]只顯示下載消息。 我在這裏和互聯網上搜索,但無法找到此錯誤。

+1

[mcve]將有助於診斷。 – Cecilia

回答

-1

我追溯了代碼中的參數,發現這個file,然後又追溯到postprocessors的列表。

正如你所看到的後處理器被命名爲FFmpegExtractAudioPP正如你已經使用FFmpegExtractAudio。可能是這個地方你錯了。