From 5654d47b581fc00e20eeb418f7c2dcdfbdd509b6 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Fri, 24 Apr 2015 18:39:16 +0200 Subject: [PATCH] close_fds --- oxtimelines/ffmpeg.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/oxtimelines/ffmpeg.py b/oxtimelines/ffmpeg.py index beffb45..b07a24e 100644 --- a/oxtimelines/ffmpeg.py +++ b/oxtimelines/ffmpeg.py @@ -112,7 +112,8 @@ def video(path, height=96, info=None, framerate=FPS): p = subprocess.Popen(cmd, bufsize=bufsize, stdout=subprocess.PIPE, - stderr=open('/dev/null', 'w')) + stderr=open('/dev/null', 'w'), + close_fds=True) first = True while True: @@ -151,7 +152,8 @@ def audio(path, info=None, samplerate=48000, framerate=FPS): p = subprocess.Popen(cmd, bufsize=bufsize, stdout=subprocess.PIPE, - stderr=open('/dev/null', 'w')) + stderr=open('/dev/null', 'w'), + close_fds=True) chunk = int(nbytes / framerate) first = True