Skip to content

Instantly share code, notes, and snippets.

@pwaldhauer
Created July 2, 2014 11:43
Show Gist options
  • Save pwaldhauer/694bdf4f09941962c4c4 to your computer and use it in GitHub Desktop.
Save pwaldhauer/694bdf4f09941962c4c4 to your computer and use it in GitHub Desktop.
Create youtube-ready h264 from jpegs
x=1; for i in *jpg; do counter=$(printf %03d $x); ln "$i" /tmp/aaa/img"$counter".jpg; x=$(($x+1)); done
ffmpeg -f image2 -framerate 25 -pattern_type sequence -r 10 -i img%03d.jpg -c:v libx264 -preset slow -crf 18 -pix_fmt yuv420p /Users/pwaldhauer/test.mp4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment