Reference from: - https://github.com/leandromoreira/ffmpeg-libav-tutorial - https://github.com/abdullahfarwees/screen-recorder-ffmpeg-cpp
Note: libavcodec, libavformat has change version so there are many code not be updated.
In process updating
ScreenRecordManager contains many ScreenRecord.
Method StartRecord should call all ScreenRecord processing in the same time.