I have an IP camera that provides a Bitstream H264 application through SDK calls. I want to pack this video stream into an FLV container. So far, I should have known the following: -
I need to convert an H264 application to H264 AVCC: To do this, I have to replace the NAL header byte (0x00000001) with the NALU size (large end format).
My question is: what should I do with SPS and PPS? Should I write (av_interleaved_write_frame) them, as after replacing the NAL header? or not to record these frames at all?
I read about AVCC requiring extra data. How to build it? where to transfer it?
source
share