Skip to content
Snippets Groups Projects
Commit 1fffa00b authored by Alex Lee's avatar Alex Lee
Browse files

Add rgba option to save_gif.

parent 4386224e
No related branches found
No related tags found
No related merge requests found
......@@ -26,7 +26,7 @@ def save_gif(gif_fname, images, fps):
'-vcodec', 'rawvideo',
'-r', '%.02f' % fps,
'-s', '%dx%d' % (w, h),
'-pix_fmt', {1: 'gray', 3: 'rgb24'}[c],
'-pix_fmt', {1: 'gray', 3: 'rgb24', 4: 'rgba'}[c],
'-i', '-',
'-filter_complex', '[0:v]split[x][z];[z]palettegen[y];[x][y]paletteuse',
'-r', '%.02f' % fps,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment