audio.txt
# Get MP3 length in seconds
mp3info -p "%S"
# Play an audio on macos from terminal
afplay file.wav
# Volume normalization
ffmpeg -i a.wav -af loudnorm=I=-23:LRA=1 -ar 44100 b.wav
# Compression
ffmpeg -i a.wav -filter_complex \
"compand=attacks=0:points=-30/-900|-20/-20|0/0|20/20" \
d.wav
# Stronger compression and gain
ffmpeg -i a.wav -filter_complex \
"compand=attacks=0:points=-80/-900|-45/-15|-27/-9|0/-7|20/-7:gain=5" e.wav
# Create a waveform graphic of an audio file
ffmpeg -i e.wav -filter_complex ""aformat=channel_layouts=mono,showwavespic=s=1000x200"" -frames:v 1 e.png
tcp.rip