From f814049805373f7ecdeceeb202ad20096af69634 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 24 Apr 2015 18:33:52 +0200 Subject: [PATCH] write stderr to /dev/null, subprocess might block with lots of errors otherwise --- oxtimelines/ffmpeg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oxtimelines/ffmpeg.py b/oxtimelines/ffmpeg.py index 2b35d12..beffb45 100644 --- a/oxtimelines/ffmpeg.py +++ b/oxtimelines/ffmpeg.py @@ -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