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