I do like how OBS studio "replay buffer" feature works (recording of last X seconds continuously).
But it seems like over-sophisticated heavy application to be used for this only purpose.
As I understood, it uses ffmpeg for recording. And ffmpeg seem to support scripting (or configuring, I'm not sure which term fits better here).
So I tried to find some instructions on how to make it with ffmpeg scripting only (without OBS studio), but hadn't found clear and straightforward one yet.
So how to make ffmpeg to do this:
- begin video recording which will be finished only after some particular action (e.g. hotkey is pushed)
- each second delete part of recording which is older than 10 seconds.