ffmpeg | mixing tracks volume problem

amix parameter decreases volumes of each input track to avoid clipping of the result track. Try this to prevent this behaviour: ffmpeg -y -i payload.mp2 -i bed.mp2 -filter_complex “[0]volume=2[a];[1]volume=2[b];[a][b]amix=inputs=2:duration=shortest:dropout_transition=0” payload_plus_bed.mp2

ICECAST // Relaying forward with ffmpeg or liquidsoap// icecast to icecast

# ffmpeg -hide_banner -loglevel panic -re -icy 1 \ -i -vn -map_metadata:s:0 0:g \ -acodec copy -f adts icecast://source:MYPASS@localhost:8000/test # ffmpeg -hide_banner -loglevel panic -re -icy 1 \ -i -vn -map_metadata:s:0 0:g \ -acodec copy -f mp3 icecast://source:MYPASS@localhost:8000/test # sudo -u _liquidsoap liquidsoap \ output.icecast(%fdkaac, icy_metadata=”true”, host=”DstHOST”, port=80, password=”MyPASS”, mount=”/bbradio.aac”, mksafe(input.http(“http://SrcHOST:80/bbradio-ch01.aac”))) # sudo […]

Audio normalization with ffmpeg // part II

with dynaudnorm: ffmpeg -y -i “$A_FILE” -af “dynaudnorm=p=${NORMALIZE_TO_DB}dB:f=500:r=0.9:g=7” -f $FORMAT -sample_fmt $SAMPLEBITS -ab $BITRATE -ar $SAMPLERATE -ac $CHANNELS -vn “$A_FILE_NORMALIZED” > /dev/null 2>&1 with loudnorm: ffmpeg -y -i “$A_FILE” -af “loudnorm=TP=${NORMALIZE_TO_DB}” -f $FORMAT -sample_fmt $SAMPLEBITS -ab $BITRATE -ar $SAMPLERATE -ac $CHANNELS -vn “$A_FILE_NORMALIZED” > /dev/null 2>&1

Audio normalization with ffmpeg using loudnorm (ebur128) filter

Source: https://developers.google.com/actions/tools/audio-loudness Source: http://k.ylo.ph/2016/04/04/loudnorm.html (Credits: k@ylo.ph | Source discovered by Mulvya)   ./ffmpeg -i /path/to/input.wav -af loudnorm=I=-16:TP=-1.5:LRA=11:print_format=summary -f null – This instructs FFmpeg to measure the audio values of your media file without creating an output file. You will get a series of values presented as follows: Input Integrated:    -27.2 LUFS Input True Peak: […]

Low latency audio transmitting with vlc and ffmpeg

SENDER: ffmpeg -d -vol $VOLUME -f alsa -i $HWID -vn -vol $T_VOLUME -strict experimental -acodec $T_CODEC -ac $T_CHANNELS -ar $T_RATE -ab $T_BANDWIDTH -f rtp udp://${T_IP}:${T_PORT} RECEIVER: vlc -d –rc-fake-tty -I dummy -I oldrc –config $VLCCONFIGDIR/$BID.rc –rc-host $TELNET_IP:$TELNET_PORT –aout alsa –alsa-audio-device $HWID rtp://@:$RTP_PORT > /dev/null 2>&1 &