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

隐身守侯 提交于 2019-12-11 02:13: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


来源:https://stackoverflow.com/questions/1736301/how-to-write-bitmaps-as-frames-to-h-264-with-x264-in-c-c

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!