Compare commits

..

No commits in common. "976163505569f98862f7bfb10ffbcf3305300d39" and "435035e2b33a233ce9e177603276a6f000f409d0" have entirely different histories.

3 changed files with 5 additions and 23 deletions

View File

@ -1,11 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
for file in ./*.m4a; do
map='';
if [[ $# > 0 && $1 == 'map' ]]; then
map='-map 0:0';
fi
echo "ffmpeg -i '$file' -c:a copy $map -movflags +faststart '../reencode/$file'";
ffmpeg -i "$file" -c:a copy $map -movflags +faststart "../reencode/$file";
done

View File

@ -1,7 +0,0 @@
#!/usr/bin/env bash
set -euo pipefail
for file in ./*.mp3; do
echo "ffmpeg -i '$file' -c:a copy -map 0:0 '../reencode/$file'";
ffmpeg -i "$file" -c:a copy -map 0:0 "../reencode/$file";
done

View File

@ -2,11 +2,11 @@
set -euo pipefail
for file in ./*.$1; do
map='';
if [[ $# > 1 && $2 == 'map' ]]; then
map='-map 0:0';
map=''
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";
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"
done