update
This commit is contained in:
12
themes/sm1tee/backgrounds/extract_first_frame.sh
Executable file
12
themes/sm1tee/backgrounds/extract_first_frame.sh
Executable file
@@ -0,0 +1,12 @@
|
||||
#!/usr/bin/env bash
|
||||
green='\033[0;32m'
|
||||
red='\033[0;31m'
|
||||
cyan='\033[0;36m'
|
||||
reset="\033[0m"
|
||||
|
||||
if [[ ! -f "$1" ]]; then
|
||||
echo -e "Usage: ./extract_first_frame.sh ${cyan}<background_video>${reset}"
|
||||
exit
|
||||
fi
|
||||
|
||||
ffmpeg -i "$1" -vf "select=eq(n\,34)" -vframes 1 $(basename backgrounds/$1 | cut -d"." -f1).png
|
||||
Reference in New Issue
Block a user