title: Save video encoded by libavcodec to an AVI file format
body: <p>I am able to encode video frames using libavcodec, by calling <code>avcodec_encode_video</code> function. How do I save these encoded frames into an AVI file?</p>