Tested with:
- Ubuntu 19.10
- ffmpeg 4.1.4
LV2 plugins with ffmpeg
List installed lv2 plugins:
lv2ls
Get info about an installed plugin. get parameters...
lv2info https://github.com/lucianodato/speech-denoiser
or print plugin control parameters and ranges by ffmpeg (notice: c=help):
ffmpeg -i in.mp3 -af lv2=http\\\\://calf.sourceforge.net/plugins/Compressor:c=help test.mp3
Using lv2 plugin with ffmpeg:
ffmpeg -i 'test.mp3' -af "lv2=p=https\\\\://github.com/lucianodato/speech-denoiser" -ac 1 test.ogg
Using multiple lv2 plugins with ffmpeg:
ffmpeg -y -i noisy-record.mp3 -af "lv2=p=https\\\\://github.com/lucianodato/speech-denoiser, lv2=p=http\\\\://calf.sourceforge.net/plugins/Gate:c=threshold=0.04010706|knee=8|range=0.03148599, lv2=http\\\\://calf.sourceforge.net/plugins/Compressor:c=knee=8|threshold=0.125, lv2=http\\\\://calf.sourceforge.net/plugins/Limiter:c=level_out=0.71697748|limit=0.62763602" -q:a 5 -vbr on -ac 1 - cleaned.mp3
Using lv2 and built-in plugins together with ffmpeg:
ffmpeg -y -i "in.mp3" -af "lv2=p=https\\\\://github.com/lucianodato/speech-denoiser:c=mix=-22, dynaudnorm=f=500:g=31:p=0.95:s=20, lv2=http\\\\://calf.sourceforge.net/plugins/Limiter:c=level_out=0.71697748|limit=0.62763602" -q:a 5 -ac 1 test21.mp3
ffmpeg -y -i "in.mp3" -af "lv2=p=https\\\\://github.com/lucianodato/speech-denoiser:c=mix=-22, lv2=http\\\\://calf.sourceforge.net/plugins/Compressor:c=knee=8|threshold=0.125, dynaudnorm=f=500:g=31:p=0.95, lv2=http\\\\://calf.sourceforge.net/plugins/Limiter:c=level_out=0.71697748|limit=0.62763602" -q:a 5 -ac 1 test17.mp3
Process multiple audio using some plugins with ffmpeg:
find "audio/" -iname "*.mp3" | xargs -I {} ffmpeg -y -i "{}" -af "lv2=p=https\\\\://github.com/lucianodato/speech-denoiser:c=mix=-22, dynaudnorm=f=500:g=31:p=0.95:s=20, lv2=http\\\\://calf.sourceforge.net/plugins/Limiter:c=level_out=0.71697748|limit=0.62763602" -q:a 5 -ac 1 "{}.mp3"
Using LADSPA plugins
Default ladspa path: HOME/.ladspa/lib/, /usr/local/lib/ladspa/, /usr/lib/ladspa/
See available plugins in a file:
ffmpeg -i test.ogg -af ladspa=file=tap_pitch test.mp3
See available parameters for a plugins:
ffmpeg -i test.ogg -af ladspa=file=tap_pitch:p=tap_pitch:c=help test.mp3
Use a ladspa plugin:
ffmpeg -i test.ogg -af "ladspa=file=tap_pitch:p=tap_pitch:c=c0=1.9|c1=1.2" test.mp3
Reference:
https://bbs.archlinux.org/viewtopic.php?id=178327