From 5e4f1960843aedacdc8e1051f7aaeefb41289769 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Thu, 25 Sep 2014 23:33:37 +0200 Subject: [PATCH] fix segfault with avconv(use rawvideo instead of image2pipe) --- oxtimelines/ffmpeg.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/oxtimelines/ffmpeg.py b/oxtimelines/ffmpeg.py index 7f8f01c..bf3007f 100644 --- a/oxtimelines/ffmpeg.py +++ b/oxtimelines/ffmpeg.py @@ -100,10 +100,11 @@ def video(path, height=96, info=None, framerate=FPS): '-loglevel', 'error', '-i', path, '-threads', '4', - '-f', 'image2pipe', + '-f', 'rawvideo', '-pix_fmt', 'rgb24', '-vcodec', 'rawvideo', - '-vf', 'scale=w=%d:h=%d' % (width, height), + '-vf', 'scale=%d:%d' % (width, height), + '-aspect', '%d:%d' % (width, height), '-r', str(framerate), '-' ]