Save video encoded by libavcodec in AVI file format

I can encode video frames using libavcodec by calling a function avcodec_encode_video

. How do I save these encoded frames to an AVI file?

+2


source to share


1 answer


Check it:

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



You have to open the file for binary writing, write a header to it, and I think add binary frames to it.

+3


source







All Articles