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