kill ffmpeg if client is killed
This commit is contained in:
parent
9f10490544
commit
421feeb878
1 changed files with 1 additions and 0 deletions
|
@ -277,6 +277,7 @@ def video(video, target, profile, info):
|
||||||
print 'Input:\t', video
|
print 'Input:\t', video
|
||||||
print 'Output:\t', target
|
print 'Output:\t', target
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
|
p.kill()
|
||||||
r = 1
|
r = 1
|
||||||
if os.path.exists(target):
|
if os.path.exists(target):
|
||||||
print "\n\ncleanup unfinished encoding:\nremoving", target
|
print "\n\ncleanup unfinished encoding:\nremoving", target
|
||||||
|
|
Loading…
Reference in a new issue