werman / noise-suppression-for-voice

Noise suppression plugin based on Xiph's RNNoise
GNU General Public License v3.0
4.73k stars 228 forks source link

LADSPA plugin Segmentation fault (core dumped) with ffmpeg #99

Closed Tetsujinfr closed 2 years ago

Tetsujinfr commented 2 years ago

hi

I am on Ubuntu 20.4LTS, x86 PC. I am trying to compile and run the ladspa plugin for ffmpeg. I did follow issue #11 to get all compiled and execute the plugin with ffmep.

The compilation did complete without any issue.

But when I execute ffmpeg, I get a hard segfault crash. I got this same error with other wav input files.

~/noise-suppression-for-voice/build$ ffmpeg -hide_banner -i /home/tetsfr/Downloads/nice-work.wav -af ladspa=file=librnnoise_ladspa:plugin=noise_suppressor_stereo out.wav
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, wav, from '/home/tetsfr/Downloads/nice-work.wav':
  Metadata:
    encoder         : Fission
  Duration: 00:00:00.70, bitrate: 1412 kb/s
    Stream #0:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, stereo, s16, 1411 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (pcm_s16le (native) -> pcm_s16le (native))
Press [q] to stop, [?] for help
Segmentation fault (core dumped)

Did I do something wrong?

werman commented 2 years ago

Could you execute it under debugger:

gdb --args ffmpeg -hide_banner -i /home/...

(gdb) run
(gdb) bt

Paste the bt output here.

werman commented 2 years ago

Released v1.01, it would likely work now, at least it works with ffmpeg for me. Also only 48 kHz sample rate should be used.