close_fds
This commit is contained in:
parent
f814049805
commit
5654d47b58
1 changed files with 4 additions and 2 deletions
|
@ -112,7 +112,8 @@ def video(path, height=96, info=None, framerate=FPS):
|
||||||
p = subprocess.Popen(cmd,
|
p = subprocess.Popen(cmd,
|
||||||
bufsize=bufsize,
|
bufsize=bufsize,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=open('/dev/null', 'w'))
|
stderr=open('/dev/null', 'w'),
|
||||||
|
close_fds=True)
|
||||||
|
|
||||||
first = True
|
first = True
|
||||||
while True:
|
while True:
|
||||||
|
@ -151,7 +152,8 @@ def audio(path, info=None, samplerate=48000, framerate=FPS):
|
||||||
p = subprocess.Popen(cmd,
|
p = subprocess.Popen(cmd,
|
||||||
bufsize=bufsize,
|
bufsize=bufsize,
|
||||||
stdout=subprocess.PIPE,
|
stdout=subprocess.PIPE,
|
||||||
stderr=open('/dev/null', 'w'))
|
stderr=open('/dev/null', 'w'),
|
||||||
|
close_fds=True)
|
||||||
|
|
||||||
chunk = int(nbytes / framerate)
|
chunk = int(nbytes / framerate)
|
||||||
first = True
|
first = True
|
||||||
|
|
Loading…
Reference in a new issue