From 892f86af2b360f9f090282966c7066179d44e279 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20GUICHARD?= Date: Fri, 30 Jan 2026 19:20:43 +0100 Subject: [PATCH] fix: support more than two numbers for hours and milliseconds part in duration and status --- src/pffmpeg/_runner.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pffmpeg/_runner.py b/src/pffmpeg/_runner.py index 9a318ac..0799996 100644 --- a/src/pffmpeg/_runner.py +++ b/src/pffmpeg/_runner.py @@ -20,8 +20,8 @@ from pffmpeg._args import parse_args from pffmpeg._utils import KEYBOARD_INTERRUPT_RETURN_CODE, StringBuffer, parse_duration -FFMPEG_DURATION_REGEX = re.compile(r"Duration: (\d{2}):(\d{2}):(\d{2})\.(\d{2})") -FFMPEG_STATUS_REGEX = re.compile(r"frame=.*time=(\d{2}):(\d{2}):(\d{2})\.(\d{2}).*") +FFMPEG_DURATION_REGEX = re.compile(r"Duration: (\d{2,}):(\d{2}):(\d{2})\.(\d{2,})") +FFMPEG_STATUS_REGEX = re.compile(r"frame=.*time=(\d{2,}):(\d{2}):(\d{2})\.(\d{2,}).*") FFMPEG_CONFIRM_TEXT = "[y/N] "