I am working on ffmpeg and trying to add an audio stream on the fly. I use AudioQueues and I get the original sound buffer. I encode audio with linear PCM, and therefore the sound I get will have a raw format, which, as I know, ffmpeg really accepts it. But I canβt figure out how to do this. I looked into AVStream, where we need to create a new stream for this audio channel, but how to encode it on a video that is already initialized in another AVStream structure.
In general, I would like to have an idea of ββthe ffmpeg architecture. It was difficult for me to work, as this is the least documented. Any pointers or details are appreciated.
Thanks and Regards, Raj Pavan G
cocoa ffmpeg macos
Raj pawan gumdal
source share