Simple bash script to convert recursively found media files to modern formats.
By default this script runs RECURSIVE !
This script update all found media files to newer more efficient formats:
avif for images and x265 mp4 for videos.
Convertions will be made by imagemagic and ffmpeg.
Options:
-h --help Show this text
-n --non-recursive Don't search for videos in other folders
-i --images Convert .jpg/.jpeg/.png to .avif
-p --pngs Convert .png to .jpg
-g --gifs Convert .gif to x265 mp4
-m --mp4s Convert x264 to x265
Custom convertions options:
-ic= --images-config=
-pc= --pngs-config=
-gc= --gifs-config=
-mc= --mp4s-config=
[by default, the script will run with -p -g -m options]