We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I would like FFProbe to tell me the duration in milliseconds. I created a workaround as follows, but would like native support:
mp4_data = FFProbe(mp4_file) duration_s = mp4_data.__dict__['metadata']['Duration'] # convert to duration by pretending it's a time since 00:00:00.00 zero = datetime.datetime.strptime('00:00:00.00', '%H:%M:%S.%f') duration = datetime.datetime.strptime(duration_s, '%H:%M:%S.%f') - zero total_duration += duration.seconds * 1000 + duration.microseconds / 1000
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I would like FFProbe to tell me the duration in milliseconds. I created a workaround as follows, but would like native support:
The text was updated successfully, but these errors were encountered: