Skip to content

Instantly share code, notes, and snippets.

@actarian
actarian / ffmpeg-export-options.md
Last active February 4, 2021 08:24
FFMPEG alpha merge, color, clipping, jpg2000, webp, frame tiles

FFMPEG alpha merge, color, clipping, jpg2000, webp, frame tiles

sequence to jpeg2000

ffmpeg -i "c:\ffmpeg\in\hero\gbuffer_%05d.png" -pix_fmt yuv420p -vcodec jpeg2000 "c:\ffmpeg\out\hero\cover_%04d.jpeg"

sequence to webp

ffmpeg -i "c:\ffmpeg\in\hero\gbuffer_%05d.png" -pix_fmt yuv420p -codec libwebp "c:\ffmpeg\out\hero\cover_%04d.webp"


@mitchsmith
mitchsmith / gen_intro.sh
Created August 17, 2020 19:59
Deep dive into the ffmpeg man page
#!/usr/bin/env bash
IMGDIR=/home/john/Projects/video_projects/notd/assets/images/intro/
VIDDIR=/home/john/Projects/video_projects/notd/assets/video/
TMPDIR=tmp/
OUTPUTDIR=../tmp/
#ls $IMGDIR
mkdir $TMPDIR
# create init sequence from pngs --> step0
ffmpeg -r 6 -f image2 -s 1920x1080 -i ${IMGDIR}notd_init/%03d.png -vcodec libx264 -crf 5 -pix_fmt yuv420p ${TMPDIR}step0.mp4 &&