Skip to content

Instantly share code, notes, and snippets.

@corndog2000
Created June 30, 2019 22:16

Revisions

  1. corndog2000 created this gist Jun 30, 2019.
    19 changes: 19 additions & 0 deletions videoToPics.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    #!/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