<div dir="ltr">Hi. I am trying to understand something regarding AVCC info when muxing elementary h264 stream into mp4.SO far<div>I was adding extra data which is SPS and PPS that I retrieve from h264 encoder. But when I analized the mp4 file I found that all the AVC stuff like</div><div>AVC profile </div><div>AVC level</div><div>AVC NALU length size</div><div>AVC SPS</div><div>AVC PPS</div><div><br></div><div>are not set. (used mp4info tool). I started to dig into ffmpeg to see how to set those extra fields and </div><div>found  this:</div><div><br></div><div><a href="https://www.ffmpeg.org/doxygen/2.6/avc_8c_source.html#l00106">https://www.ffmpeg.org/doxygen/2.6/avc_8c_source.html#l00106</a><br></div><div><br></div><div>with the function <span style="font-size:13px;color:rgb(0,0,0);font-family:monospace,fixed;white-space:pre-wrap;background-color:rgb(251,252,253)"> </span><a class="gmail-code" href="https://www.ffmpeg.org/doxygen/2.6/avc_8c.html#a3c387fceac914c5eeffe9e1d58572f22" style="font-size:13px;color:rgb(70,101,162);text-decoration-line:none;font-family:monospace,fixed;white-space:pre-wrap;background-color:rgb(251,252,253)">ff_isom_write_avcc</a>  which exactly does what I need. But I don' understand why the libav doesn't write it automatically when muxing the stream.</div><div>I set <span style="white-space:pre">  </span>outstream->codecpar->codec_tag = MKTAG('a', 'v', 'c', '1');</div><div><br></div><div>But nothing changes.Do I have to create AVCC header buffer manually? </div><div><br></div></div>