Re: [FFmpeg-devel] extradata on h.264 encoding for mp4 and mov files.

2019-03-11 Thread Nicolas George
Yufei He (12019-03-11): > 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

[FFmpeg-devel] extradata on h.264 encoding for mp4 and mov files.

2019-03-11 Thread Yufei He
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.