Skip to content

A feature-rich command-line audio/video downloader

[utils] Add more codecs to codec2ext

Yen Chi Hsuan6d210f20905a
diff --git a/youtube_dl/utils.py b/youtube_dl/utils.py
index dc0bf5627a..0e04e91a42 100644
--- a/youtube_dl/utils.py
+++ b/youtube_dl/utils.py
@@ -1900,6 +1900,9 @@ def codec2ext(codec):
# is not a good fallback for file extensions
return {
'avc1': 'mp4',
+ 'avc2': 'mp4',
+ 'avc3': 'mp4',
+ 'avc4': 'mp4',
'mp4a': 'm4a',
'vorbis': 'webm',
'vp9': 'webm',