Browse Source

[ffmpeg] fix adding metadata when using --hls-prefer-native(#8350)

master
remitamine 8 years ago
parent
commit
6fba62c87a
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/postprocessor/ffmpeg.py

2
youtube_dl/postprocessor/ffmpeg.py

@ -392,7 +392,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
options.extend(['-metadata', '%s=%s' % (name, value)]) options.extend(['-metadata', '%s=%s' % (name, value)])
# https://github.com/rg3/youtube-dl/issues/8350 # https://github.com/rg3/youtube-dl/issues/8350
if info['protocol'] == 'm3u8_native':
if info['protocol'] == 'm3u8_native' or self._downloader.params.get('hls_prefer_native', False):
options.extend(['-bsf:a', 'aac_adtstoasc']) options.extend(['-bsf:a', 'aac_adtstoasc'])
self._downloader.to_screen('[ffmpeg] Adding metadata to \'%s\'' % filename) self._downloader.to_screen('[ffmpeg] Adding metadata to \'%s\'' % filename)

Loading…
Cancel
Save