ffmpeg GIF Maker Command (2023 Edition)
This is the starting point. Need to pull in all the different notes on the different formats and probably just make different ones in general for optional output?
Code
#!/bin/bash
INPUT_PATH="/Users/alan/youtube-videos/_archive/scratch-potatoes/scratch-potatoes.mov"
OUTPUT_PATH="/Users/alan/Desktop/output.gif"
WIDTH=1920
FPS=14
COLORS=32
CROP="crop=in_w:in_h:0:0,"
START="-ss 30"
TIME="-t 10"
# TIME=""
ffmpeg -loglevel panic -hide_banner -i "${INPUT_PATH}" $START $TIME \
-vf "${CROP}fps=${FPS},scale=${WIDTH}:-2:flags=lanczos,split[s0][s1];\
[s0]palettegen=max_colors=${COLORS}:reserve_transparent=0[p];\
[s1][p]paletteuse" \
-y "${OUTPUT_PATH}"
open $OUTPUT_PATH
Results
Process took to long and was halted
Results