youtube-dl.utils.DownloadError: ERROR: audio conversion failed: file: mp3 invalid argument
The above error appears with following parameters, running youtube-dl on Python 3.6 on Windows 7, FFmpeg and libmp3lame installed.
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 is for example C:\Path\File
. [hook]
just displays download messages.
I've searched here and on internet but can't find this error.