Browse Source

[ffmpeg] fix adding metadata when using m3u8_native(fixes #8350)

master
remitamine 8 years ago
parent
commit
cf57433bbd
1 changed files with 4 additions and 0 deletions
  1. 4
      youtube_dl/postprocessor/ffmpeg.py

4
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))

Loading…
Cancel
Save