Skip to content
This repository was archived by the owner on Sep 9, 2023. It is now read-only.

Conversation

@snahor
Copy link

@snahor snahor commented Oct 21, 2011

It's using 00:00:00.00 format.

@Cruel
Copy link

Cruel commented Apr 11, 2012

Your fix seems to work, but for compatibility, perhaps it would be better to have this:

try:
    progress_callback( float(progress_match.group(1)) * 1000, duration )
except ValueError:
    # Your code

ValueError was the one thrown for me when it tried to typecast to float, so that way it still works on older ffmpeg too (which I personally need).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants