fix segfault with avconv(use rawvideo instead of image2pipe)
This commit is contained in:
parent
b60a685c85
commit
5e4f196084
1 changed files with 3 additions and 2 deletions
|
@ -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),
|
||||
'-'
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue