From 4a3175fc4cff22343bd23c6cb7d40dbd7d0ccbf5 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sun, 27 Mar 2022 09:27:38 +0530 Subject: [PATCH] [VideoConvertor] Ensure all streams are copied Closes #3200 --- yt_dlp/postprocessor/ffmpeg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/yt_dlp/postprocessor/ffmpeg.py b/yt_dlp/postprocessor/ffmpeg.py index ec618b040..a5ed6d184 100644 --- a/yt_dlp/postprocessor/ffmpeg.py +++ b/yt_dlp/postprocessor/ffmpeg.py @@ -553,9 +553,9 @@ def _target_ext(self, source_ext): @staticmethod def _options(target_ext): + yield from FFmpegPostProcessor.stream_copy_opts(False) if target_ext == 'avi': - return ['-c:v', 'libxvid', '-vtag', 'XVID'] - return [] + yield from ('-c:v', 'libxvid', '-vtag', 'XVID') @PostProcessor._restrict_to(images=False) def run(self, info):