Skip to content

Instantly share code, notes, and snippets.

@corndog2000
Created June 30, 2019 22:16
Show Gist options
  • Save corndog2000/5b28beaca2a63d3a693cf4dd9d9c7ed7 to your computer and use it in GitHub Desktop.
Save corndog2000/5b28beaca2a63d3a693cf4dd9d9c7ed7 to your computer and use it in GitHub Desktop.
videoToPics: Creates a picture from a video frame at set intervals.
#!/bin/bash
green=`tput setaf 2`
reset=`tput sgr0`
counter=3
while [ $counter -le 26 ]; do
#command="ffmpeg -i ~/Videos/RDR2/Part$counter.mkv -r 0.25 ~/Pictures/Part$counter/output_%04d.png"
#echo $command
#$($command)
mkdir ~/Pictures/RDR2/Part$counter
ffmpeg -i ~/Videos/RDR2Videos/Part$counter.mkv -r 0.50 ~/Pictures/RDR2/Part$counter/output_%04d.png
echo ${green}Done with Part $counter${reset}
((counter++))
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment