How to convert 16UC4 cv::Mat to AVFrame

asked 2020-03-03 22:23:43 -0600

I have one cv::Mat with 16UC4 data format. I want to save this matrix data as frame and save to an AVI file

edit retag flag offensive close merge delete

Comments

You want to save one image in a video file?Really Is it an RGBA image?

LBerger gravatar imageLBerger ( 2020-03-04 02:40:29 -0600 )edit

Not one frame it is multiple frames, but each frame will be cv::Mat of 16UC4. Its is RGBA.

Sibi K S gravatar imageSibi K S ( 2020-03-04 14:08:13 -0600 )edit