make sure ffmpeg process exits
This commit is contained in:
parent
acfb6a90b8
commit
f926b94c99
|
@ -1,4 +1,5 @@
|
|||
import sys, os
|
||||
import atexit
|
||||
import subprocess
|
||||
import argparse
|
||||
|
||||
|
@ -64,6 +65,7 @@ graph.fixup()
|
|||
ffmpeg_args = graph.format()
|
||||
|
||||
# Launch render process
|
||||
subprocess.Popen(['ffmpeg'] + ffmpeg_args + args.args)
|
||||
ffmpeg = subprocess.Popen(['ffmpeg'] + ffmpeg_args + args.args)
|
||||
atexit.register(ffmpeg.kill)
|
||||
# Launch graph
|
||||
graph.run()
|
||||
|
|
Loading…
Reference in New Issue