Error implementing the AFFTDN filter with a noise type of w

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Error implementing the AFFTDN filter with a noise type of w

tmason
Hello,

 

I am trying to clean up an audio file which contains background noise using
the AFFTDN filter with a noise type of white noise.

I have not been able to find an example of the AFFTDN filter implemented and
working. Based on other examples I tried this command line code.

ffmpeg -i C:\Media\test.wav afftdn="'nt=w':om='o'" C:\media\test_clean.wav

When I run this Unalbe to find a suitable output format for
afftdn="'nt=w':om='o'": Invalid argument.

 

Thank you in advance for your help.

 

Tim Mason

 

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Error implementing the AFFTDN filter with a noise type of w

Moritz Barsnick
On Wed, Feb 05, 2020 at 08:53:29 -0500, [hidden email] wrote:
> I have not been able to find an example of the AFFTDN filter implemented and
> working. Based on other examples I tried this command line code.
>
> ffmpeg -i C:\Media\test.wav afftdn="'nt=w':om='o'" C:\media\test_clean.wav

We usually kindly ask you to show us the complete, uncut console output
of your ffmpeg command.

Though in this case:

> When I run this Unalbe to find a suitable output format for
> afftdn="'nt=w':om='o'": Invalid argument.

You didn't tell ffmpeg that this section is a filter command. You need
to prefix it with "-af", otherwise it is interpreted as the name of an
output.

$ ffmpeg -i C:\Media\test.wav -af afftdn="'nt=w':om='o'" C:\media\test_clean.wav


You have too much quoting as well, though it does not hurt. You can
also do:

$ ffmpeg -i C:\Media\test.wav -af afftdn=nt=w:om=o C:\media\test_clean.wav
(Use more quotation marks depending on content.)

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".
Reply | Threaded
Open this post in threaded view
|

Re: Error implementing the AFFTDN filter with a noise type of w

tmason
HI Moritz,

Thank you for your assistance.  I will make sure in the future to include the full console in my posts.  

This change in command worked for me.

Kind Regards,
            Tim Mason

-----Original Message-----
From: ffmpeg-user <[hidden email]> On Behalf Of Moritz Barsnick
Sent: Wednesday, February 05, 2020 9:44 AM
To: FFmpeg user discussions <[hidden email]>
Subject: Re: [FFmpeg-user] Error implementing the AFFTDN filter with a noise type of w

On Wed, Feb 05, 2020 at 08:53:29 -0500, [hidden email] wrote:
> I have not been able to find an example of the AFFTDN filter
> implemented and working. Based on other examples I tried this command line code.
>
> ffmpeg -i C:\Media\test.wav afftdn="'nt=w':om='o'"
> C:\media\test_clean.wav

We usually kindly ask you to show us the complete, uncut console output of your ffmpeg command.

Though in this case:

> When I run this Unalbe to find a suitable output format for
> afftdn="'nt=w':om='o'": Invalid argument.

You didn't tell ffmpeg that this section is a filter command. You need to prefix it with "-af", otherwise it is interpreted as the name of an output.

$ ffmpeg -i C:\Media\test.wav -af afftdn="'nt=w':om='o'" C:\media\test_clean.wav


You have too much quoting as well, though it does not hurt. You can also do:

$ ffmpeg -i C:\Media\test.wav -af afftdn=nt=w:om=o C:\media\test_clean.wav (Use more quotation marks depending on content.)

Cheers,
Moritz
_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email [hidden email] with subject "unsubscribe".

_______________________________________________
ffmpeg-user mailing list
[hidden email]
https://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
[hidden email] with subject "unsubscribe".