diff options
author | remitamine <remitamine@gmail.com> | 2016-02-02 19:13:58 +0100 |
---|---|---|
committer | remitamine <remitamine@gmail.com> | 2016-02-02 19:13:58 +0100 |
commit | fae45ede082e50a4935e014b47cbfde925c0f8ed (patch) | |
tree | 677d8b62de28d9093cdcc63aad93d3eea01f969b /youtube_dl | |
parent | 4e0cff2a50f4c297fc25dae01c460596d8f5badb (diff) | |
parent | cf57433bbd190143694b44ac4cd5f56e6eb625ee (diff) |
Merge pull request #8354 from remitamine/m3u8_metadata
[ffmpeg] fix adding metadata when using m3u8_native(fixes #8350)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/postprocessor/ffmpeg.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index 16a64802a..d3d9d4f1d 100644 --- 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)) |