new: script for transcoding audio files to m4a(AAC)
This commit is contained in:
parent
054b034d82
commit
0df0fa16ce
12
scripts/transcode_m4a.sh
Executable file
12
scripts/transcode_m4a.sh
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
for file in ./*.$1; do
|
||||||
|
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"
|
||||||
|
done
|
||||||
|
|
Loading…
Reference in New Issue
Block a user