Skip to content

A feature-rich command-line audio/video downloader

Resolve audio/x-wav to "wav" extension, rather than "x-wav" (which ffmpeg does not recognize)

tfvlrueba39289d7945
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index d1eca3760a..c73f5e0ca4 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -4173,6 +4173,7 @@ def mimetype2ext(mt):
# Per RFC 3003, audio/mpeg can be .mp1, .mp2 or .mp3. Here use .mp3 as
# it's the most popular one
'audio/mpeg': 'mp3',
+ 'audio/x-wav': 'wav',
}.get(mt)
if ext is not None:
return ext