Created
June 30, 2019 22:16
-
-
Save corndog2000/5b28beaca2a63d3a693cf4dd9d9c7ed7 to your computer and use it in GitHub Desktop.
videoToPics: Creates a picture from a video frame at set intervals.
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 | |
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