0

How can I save a ffmpeg stream to a file that would contain the last 10 minutes of the stream and would constantly change over time to have this duration?

2
  • Are you asking for an output file that acts as a FIFO buffer?
    – Gyan
    Commented Mar 3, 2017 at 7:46
  • Yes. I want the file to contain the last 10 minutes of the stream.
    – user123456
    Commented Mar 3, 2017 at 7:52

1 Answer 1

1

Computers don't let you delete from the start of a file, so every time you trim video away, would required the file to be completely re written. Not a great idea. It would be better use some a fragmented format like HLS or DASH, and delete old fragments.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.