Open melvinroest opened 5 years ago
Also I made a guide for this stuff for Mac OS X people. I saw another issue about it, so I figured, might as well write a guide for myself and others.
Helpful guide for compiling ffmpeg on MacOS:
brew install automake fdk-aac git lame libass libtool libvorbis libvpx \
opus sdl shtool texi2html theora wget x264 x265 xvid nasm
brew install lilv #because of ERROR: lilv-0 not found using pkg-config when doing ./configure right away
./configure --prefix=/usr/local --enable-gpl --enable-nonfree --enable-libass \
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame \
--enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libopus --enable-libxvid --enable-lv2 \
--samples=fate-suite/
make
sudo make install
brew update
brew cask uninstall oclint
brew install lv2 meson ninja pkg-config autoconf m4 libtool automake
#Download and install speech denoiser
git clone https://github.com/lucianodato/speech-denoiser.git
cd speech-denoiser
chmod +x install.sh && ./install.sh
lv2ls #You got this command from installing lilv
Output: https://github.com/lucianodato/speech-denoiser (yep a URL)
#audio to denoised audio
ffmpeg -i out_cropped.mov -af 'lv2=plugin=https\\://github.com/lucianodato/speech-denoiser' -vcodec copy out_cropped_denoised.wav
#for if you want to put it with a video
&&
ffmpeg -i out_cropped.mov -i out_cropped_denoised.wav -c:v copy -map 0:v:0 -map 1:a:0 out_cropped_denoised.mov
I have a workaround for this, so it's not a huge issue. I described everything here, to see if some ffmpeg expert would be up for the task.
https://stackoverflow.com/questions/58600620/ffmpeg-complex-filtering-how-to-get-around