[FFmpeg-devel] How to make a mp4 file have AVCC box

2019-03-07 Thread Yufei He
Hi I have a problem that the trancoded MP4 file does not have valid AVCC box. It's supposed to have the extradata from the codec. I can only get the extradata after I receive the first encoded frame, while I don't have any frame in my encoder's init function. It seems ffmpeg can only generate

[FFmpeg-devel] How to make a mp4 file have AVCC box

2019-03-07 Thread Yufei He
Hi James Thanks. I got the extradata from first encoded frame with functions in avcodec.h and examples in ffmpeg.c. My problem is that the trancoded MP4 file does not have valid AVCC box. It's supposed to have the extradata from the codec. I can only get the extradata after I receive the first