initial commit of bin scripts into git

This commit is contained in:
2023-11-08 13:38:19 +11:00
commit 3735eea3c6
113 changed files with 11631 additions and 0 deletions

19
fix_afl_md Executable file
View File

@@ -0,0 +1,19 @@
#!/bin/bash
dir="/myth/opt/storage/other-videos/AFL/"
for year in `ls $dir`
do
echo "dir=/$dir/$year"
for file in `ls $dir/$year`
do
md=`MP4Box $dir/$year/$file -info 2>&1 | grep Name: | cut -f2- -d:`
echo -n " file=$file - md=$md"
if [[ ${md} =~ $year.AFL.(.*) ]]
then
new_md=${BASH_REMATCH[1]}
echo -n ", new_md=$new_md"
MP4Box -itags name="$new_md" $dir/$year/$file
fi
echo ""
done
done