<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>