<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2016-08-28 16:36 GMT+03:00 Anton Shekhovtsov <span dir="ltr"><<a href="mailto:shekh.anton@gmail.com" target="_blank">shekh.anton@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>I am trying to encode with ffv1 codec and write avi file (not using avformat, by intent).<br></div>Since vfw codec can only return single block of data per frame I am trying to pass AVPacket data and this actually works with small frame size. <br></div>However with bigger frames the produced avi file is invalid (ffplay shows all kinds or errors about missing header data).<br><br></div>Looks like the problem is related to AVCodecContext::extradata.<br></div>The description says "encoding: Set by libavcodec". But then what? Does it get into muxing somewhere? I could`n find anything relevant in examples, ffmpeg.c, avienc.c, mux.c<br><br></div>So can somebody explain the workflow of extradata or more specifically how to write it to avi file?<br><br></div>Or maybe there is something else involved in "avcodec to vfw" problem?<br><br></div>
</blockquote></div><br></div><div class="gmail_extra">Found it in riffenc.c<br><br></div></div>