I have a file I recorded. It has background noise I want to remove (fans, clicking, etc.) Works good for fans but a little less well for clicking.
- Extract the audio file from the video
ffmpeg -i <path> -vn -acodec copy output-audio.aac
- Pipe it through a rnn model.
ffmpeg -i <audiopath> -af arnndn=m=<path to model>
For path to model I just downloaded the std model from https://github.com/GregorR/rnnoise-models
- Recombine the new audio with the video
ffmpeg -i v.mp4 -i a.wav -c:v copy -map 0:v:0 -map 1:a:0 new.mp4