Skip to content

Instantly share code, notes, and snippets.

@k1000
Created July 25, 2016 09:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save k1000/993f13b59d1c0a095b09d9024e0d3326 to your computer and use it in GitHub Desktop.
Save k1000/993f13b59d1c0a095b09d9024e0d3326 to your computer and use it in GitHub Desktop.
#!/bin/bash
filename=$(basename "$1")
segment_times=$2
extension="${filename##*.}"
filename="${filename%.*}"
output=$2_$filename.jpg
ffmpeg -ss $2 -i "$1" -vframes 1 -q:v 2 "$output"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment