From 7e73a3e5c18e24d5c27c851cc69cf961a1690ad4 Mon Sep 17 00:00:00 2001 From: Pierre Mdawar Date: Thu, 3 Jan 2019 14:57:54 +0200 Subject: [PATCH] [ffmpeg] convert the video even if in the same downloaded format if postprocessor args are provided --- 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 757b496a1..8acb2872a 100644 --- a/youtube_dl/postprocessor/ffmpeg.py +++ b/youtube_dl/postprocessor/ffmpeg.py @@ -325,7 +325,8 @@ class FFmpegVideoConvertorPP(FFmpegPostProcessor): def run(self, information): path = information['filepath'] - if information['ext'] == self._preferedformat: + # if the ext is the same and there are no additional postprocessor args + if information['ext'] == self._preferedformat and not self._configuration_args(): self._downloader.to_screen('[ffmpeg] Not converting video file %s - already is in target format %s' % (path, self._preferedformat)) return [], information options = []