kill ffmpeg if client is killed

This commit is contained in:
j 2013-02-10 14:37:36 +05:30
parent 9f10490544
commit 421feeb878

View file

@ -277,6 +277,7 @@ def video(video, target, profile, info):
print 'Input:\t', video
print 'Output:\t', target
except KeyboardInterrupt:
p.kill()
r = 1
if os.path.exists(target):
print "\n\ncleanup unfinished encoding:\nremoving", target