[FFmpeg-user] How to determine progression

Tom Evans tevans.uk at googlemail.com
Tue May 21 18:08:22 CEST 2013


On Tue, May 21, 2013 at 5:07 PM, Tom Evans <tevans.uk at googlemail.com> wrote:
> Having done precisely this, there are some helpful hints I can suggest:
>

I meant to include the regular expressions! Quoted to avoid getting
wrapped, apologies for the long lines

Cheers

Tom

> DURATION_RE = re.compile(r'Duration: (?P<hours>\d+):(?P<mins>\d+):(?P<secs>\d+)\.(?P<msecs>\d+),')
> FRAME_RE = re.compile(r'frame=\s*(?P<frames>\d+)\s+fps=\s*(?P<fps>\d+)\s+q=.*\s+size=.*\s+time=\s*(?P<hours>\d+):(?P<mins>\d+):(?P<secs>\d+)\.(?P<msecs>\d+)')


More information about the ffmpeg-user mailing list