[FFmpeg-user] Dynaudnorm & earwax filters

Ronak ronak2121 at yahoo.com
Tue Dec 11 02:07:54 EET 2018


Hey guys,

I'm trying to use the dynaudnorm and earwax filters in my iPhone app, and I've noticed that the dynaudnorm filter wants to resample the audio.

Is there any way to avoid resampling the audio? What format does the filter expect the input to be?

I'm initializing the filters with the following format:

AVAudioFormat 0x600002846260:  2 ch,  44100 Hz, Float32, non-inter

I initialize the input and output frames like so:

frame?.pointee.channels = Int32(format.channelCount)
frame?.pointee.channel_layout = UInt64(av_get_default_channel_layout(Int32(format.channelCount)))
frame?.pointee.sample_rate = Int32(format.sampleRate)
frame?.pointee.format = Int32(AV_SAMPLE_FMT_FLTP.rawValue)
frame?.pointee.nb_samples = Int32(maximumFrameCount)

What am I doing wrong?

Thanks,

Ronak


More information about the ffmpeg-user mailing list