Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Would like duration in milliseconds rather than rounded seconds. #12

Copy link
Copy link
@thomergil

Description

@thomergil
Issue body actions

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
Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.