How to encode video frames, which are generated by OpenCV, on Jetson TX2

Dear all,

I’m using OpenCV to capture video from a source(can be a live cam or pre-recorded video).
After I process the video, I have 4 different output frame correspond to each input frame.
I need to encode these frames simultaneously or sequentially (until next frame arrives 25fps) with different encoding settings. For example, different GOP rates, different resolution etc. So I need an encoder & decoder pair which has support for “frame by frame” video encoding & decoding, hardware accelerator. Also, It can be used with C++.

Do you have any suggestion?


OpenCV is not what we maintain, so if you want to have better performance, please try our mmapi sample.