Created
July 11, 2012 14:37
-
-
Save benatwork/3090791 to your computer and use it in GitHub Desktop.
ffmpeg bash script to generate thumbnails for all videos in a folder
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
for f in *.mov; do ffmpeg -y -i "$f" -f image2 -ss 10 -vframes 1 -an "${f%.mov}.jpg"; done |
Hi, for subdirectories I have
find: missing argument to `-execdir'
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
for subdirectories:
find . -name "*.mp4" -type f -execdir sh -c 'ffmpeg -y -i "$0" -ss 10 -vframes 1 "${0%.mp4}.jpg"' {} ;