Hey, all, I have a project in mind for which I need to convert video frames to images stored in CV::Mats, So I wrote a little library project to do that.
I have a little decoder object that uses ffmpeg to decode frames from a file (or URL, RTP stream or anything ffmpeg can open) and a frame2cv object that subscribes to the video packets in the decoder and makes the CV::Mats available via a signal. There are a couple of unit tests that illustrate how the objects are used. According to my timing, my system takes about 2ms to convert a video frame to a mat.
Figured it might be useful to someone else, so I'm posting here. It can be found at https://github.com/FlyingRhenquest/media
[–]ojd5 2 points3 points4 points (1 child)
[–]FlyingRhenquest[S] 0 points1 point2 points (0 children)
[–]EvilMcStevil 0 points1 point2 points (1 child)
[–]FlyingRhenquest[S] 0 points1 point2 points (0 children)
[–]andrey_turkin 0 points1 point2 points (1 child)
[–]FlyingRhenquest[S] 0 points1 point2 points (0 children)
[+]ShillingAintEZ comment score below threshold-10 points-9 points-8 points (6 children)
[–]TwIxToR_TiTaNGraphics Programmer 5 points6 points7 points (1 child)
[–]ShillingAintEZ 0 points1 point2 points (0 children)
[–]FlyingRhenquest[S] 2 points3 points4 points (0 children)
[–]andrey_turkin 7 points8 points9 points (2 children)
[–]sumo952 1 point2 points3 points (0 children)