-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cannot load plugin using ffmpeg ladspa #11
Comments
I'll try to check later what's going wrong there. |
Also, I have never really deployed a LADSPA plugin before, and it is possible that I have done it incorrectly. I got rid of the That doesn't work either. Maybe I am missing a configuration step or something. |
Your command incarnation is simply wrong, : separates options. |
@richardpl Thank you for your suggestion. Unfortunately I tried using the colon and I got the same error.
I am providing docker instructions for perfect reproducability. FROM ubuntu:19.04
SHELL ["/bin/bash", "-c"]
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install --yes apt-utils \
&& apt-get install --yes ffmpeg build-essential cmake git python3 python3-pip ninja-build \
dh-autoreconf pkg-config lv2-dev
RUN pip3 install meson
# --------------------------------
# ladspa noise_suppressor_* plugins
# --------------------------------
RUN mkdir -p /github/werman/noise-suppression-for-voice
WORKDIR /github/werman/noise-suppression-for-voice
RUN chmod -R a+rwx . \
&& git clone https://github.com/werman/noise-suppression-for-voice.git .
RUN mkdir build
WORKDIR build
RUN cmake build .. \
&& make
RUN mkdir -p /usr/local/lib/ladspa \
&& chmod -R a+rx /usr/local/lib/ladspa \
&& cp bin/ladspa/librnnoise_ladspa.so /usr/local/lib/ladspa
# --------------------------------
# lv2 speech-denoiser
# --------------------------------
RUN mkdir -p /github/lucianodato/speech-denoiser
WORKDIR /github/lucianodato/speech-denoiser
RUN chmod -R a+rwx . \
&& git clone https://github.com/lucianodato/speech-denoiser.git .
RUN chmod +x install.sh \
&& ./install.sh
RUN apt-get install --yes lilv-utils
# --------------------------------
# data folder
# --------------------------------
RUN mkdir /data \
&& chmod -R a+rwx /data
WORKDIR /data
ENTRYPOINT ["/bin/bash", "-c"] Here is how I built it: docker build --tag denoise:latest . Here is how I ran it: INPUT=/data/sample_car.wav
OUTPUT=/data/sample_car.nsfv.wav
docker run \
--mount type=bind,src=$(pwd),dst=/data \
denoise \
"ffmpeg -hide_banner -i $INPUT -af ladspa=file=librnnoise_ladspa.so:plugin=noise_suppressor_stereo $OUTPUT" |
Remove ".so" it is not needed. Also if you are on x64 you need to use proper suffix. |
Yep, |
Removing the INPUT=/data/sample_car.wav
OUTPUT=/data/sample_car.nsfv.wav
docker run \
--mount type=bind,src=$(pwd),dst=/data \
denoise \
"ffmpeg -hide_banner -i $INPUT -af ladspa=file=librnnoise_ladspa:plugin=noise_suppressor_stereo $OUTPUT" And for the benefit of others who are not going through a docker container, the command would be. ffmpeg -hide_banner -i $INPUT -af ladspa=file=librnnoise_ladspa:plugin=noise_suppressor_stereo $OUTPUT Thank you all for your help. |
Basically I am trying to filter a file like this:
And I get
Failed to load 'librnnoise_ladspa.so=plugin=noise_suppressor_stereo'
:Here are the instructions that I followed to build and install the plugin:
Created the folder for ladspa plugins
Built and deployed the plugin
I am using the standard
ffmpeg
version3.4.6-0ubuntu0.18.04.1
built for my distro which is Linux Mint 19.1 (basically equivalent to Ubuntu 18.04); and it was built with--enable-ladspa
.The text was updated successfully, but these errors were encountered: