Created
August 29, 2017 10:45
-
-
Save Sid3y1/9da55c56bb6faaa298dc8974ed7ec5c3 to your computer and use it in GitHub Desktop.
get pictures from movie with ffmpeg
This file contains 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
find . -name "*.MOV" | while read movie;do | |
# ffmpeg -i "$movie" -f flv "${movie%.mov}.flv" | |
echo $movie | |
dir=`dirname "$movie"` | |
fn=`basename "$movie"` | |
mkdir -p "_images/$dir" | |
#ffmpeg -i "$movie" -vf fps=1 "_images/$dir/${fn}_%3d.jpg" | |
#ffmpeg -i "./Cinéma/H44A4224.MOV" -vf "select='eq(not(mod(n\,100))*pict_type,PICT_TYPE_I)'" -vsync vfr "_images/./Cinéma/H44A4224.MOV_%3d.png" | |
echo "ffmpeg -i \"$movie\" -vf \"select='eq(not(mod(n\,100))*pict_type,PICT_TYPE_I)'\" -vsync vfr \"_images/$dir/${fn}_%3d.jpg\"" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment