Skip to content

Ros bag creation from mp4: read framerate using cv2 to automate sampling strategy #426

@cameron-a-johnson

Description

@cameron-a-johnson

Would it be desirable to default to an "auto" method that attempts to read the framerate and decide how to sample accordingly?

import cv2
cam = cv2.VideoCapture('video2.avi')
fps = cam.get(cv2.CAP_PROP_FPS)

Since we have 30Hz and 15Hz videos, and always want to sample at 15Hz... this might childproof the process a bit.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions