replaced/ updated scripts

This commit is contained in:
2023-01-18 22:35:06 +01:00
parent 7dac64b788
commit e163a0a50f
3 changed files with 18 additions and 11 deletions
+6 -2
View File
@@ -6,7 +6,11 @@ for file in ./*.$1; do
if [[ $# > 1 && $2 == 'map' ]]; then
map='-map 0:0';
fi
echo "ffmpeg -i '$file' -c:a libfdk_aac -profile:a aac_he -b:a 64k -movflags +faststart $map '../m4a/${file%$1}m4a'";
ffmpeg -i "$file" -c:a libfdk_aac -profile:a aac_he -b:a 64k -movflags +faststart $map "../m4a/${file%$1}m4a";
dest=../transcode_m4a
if [[ !(-d $dest) ]]; then
mkdir $dest
fi
echo "ffmpeg -i '$file' -c:a libfdk_aac -profile:a aac_he -b:a 64k -movflags +faststart $map '$dest/${file%$1}m4a'";
ffmpeg -i "$file" -c:a libfdk_aac -profile:a aac_he -b:a 64k -movflags +faststart $map "$dest/${file%$1}m4a";
done