FFmpegVideoProvider is used to store, obtain, and control stream data. It only supports storing data of the AVPacket type; The data in AVPacket can be YUV, H264, or MJPGMJPEG. All of its APIs are thread-safe.
...
Sample Code
Please refer to the sample code of FFmpegV4L2VideoSource.