-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgm
More file actions
27 lines (23 loc) · 839 Bytes
/
gm
File metadata and controls
27 lines (23 loc) · 839 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash
#
echo "Be sure to run this from within the directory with the specific project\'s processed normalized audio files."
read -p "Enter processed/normalized file with \"output\" in filename: " OUTPUTFILE
read -p "Enter special identifier name, that will be pre-pended to the final filename: " PROJNAME
OUTPUTLUFS="LUFS-${OUTPUTFILE}"
# normalize -a -20dBFS $OUTPUTFILE
# normalize --peak $OUTPUTFILE
ffmpeg -i ${OUTPUTFILE} -filter:a loudnorm=I=-16:LRA=7:tp=-1 ${OUTPUTLUFS} # loudnorm=I=-16 for voice vice -23 default
normalize --peak ${OUTPUTLUFS}
MP3SUBMIT="${PROJNAME}-$(echo $OUTPUTFILE | awk -F. '{print $1}')"
echo ${MP3SUBMIT}.mp3 > mfil
sed -i 's/\-ed//g' mfil
MP3SUBMITED=$(echo $(cat mfil))
#
ffmpeg -i ${OUTPUTLUFS} -ab 192000 -ar 44100 ${MP3SUBMITED}
#
ls -lrth
#
mediainfo ${MP3SUBMITED}
#
fnorm ${OUTPUTLUFS}
#