问题
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:
- 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
来源:https://stackoverflow.com/questions/1736301/how-to-write-bitmaps-as-frames-to-h-264-with-x264-in-c-c