projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
4e0cff2
)
Merge pull request #8354 from remitamine/m3u8_metadata
author
remitamine
<remitamine@gmail.com>
Tue, 2 Feb 2016 18:13:58 +0000
(19:13 +0100)
committer
remitamine
<remitamine@gmail.com>
Tue, 2 Feb 2016 18:13:58 +0000
(19:13 +0100)
[ffmpeg] fix adding metadata when using m3u8_native(fixes #8350)
youtube_dl/postprocessor/ffmpeg.py
patch
|
blob
|
history
diff --git
a/youtube_dl/postprocessor/ffmpeg.py
b/youtube_dl/postprocessor/ffmpeg.py
index 16a64802a5b4208f4407b58d146e77cf5073378f..d3d9d4f1da13be926b05714f04f801ce0f664613 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))