[ffmpeg] convert the video even if in the same downloaded format if postprocessor args are provided

This commit is contained in:
Pierre Mdawar 2019-01-03 14:57:54 +02:00
parent d7c3af7a72
commit 7e73a3e5c1

View File

@ -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 = []