Hi It seems ffmpeg can only generate AVCC box if I set extradata in my encoder's init function, it does not take the extradata if I make it in receive_packet function. But I don't have sps and pps when the encoder's init function is called. I only can get it when I get first encoded frame. Please help. Thanks. Yufei.