[Libav-user] Reducing sample rate and channels for encoding

Goo Creations goocreations at gmail.com
Thu May 3 11:30:06 CEST 2012


Hi,

I'm relatively new to FFMpeg. I have a buffer in memory of decoded samples
(44100Hz, 2 channels) and I want to encode them to 22050Hz mono. Hence, the
size of the buffer should be 4 times smaller.

If I pass my samples to av_encode_audio2, should I accommodate for this
reduction or will FFMpeg handle this? For example if I want to encode from
stereo to mono, should I remove every second sample before passing the
buffer to av_encode_audio2, or will this function automatically remove
every second sample for me?

Thanks
Christoph
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ffmpeg.org/pipermail/libav-user/attachments/20120503/c314e83f/attachment.html>


More information about the Libav-user mailing list