Giter Club home page Giter Club logo

Comments (7)

adaviding avatar adaviding commented on May 28, 2024 1

Removing the *.so file extension worked. I did not follow the meaning of your instruction to use the proper suffix for x64. I am on x64 and the following worked for me.

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.

from noise-suppression-for-voice.

werman avatar werman commented on May 28, 2024

I'll try to check later what's going wrong there.

from noise-suppression-for-voice.

adaviding avatar adaviding commented on May 28, 2024

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 LADSPA_PATH and I put a single file from your build output here: /usr/local/lib/ladspa/librnnoise_ladspa.so (which is apparently the default place to look).

That doesn't work either. Maybe I am missing a configuration step or something.

from noise-suppression-for-voice.

richardpl avatar richardpl commented on May 28, 2024

Your command incarnation is simply wrong, : separates options.
Correct syntax is:
-af ladspa=file=librnnoise_ladspa.so:plugin=noise_suppressor_stereo

from noise-suppression-for-voice.

adaviding avatar adaviding commented on May 28, 2024

@richardpl Thank you for your suggestion. Unfortunately I tried using the colon and I got the same error.

[Parsed_ladspa_0 @ 0x564afdf5f0c0] Failed to load 'librnnoise_ladspa.so'
[AVFilterGraph @ 0x564afdf17bc0] Error initializing filter 'ladspa' with args 'file=librnnoise_ladspa.so:plugin=noise_suppressor_stereo'
Error reinitializing filters!
Failed to inject frame into filter network: Invalid argument
Error while processing the decoded data for stream #0:0
Conversion failed!

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"

from noise-suppression-for-voice.

richardpl avatar richardpl commented on May 28, 2024

Remove ".so" it is not needed.

Also if you are on x64 you need to use proper suffix.

from noise-suppression-for-voice.

werman avatar werman commented on May 28, 2024

Remove ".so" it is not needed.

Also if you are on x64 you need to use proper suffix.

Yep, .so is not needed, I've tested and without it ffmpeg sees plugin and does its work.

from noise-suppression-for-voice.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.