From ac0a3df9a780b517b5ceca79c32b3c5d87ca111f Mon Sep 17 00:00:00 2001 From: j Date: Mon, 12 Jan 2026 19:06:52 +0000 Subject: [PATCH] only use oxframe for webm --- pandora/archive/extract.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora/archive/extract.py b/pandora/archive/extract.py index c95e39b8..2b9209a6 100644 --- a/pandora/archive/extract.py +++ b/pandora/archive/extract.py @@ -405,11 +405,11 @@ def frame(video, frame, position, height=128, redo=False, info=None): folder = os.path.dirname(frame) if redo or not exists(frame): ox.makedirs(folder) - if video.endswith('.mp4'): - cmd = ffmpeg_frame_cmd(video, frame, position, height) - else: + if video.endswith('.webm'): cmd = ['oxframe', '-i', video, '-o', frame, '-p', str(position), '-y', str(height)] + else: + cmd = ffmpeg_frame_cmd(video, frame, position, height) run_command(cmd) def ffmpeg_frame_cmd(video, frame, position, height=128):