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

前端 未结 4 1650
情书的邮戳
情书的邮戳 2021-01-12 16:13

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.

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-12 17:05

    You have to break sample buffer into chunks of size 1024, i did for recording mp3 in android for more info follow these links link1,links2

提交回复
热议问题