To check LUFS and True Peak of a wave file where $foo is your wave file.ffmpeg -i $foo.wav -af loudnorm=print_format=json -f null -
Generate a mp4 file to play on MacOS where $foo is your wave file and $name is your mp4 file. Targeting -14 LUFS. Good for most genres. ffmpeg -i $foo -filter_complex "[0:a]ebur128=video=1:size=640x480:target=-14:meter=18:peak=true[out0][out1]" -map "[out0]" -map "[out1]" -c:v libx264 -pix_fmt yuv420p -profile:v baseline -level 3.0 -c:a aac -movflags +faststart $name.mp4
Targeting -16 LUFS. Good for most more traditional Folk and Americana genres.
ffmpeg -i $foo -filter_complex "[0:a]ebur128=video=1:size=640x480:target=-16:meter=18:peak=true[out0][out1]" -map "[out0]" -map "[out1]" -c:v libx264 -pix_fmt yuv420p -profile:v baseline -level 3.0 -c:a aac -movflags +faststart $name.mp4
Targeting -6 LUFS. Good to blow your ears away. EDM and Hiphop genres.
ffmpeg -i $foo -filter_complex "[0:a]ebur128=video=1:size=640x480:target=-6:meter=18:peak=true[out0][out1]" -map "[out0]" -map "[out1]" -c:v libx264 -pix_fmt yuv420p -profile:v baseline -level 3.0 -c:a aac -movflags +faststart $name.mp4