Skip to content

FFMPEG does not necessarily provide video_info["duration"] for video stream files #2

@DaveDuck321

Description

@DaveDuck321

Example traceback for an mkv file generated using OBS "Record to File":

...
File "hackcambridge2022/src/video_processor.py", line 30, in __init__
  if float(self.video_info["duration"]) > 120:
KeyError: 'duration'

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