Skip to content

Instantly share code, notes, and snippets.

View kenmickles's full-sized avatar
🚀

Ken Mickles kenmickles

🚀
View GitHub Profile
@kenmickles
kenmickles / extract-first-frame.sh
Created April 26, 2023 14:23
Extract the first frame from an mp4 with ffmpeg (ChatGPT wrote this for me)
#!/bin/bash
# Check if an input file is provided
if [[ -z "$1" ]]; then
echo "Usage: extract-first-frame.sh input.mp4 [output.jpg] [frame_number]"
exit 1
fi
# Set the input file name
input_file="$1"