-->

How to write bitmaps as frames to H.264 with x264

2019-07-08 12:26发布

问题:

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

Some Examples with source would be great!

回答1:

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


标签: c++ c frames h.264