Almost identical: http://stackoverflow.com/questions/1736304/how-to-write-bitmaps-as-frames-to-ogg-theora-in-c-c Depending on your OS, it may be possible to very easily encode to either codec with very similar code, so perhaps open just one question for now and ask how to programattically encode video in multiple codecs, including both h264 and theora?
– bdonlanNov 15 '09 at 01:56
1 Answers1
2
Here is how:
Look at the bitmap spec and work on loading a single bitmap
Check out the x264.exe source code. That takes YUV uncompressed data as the source.
Do some search on RGB->YUV conversion.
Put it all together and modify x264.exe to load your bitmaps, convert them to YUV and pass them to the encoder
This answer is usless and arrogant. You find a useful answer to the quesion with code sample here:
https://stackoverflow.com/questions/34511312/how-to-encode-a-video-from-several-images-generated-in-a-c-program-without-wri#34688916
– ElmueMar 03 '20 at 01:04