FFmpegPreRecordH264Provider is dependent on FFmpegH264Provider. It is designed for pre-recording. It supports setting the cache duration in milliseconds.
...
Set encoding parameters, and prepare FFmpegH264Provider.
Code Block | ||
---|---|---|
| ||
/** * Set encoding parameters and initialize all required resources. * * @param param set parameters of the encoder. * */ int prepare(VideoStreamParam_t param); |
destroy
Destroy FFmpegH264Provider.
Code Block | ||
---|---|---|
| ||
/** * Empty the cached data and release all resources. */ void destroy(); |
...
This is a sample of how to pre-record MP4 dependent on FFmpegPreRecordH264Provider, FFmpegH264Provider, and FFmpegAVMuxer.
the flow of pre-record MP4:
...