I have a php script that reads from database and converts videos using ffmpeg.
Sometimes the power goes off and my server turns of suddenly.
What should I do to re-encode the video that was being converted while the power loss occurred?
The whole process should be automatic.