radek-k / FFMediaToolkit

FFMediaToolkit is a cross-platform video decoder/encoder library for .NET that uses FFmpeg native libraries. It supports video frames extraction, reading stream metadata and creating videos from bitmaps in any format supported by FFmpeg.
MIT License
352 stars 56 forks source link

Pauseable feature wanted #66

Closed shyakocat closed 3 years ago

shyakocat commented 3 years ago

I happen to find this treasure project.

When encoding video from images, how to pause the process, such as Serialize or something else to restore the current status. Maybe the wait time is too long and the user close the program, or worse, the program crash or the laptop out of power. To make program robost, it is good when user can resume the render schedule from last frame.

radek-k commented 3 years ago

It's a great idea, but I'm not sure it's even possible. However, I will try to implement it in the future.

IsaMorphic commented 3 years ago

This could only work with certain container formats that support appending frames after initial encoding. For example, formats like MP4 I doubt could use such a feature but more robust muxers like MPEG-TS might work better.