rosenbjerg / FFMpegCore

A .NET FFMpeg/FFProbe wrapper for easily integrating media analysis and conversion into your C# applications
MIT License
1.55k stars 281 forks source link

Audio Filters #500

Open double-dubs opened 5 months ago

double-dubs commented 5 months ago

Is it possible to pass a string of audio filters like this?

silenceremove=start_periods=1:start_duration=1:start_threshold=-60dB:detection=peak,aformat=dblp,areverse,silenceremove=start_periods=1:start_duration=1:start_threshold=-60dB:detection=peak,aformat=dblp,areverse

What seems to work is this:

ffmpeg -i input.mp3 -af "silenceremove=start_periods=1:start_duration=1:start_threshold=-60dB:detection=peak,aformat=dblp,areverse,silenceremove=start_periods=1:start_duration=1:start_threshold=-60dB:detection=peak,aformat=dblp,areverse"

I have tried all sorts of things with custom arguments, but keep getting errors.

lnodaba commented 4 months ago

@double-dubs I want to build a similar command with [FFMpegCore](https://github.com/rosenbjerg/FFMpegCore) how do you do that? I find it hard to come up with the C# version of the ffmpeg command I figured out for the specific case.