AVFrame manipulation by opencv

FFMPEG is a peerless fantastic tool for video processing. Sometimes, we need to process the frames in practices like Image Processing and Machine vision.
What we need is magnicifent openCV. Although openCV comes with internal video support, it is not as complete as ffmpeg. Sometimes, one have to re-invent the wheel.

The provided code is based on ffmpeg transcoding and encoding examples of ffmpeg where you can find them Here.
This code is provided for experimental purposes and I ask you to improve it in every aspect you like.


Davood Falahati