Skip to content

Instantly share code, notes, and snippets.

@yurko
Last active May 30, 2018 13:17
Show Gist options
  • Save yurko/928e9d4ed6f20d0a3765215f06ebb99e to your computer and use it in GitHub Desktop.
Save yurko/928e9d4ed6f20d0a3765215f06ebb99e to your computer and use it in GitHub Desktop.
image and video processing
convert -strip -interlace Plane -gaussian-blur 0.05 -quality 85% source.jpg result.jpg
#!/bin/sh
find . -type f \
\( -iname "*.jpg" \
-o -iname "*.jpeg" \) \
-exec jpeginfo -c {} \; | \
grep -E "WARNING|ERROR" | \
cut -d " " -f 1
avconv (-y) -i input.mkv -ss 00:00:10 -t 00:03:26 -c:v copy -c:a copy|flac output.mkv
ffmpeg -i input.mp4 -r 1 -f image2 image-%3d.jpeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment