write stderr to /dev/null, subprocess might block with lots of errors otherwise

This commit is contained in:
j 2015-04-24 18:33:52 +02:00
parent b8cb761dea
commit f814049805
1 changed files with 2 additions and 2 deletions

View File

@ -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