fix segfault with avconv(use rawvideo instead of image2pipe)

This commit is contained in:
j 2014-09-25 23:33:37 +02:00
parent b60a685c85
commit 5e4f196084

View file

@ -100,10 +100,11 @@ def video(path, height=96, info=None, framerate=FPS):
'-loglevel', 'error', '-loglevel', 'error',
'-i', path, '-i', path,
'-threads', '4', '-threads', '4',
'-f', 'image2pipe', '-f', 'rawvideo',
'-pix_fmt', 'rgb24', '-pix_fmt', 'rgb24',
'-vcodec', 'rawvideo', '-vcodec', 'rawvideo',
'-vf', 'scale=w=%d:h=%d' % (width, height), '-vf', 'scale=%d:%d' % (width, height),
'-aspect', '%d:%d' % (width, height),
'-r', str(framerate), '-r', str(framerate),
'-' '-'
] ]