From 00034c146a2d8c84d7fc388c64eb29916105b754 Mon Sep 17 00:00:00 2001 From: pukkandan Date: Sun, 11 Jul 2021 04:07:25 +0530 Subject: [embedthumbnail] Fix `_get_thumbnail_resolution` --- yt_dlp/postprocessor/embedthumbnail.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'yt_dlp/postprocessor/embedthumbnail.py') diff --git a/yt_dlp/postprocessor/embedthumbnail.py b/yt_dlp/postprocessor/embedthumbnail.py index 48d4b673d..7008f4d4d 100644 --- a/yt_dlp/postprocessor/embedthumbnail.py +++ b/yt_dlp/postprocessor/embedthumbnail.py @@ -51,7 +51,7 @@ class EmbedThumbnailPP(FFmpegPostProcessor): try: size_regex = r',\s*(?P\d+)x(?P\d+)\s*[,\[]' - size_result = self.run_ffmpeg(filename, filename, ['-hide_banner']) + size_result = self.run_ffmpeg(filename, None, ['-hide_banner'], expected_retcodes=(1,)) mobj = re.search(size_regex, size_result) if mobj is None: return guess() -- cgit v1.2.3