diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-12-09 15:17:16 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2022-12-09 15:23:59 +0530 |
commit | 710822166279059c2880bfa4ca7a5626cc1e7d98 (patch) | |
tree | 45c2c72aba0586681af5aa93520311022871eae1 /yt_dlp/utils.py | |
parent | 10dc85924a74ae69bcf3170c37b351036eacca58 (diff) | |
download | hypervideo-pre-710822166279059c2880bfa4ca7a5626cc1e7d98.tar.lz hypervideo-pre-710822166279059c2880bfa4ca7a5626cc1e7d98.tar.xz hypervideo-pre-710822166279059c2880bfa4ca7a5626cc1e7d98.zip |
Add `ac4` to known codecs
Note: ffmpeg does not currently support this format
Related #5738
Diffstat (limited to 'yt_dlp/utils.py')
-rw-r--r-- | yt_dlp/utils.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/yt_dlp/utils.py b/yt_dlp/utils.py index 36170e125..9697ba1c1 100644 --- a/yt_dlp/utils.py +++ b/yt_dlp/utils.py @@ -3572,7 +3572,7 @@ def parse_codecs(codecs_str): hdr = 'HDR10' elif parts[:2] == ['vp9', '2']: hdr = 'HDR10' - elif parts[0] in ('flac', 'mp4a', 'opus', 'vorbis', 'mp3', 'aac', + elif parts[0] in ('flac', 'mp4a', 'opus', 'vorbis', 'mp3', 'aac', 'ac-4', 'ac-3', 'ec-3', 'eac3', 'dtsc', 'dtse', 'dtsh', 'dtsl'): acodec = acodec or full_codec elif parts[0] in ('stpp', 'wvtt'): @@ -3605,7 +3605,7 @@ def get_compatible_ext(*, vcodecs, acodecs, vexts, aexts, preferences=None): # TODO: All codecs supported by parse_codecs isn't handled here COMPATIBLE_CODECS = { 'mp4': { - 'av1', 'hevc', 'avc1', 'mp4a', # fourcc (m3u8, mpd) + 'av1', 'hevc', 'avc1', 'mp4a', 'ac-4', # fourcc (m3u8, mpd) 'h264', 'aacl', 'ec-3', # Set in ISM }, 'webm': { @@ -6048,7 +6048,7 @@ class FormatSorter: 'vcodec': {'type': 'ordered', 'regex': True, 'order': ['av0?1', 'vp0?9.2', 'vp0?9', '[hx]265|he?vc?', '[hx]264|avc', 'vp0?8', 'mp4v|h263', 'theora', '', None, 'none']}, 'acodec': {'type': 'ordered', 'regex': True, - 'order': ['[af]lac', 'wav|aiff', 'opus', 'vorbis|ogg', 'aac', 'mp?4a?', 'mp3', 'e-?a?c-?3', 'ac-?3', 'dts', '', None, 'none']}, + 'order': ['[af]lac', 'wav|aiff', 'opus', 'vorbis|ogg', 'aac', 'mp?4a?', 'mp3', 'ac-?4', 'e-?a?c-?3', 'ac-?3', 'dts', '', None, 'none']}, 'hdr': {'type': 'ordered', 'regex': True, 'field': 'dynamic_range', 'order': ['dv', '(hdr)?12', r'(hdr)?10\+', '(hdr)?10', 'hlg', '', 'sdr', None]}, 'proto': {'type': 'ordered', 'regex': True, 'field': 'protocol', |