libfaac

How to encode resampled PCM-audio to AAC using ffmpeg-API when input pcm samples count not equal 1024

眉间皱痕 提交于 2019-12-23 09:42:46
问题 I am working on capturing and streaming audio to RTMP server at a moment. I work under MacOS (in Xcode), so for capturing audio sample-buffer I use AVFoundation-framework. But for encoding and streaming I need to use ffmpeg-API and libfaac encoder. So output format must be AAC (for supporting stream playback on iOS-devices). And I faced with such problem: audio-capturing device (in my case logitech camera) gives me sample-buffer with 512 LPCM samples, and I can select input sample-rate from