From 3d90b76f370e5b91c41ad3df9d9277ef938b4a30 Mon Sep 17 00:00:00 2001 From: Andrew Udvare Date: Tue, 13 Mar 2018 02:47:41 -0400 Subject: [PATCH] Fix ffmpeg error with bin_data streams Example YouTube ID: KaAdS8Oso9U Also disable "Last message repeated" messages which cause non-zero exit status --- youtube_dl/postprocessor/ffmpeg.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index 3ea1afcf3..ac307b115 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -190,6 +190,7 @@ class FFmpegPostProcessor(PostProcessor): encodeFilename(self._ffmpeg_filename_argument(path), True) ]) cmd = ([encodeFilename(self.executable, True), encodeArgument('-y')] + + ['-loglevel', 'repeat+info'] + files_cmd + [encodeArgument(o) for o in opts] + [encodeFilename(self._ffmpeg_filename_argument(out_path), True)]) @@ -379,6 +380,8 @@ class FFmpegEmbedSubtitlePP(FFmpegPostProcessor): # Don't copy the existing subtitles, we may be running the # postprocessor a second time '-map', '-0:s', + # Don't copy Apple TV subtitles format, bin_data + '-map', '-0:d', ] if information['ext'] == 'mp4': opts += ['-c:s', 'mov_text']