From 6ec51d91cb8bf1f4ee4d47c21466a3f18e054f48 Mon Sep 17 00:00:00 2001 From: Andrew Udvare Date: Sun, 27 Jan 2019 22:20:48 -0500 Subject: [PATCH 1/3] [postprocessor/ffmpeg] Do not copy Apple TV chapter tracks Related issue: https://trac.ffmpeg.org/ticket/6016 --- youtube_dl/postprocessor/ffmpeg.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index b952b0970..f9d9b16e0 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -407,6 +407,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 chapters track, bin_data + '-map', '-0:d', ] if information['ext'] == 'mp4': opts += ['-c:s', 'mov_text'] From 7d21fa2e839f4943ad4092458146ff623ed5709c Mon Sep 17 00:00:00 2001 From: Sergey M Date: Mon, 28 Jan 2019 22:55:15 +0700 Subject: [PATCH 2/3] Update ffmpeg.py --- youtube_dl/postprocessor/ffmpeg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index f9d9b16e0..250d7aa27 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -407,7 +407,7 @@ 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 chapters track, bin_data + # Don't copy Apple TV chapters track, bin_data (see #19042, #19024) '-map', '-0:d', ] if information['ext'] == 'mp4': From dadd32fa1f5b7cf9bd0593759ff3555ff63e5b02 Mon Sep 17 00:00:00 2001 From: Sergey M Date: Mon, 28 Jan 2019 22:56:04 +0700 Subject: [PATCH 3/3] Update ffmpeg.py --- youtube_dl/postprocessor/ffmpeg.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/youtube_dl/postprocessor/ffmpeg.py b/youtube_dl/postprocessor/ffmpeg.py index 250d7aa27..fff2021ff 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -407,7 +407,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 chapters track, bin_data (see #19042, #19024) + # Don't copy Apple TV chapters track, bin_data (see #19042, #19024, + # https://trac.ffmpeg.org/ticket/6016) '-map', '-0:d', ] if information['ext'] == 'mp4':