tags:

views:

206

answers:

1

How to write bitmaps (RGB) as frames to H.264 with x264 in C\C++?

Some Examples with source would be great!

+1  A: 

Here is how:

  1. Look at the bitmap spec and work on loading a single bitmap
  2. Check out the x264.exe source code. That takes YUV uncompressed data as the source.
  3. Do some search on RGB->YUV conversion.
  4. Put it all together and modify x264.exe to load your bitmaps, convert them to YUV and pass them to the encoder
Martin