Skip to content

Instantly share code, notes, and snippets.

@samson-sham
Last active February 4, 2020 01:39
Show Gist options
  • Save samson-sham/18f71593f0c6bfe40619e33d773fb95f to your computer and use it in GitHub Desktop.
Save samson-sham/18f71593f0c6bfe40619e33d773fb95f to your computer and use it in GitHub Desktop.
cat 1580736977_init.mp4 $(ls -v 1580736977_53*.m4s | xargs -I % echo '%') > video.mp4
montage *.jpg -tile 10x30 -geometry +0+0 -background none sprite_%03d.jpg
convert sprite*.jpg -sampling-factor 4:2:0 -strip -quality 60 -interlace JPEG -colorspace RGB compressed-%03d.jpg
ls -v sprites*.jpg | cat -n | while read n f; do mv -n "$f" "shifted-$(($n-1)).jpg"; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment