Skip to content

Instantly share code, notes, and snippets.

@chergaoui
Created February 19, 2014 16:38
Show Gist options
  • Save chergaoui/9095838 to your computer and use it in GitHub Desktop.
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.
#!/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
@orakhe
Copy link

orakhe commented Jan 25, 2022

How do I use this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment