1
0
Fork 0
mirror of https://gitlab.com/dstftw/youtube-dl.git synced 2020-11-16 09:42:26 +00:00

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

This commit is contained in:
remitamine 2016-02-02 22:14:23 +01:00
parent 1df4141196
commit 6fba62c87a

View file

@ -392,7 +392,7 @@ class FFmpegMetadataPP(FFmpegPostProcessor):
options.extend(['-metadata', '%s=%s' % (name, value)])
# 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'])
self._downloader.to_screen('[ffmpeg] Adding metadata to \'%s\'' % filename)