The words Under construction in black text on a yellow background with diagonal black stipes surrounding it
I'm in the process of moving my site. It's still a work in progress. Please excuse the mess and broken links.

ffmpeg GIF Maker Command (2023 Edition)

TODO: Pull subtitle into page object

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/Videos/yo/ezgif.com-crop-video.mp4"
OUTPUT_PATH="/Users/alan/Desktop/output.gif"
WIDTH=300
FPS=10
COLORS=190
CROP="crop=in_w:in_h:0:0,"
START="-ss 0.7"
TIME="-t 2"
# 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=dither=sierra2" \
       -y "${OUTPUT_PATH}"

open $OUTPUT_PATH
Results


Debugging Stuff

I'm moving stuff around right now. All this below is helping me figure out where to put stuff

        -- title

ffmpeg GIF Maker Command (2023 Edition)

-- note

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
-- bash

#!/bin/bash
INPUT_PATH="/Users/alan/Videos/yo/ezgif.com-crop-video.mp4"
OUTPUT_PATH="/Users/alan/Desktop/output.gif"
WIDTH=300
FPS=10
COLORS=190
CROP="crop=in_w:in_h:0:0,"
START="-ss 0.7"
TIME="-t 2"
# 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=dither=sierra2" \
       -y "${OUTPUT_PATH}"

open $OUTPUT_PATH

-- results/

-- /results


-- categories
-- ffmpeg 

-- metadata
-- date: 2023-10-26 17:11:42
-- id: 2xjkjcyl
-- site: aws
-- type: post
-- status: published