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
1 changed files with 3 additions and 2 deletions

View File

@ -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),
'-'
]