projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50e989e
)
[ffmpeg] fix adding metadata when using m3u8_native(fixes #8350)
author
remitamine
<remitamine@gmail.com>
Thu, 28 Jan 2016 17:57:32 +0000
(18:57 +0100)
committer
remitamine
<remitamine@gmail.com>
Thu, 28 Jan 2016 17:57:32 +0000
(18:57 +0100)
youtube_dl/postprocessor/ffmpeg.py
patch
|
blob
|
history
diff --git
a/youtube_dl/postprocessor/ffmpeg.py
b/youtube_dl/postprocessor/ffmpeg.py
index daca5d81480337fb50a1fcb85fd69cd249475cf8..48f86e21c6fbb46eb202f6fff8192607f306ec03 100644
(file)
--- a/
youtube_dl/postprocessor/ffmpeg.py
+++ b/
youtube_dl/postprocessor/ffmpeg.py
@@
-391,6
+391,10
@@
class FFmpegMetadataPP(FFmpegPostProcessor):
for (name, value) in metadata.items():
options.extend(['-metadata', '%s=%s' % (name, value)])
+ # https://github.com/rg3/youtube-dl/issues/8350
+ if info['protocol'] == 'm3u8_native':
+ options.extend(['-bsf:a', 'aac_adtstoasc'])
+
self._downloader.to_screen('[ffmpeg] Adding metadata to \'%s\'' % filename)
self.run_ffmpeg(filename, temp_filename, options)
os.remove(encodeFilename(filename))