This is an open-source library based on the FFmpeg library. It can help you quickly get video and audio streams on C3V. It wraps some FFmpeg functions in an API to simplify the development process.
You can use it directly as a lib, or you can use it as a collection of FFmpeg sample code, and refer to its source code to implement the functions you want.
What can it do
Quickly get a video stream from the sensor
Hardware encoding H264 using h264_v4l2m2m
Hardware decoding H264 using h264_v4l2m2m
Quickly create an H264 stream
Mux MP4/FMP4
Demux MP4/FMP4
Specially provided for Pre-Record
How to get it ?
Download it here:..........
The attachment contains the compiled libffmpeg_media_api.so and ffmpeg_sample, its source code and sample code, as well as all its dependent libraries.
How to compile it ?
modify the linux toolchain path in makefile_config_user.mk, change it to your toolchain path
make
make install
How to run sample ?
./ffmpeg_sample function [filepath]