saimn/sigal — pull request #87 by Timmmy (2014-04-19 19:52:44+00:00)
Title: Convert video to temp file to be able to resume later

When conversion is interrupted or experiences some problems (for example network problems with a network share), python multiprocessing returns an error, but the part of the file that was already converted remains in the directory. When conversion is started again, the video is skipped just because it exists in the destination folder.

Workaround: convert to a temporary file and rename the file after conversion is finished. On restarting the conversion, existing temporary files are removed and the conversion is performed again from the beginning. With this addition you can start the build command again when something had gone wrong in the previous run.