Created
February 19, 2014 16:38
-
-
Save chergaoui/9095838 to your computer and use it in GitHub Desktop.
Quick script I recently used to extract a frame from a .webm file. The frame is saved as a .png file.
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
#!/bin/bash | |
# NB: the script file must be in the same directory as media files | |
FILES=./*.webm | |
for f in $FILES | |
do | |
echo "Processing $f file..." | |
ffmpeg -i "$f" -ss 10 -vframes 1 "$f.png" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
How do I use this?