Open rudnypc opened 2 years ago
When the ffmpeg is closed, is the last segment complete? When I try to kill the ffmpeg, always the last segment is corrupted.
Yes, it does not kill ffmpeg just waits it to finish. That would need to be implemented. What kill signal do you use?
I tried "kill -9|HUP|SIGINT", pressing "q"... I saw the ffmpeg command with only "-ss" inside the go-transcode, because this I asked about it.
I have tested ffmpeg a lot, the best video process is to keep ffmpeg until the end of the video when getting new segment, you can close ffmpeg only if it asks for a future segment (seek) or if it doesn't request a new segment for a while (timeout ).
The ffmpeg will be killed after 50 segments are created. But When I start a video with a index file, the vlc start all playlists and some ffmpeg instances are started, this slows down the server, maybe there should be a better control to disable ffmpeg when not used, and when used, increase the limit from 50 to another after new requests, so there is no cut in audio between old and new segments.