I've accumulated too many quadcopter (drone) footage files (.mp4, .MOV, etc).
I researched how to ffmpeg
re-encode with "practical" losslessness (i.e. not lessless, but human eye acceptable).
These are my resultant scripts. The filenames say "reduce" but should actually be "re-encode".
In the case of GoPro, these scripts should retain the Gyro data.
I recommend footage filenames and folder-names to not include spaces. I rename
all existing files in a folder with the command rename "s/[[:space:]]/_/g" *
to make certain i have no spaces in filenames.
You could rename all files in subfolders as well: e.g. find ~/SYNC/YT-Archive/ -type f -name "*[[:space:]]*" -exec rename "s/[[:space:]]/_/g" "{}" \;
.