Skip to content

Directly rendering a given VideoFame? #342

@marcchristie35

Description

@marcchristie35

I am working on a sports video analysis tool with Qt. Decoded frames are stored in a FIFO FrameBus waiting to be processed. My approach currently consists in converting the mdk::VideoFrames to cv::Mat / QImage and pushing them on the FrameBus. Ideally, I'd like to keep the mdk::VideoFrame on the frameBus for some amount of time, so it can then be rendered later, typically through a render(mdk::VideoFrame &) method to keep the benefits of an efficient (in my case, OpenGL) rendering.

I believe the memory of a given VideoFrame is quickly invalid after the frame has been processed and rendered, so it would require a deep copy of the VideoFrame.

Therefore, a method to get a copy of the current frame, together with a method to render it later would be nice (unless there's a simple workaround). It could also be useful when creating a simple caching system to very quickly scrub through a sequence of images with the mouse/keyboard (without converting all of them to cv::Mat or QImage).

And, by the way, great work on this mdk-sdk :)

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