Guillaume
Guillaume

Reputation: 777

Save video encoded by libavcodec to an AVI file format

I am able to encode video frames using libavcodec, by calling avcodec_encode_video function. How do I save these encoded frames into an AVI file?

Upvotes: 2

Views: 2252

Answers (1)

Nemanja Boric
Nemanja Boric

Reputation: 22157

Check this out:

http://forum.doom9.org/archive/index.php/t-112286.html

You must open file for binary write, write header in it, and simultaniosly put binary frames in it, I think.

Upvotes: 3

Related Questions