Guest User

Untitled

a guest
Dec 9th, 2014
232
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/bash
  2. #from
  3. video_folder="~/video/"
  4. #to
  5. screenshot_folder="~/screenshot/"
  6.  
  7. for i in $video_folder/*.mkv
  8. do
  9. i=$(echo $i | sed 's/.mkv//' | sed 's%^.*/%%')
  10.     then
  11.     ffmpeg -i ${video_folder}$i.mkv -f image2 -vf "select='eq(pict_type,PICT_TYPE_I)'" -vsync vfr ${films_folder}_{$i}_thumb%04d.png
  12. fi
  13. done
RAW Paste Data