Discussion:
[FFmpeg-user] Dynaudnorm & earwax filters
Ronak
2018-12-11 00:07:54 UTC
Permalink
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
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpeg-user-***@ffmpeg.org with subject "unsub
Carl Eugen Hoyos
2018-12-11 00:29:31 UTC
Permalink
Post by Ronak
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?
The dynaudnorm filter only accepts planar double, the earwax filter only
packed s16.

Carl Eugen
_______________________________________________
ffmpeg-user mailing list
ffmpeg-***@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-user

To unsubscribe, visit link above, or email
ffmpe

Loading...