Created
August 24, 2026 10:39
-
-
Save litetex/1e98d02e1297af1bfef7131071ecd2b4 to your computer and use it in GitHub Desktop.
convert.sh
This file contains hidden or 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 | |
| for i in *.jpg; do | |
| new_file="${i%.*}.avif" | |
| (ffmpeg -y -i "$i" -c:v av1_amf "$new_file" || ffmpeg -y -i "$i" -c:v libsvtav1 "$new_file") && touch -r "$i" "$new_file" && rm -f "$i" | |
| done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment