Skip to content

Instantly share code, notes, and snippets.

@cghiban
Created May 13, 2017 11:22
Show Gist options
  • Select an option

  • Save cghiban/16f6a7259729e2df62637af2e501bfcb to your computer and use it in GitHub Desktop.

Select an option

Save cghiban/16f6a7259729e2df62637af2e501bfcb to your computer and use it in GitHub Desktop.
#/bin/sh
input=$1
fname=$(echo $input|sed -e 's/\.mp4//')
ffmpeg -v quiet -i $input -vframes 1 -an -f image2 -y $fname.jpg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment