![]() ![]() Most GIFs work fine with 128 and lots work well with 64. If you lower the number it reduces the files size as a trade off being the reduced color pallet. max_colors: GIFs can have to up to 256 colors.(The -2 means the height will be set to a even number of pixels.) Reverse the numbers if you'd rather set the height (e.g. The example uses scale=600:-2 which sets the width to 600 pixels and then automatically sets the height based off the original image. scale: sets the pixel size of the output.Smaller values reduce the file size but make it choppier. Setting the value larger make the GIF smoother but bigger. Here are the different ways you can tweak the command: ![]() mp4, but ffmpeg can read most anything you throw at it. Once you have that, change the INPUT_PATH.mp4 and OUTPUT_PATH.gif to whatever filenames you want and you'll be good to go. The command produces a high quality GIF at a reasonable size. This is the same thing, but it clips out a section of the video starting at 2.3 seconds that's 1.3 seconds long instead of processing the entire clip: ffmpeg -i "INPUT_PATH.mp4" -ss 2.3 -t 1.3 \ Palettegen=max_colors=128:reserve_transparent=0 \ This command uses ffmpeg to convert a video into a high quality GIF: ffmpeg -i "INPUT_PATH.mp4" \
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |