projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c360e64
)
[utils] Recognize more audio codecs (#13081)
author
Sergey M․
<dstftw@gmail.com>
Sun, 14 May 2017 05:33:33 +0000
(12:33 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Sun, 14 May 2017 05:33:33 +0000
(12:33 +0700)
youtube_dl/utils.py
patch
|
blob
|
history
diff --git
a/youtube_dl/utils.py
b/youtube_dl/utils.py
index aa1900436f02b0f8c9845df0cab2ec35fcaac4ef..4293a77f569879964ce9019c44f8f85bfcaad982 100644
(file)
--- a/
youtube_dl/utils.py
+++ b/
youtube_dl/utils.py
@@
-2360,11
+2360,11
@@
def parse_codecs(codecs_str):
if codec in ('avc1', 'avc2', 'avc3', 'avc4', 'vp9', 'vp8', 'hev1', 'hev2', 'h263', 'h264', 'mp4v'):
if not vcodec:
vcodec = full_codec
if codec in ('avc1', 'avc2', 'avc3', 'avc4', 'vp9', 'vp8', 'hev1', 'hev2', 'h263', 'h264', 'mp4v'):
if not vcodec:
vcodec = full_codec
- elif codec in ('mp4a', 'opus', 'vorbis', 'mp3', 'aac', 'ac-3'):
+ elif codec in ('mp4a', 'opus', 'vorbis', 'mp3', 'aac', 'ac-3'
, 'ec-3', 'eac3', 'dtsc', 'dtse', 'dtsh', 'dtsl'
):
if not acodec:
acodec = full_codec
else:
if not acodec:
acodec = full_codec
else:
- write_string('WARNING: Unknown codec %s' % full_codec, sys.stderr)
+ write_string('WARNING: Unknown codec %s
\n
' % full_codec, sys.stderr)
if not vcodec and not acodec:
if len(splited_codecs) == 2:
return {
if not vcodec and not acodec:
if len(splited_codecs) == 2:
return {