sc0ty / subsync

Subtitle Speech Synchronizer
GNU General Public License v3.0
1.24k stars 53 forks source link

Using cli to stop early #135

Open Gronis opened 2 years ago

Gronis commented 2 years ago

Hi,

I've just tried out this software and it seams to work best of all the tools i've tried. Right now, I'm stuck with the problem that some jobs take significantly more time than others. One job has been going on for over 3 hours and it's around 75% done. This job is probably syncing from another subtitle embedded in the video file, and that is why it is taking so long. I know that using the effort flag can drop this time but that cannot be adjusted on the fly while the process is ongoing. Sending a signal interrupt just drop the process and the subtitle is not written to file before shutting down.

Could it be possible to listen to a signal interrupt and write the subtitle to the file before shutting everything down. That way, an outside process can shut down without having to wait for the process to complete.

Another idea is to listen to stdin and write when the user is typing something. Another solution would be to use something like a "--checkpoint" flag that writes the subtitle at certain intervals (like 20%, 40%, 60% etc).

Anyways great job with the software.