Skip to content

Instantly share code, notes, and snippets.

View artwilton's full-sized avatar

Arthur Wilton artwilton

View GitHub Profile

Compressing GIFs

Converting file to a GIF and compressing using imagemagick and gifsicle:

convert -delay 4 <source> -loop 0 +dither -layers OptimizePlus "${@:3}" gif:- | gifsicle -O3 --dither --lossy=30 --resize-width 640 -V -o <output>.gif


Parameters explained:

@artwilton
artwilton / Creative_Projects-Syntax_Cheat_Sheet.md
Last active April 8, 2021 16:31
Creative projects - common commands and syntax

After Effects:

Expressions

wiggle expression syntax:

wiggle(freq, amp, octaves=1, amp_mult=0.5, t=time);

Per Adobe Documentation:

@artwilton
artwilton / ffmpeg_commands.md
Last active August 26, 2022 04:33
FFmpeg commands I use often

FFmpeg commands I use often

Basic Encoding

Export a medium quality mp4 file at 1280 x 720

ffmpeg -i <input> -c:v libx264 -preset fast -crf 22 -s 1280x720 -c:a libfdk_aac -b:a 196k -ar 44100 -pix_fmt yuv420p <output>.mp4

Quickly convert audio to .wav file