Have an application similar to security camera loop buffer. An incoming video stream needs to be written to a file or set of a files of a fixed total size, overwriting the oldest data with the newest data. Video will be h.265 with 1 key frame per second and written to a .mkv container.
Is there a pipeline configuration or plugin which can be used to instantiate and manage a loop buffer of this kind?
If not, is there a recommended way of setting this up?
I don’t think either automatically manages overwriting of oldest data with newest. It seems the closest would be to create an application which uses splitmuxsink to write to a set of files of identical size until they equal in aggregate the target loop buffer size, and then start deleting the oldest file as each newest file is completed.
I may not be understanding correctly when you say overwriting of oldest data with newest.
With max-files property “old files start to be deleted to make room for new ones”. Just in case, if this is what you want,