Created
July 25, 2016 09:58
-
-
Save k1000/993f13b59d1c0a095b09d9024e0d3326 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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
http://stackoverflow.com/questions/27568254/how-to-extract-1-screenshot-for-a-video-with-ffmpeg-at-a-given-time