View Single Post
Old 3rd May 2015, 20:26   #11  |  Link
l35633
Registered User
 
Join Date: Oct 2014
Posts: 43
Quote:
Originally Posted by LoRd_MuldeR View Post
If you used the x264 command-line encoder (x264.exe) you could feed it with any supported color format and it would do the required colorspace conversion internally - using libswscale.

This happens inside the command-line front-end, not inside the "core" library.

Code:
x264_8bit_x86.exe --crf 16 -o test.mp4 foreman_cif.rgb.avi
lavf [info]: 352x288p 0:1 @ 25/1 fps (vfr)
resize [warning]: converting from bgr24 to yuv420p
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64 SlowShuffle
x264 [info]: profile High, level 1.3
But, as you are calling the x264 library (libx264.dll) directly, I think you will have to provide YUV data. And that means that you will need to take care of the RGB to YUV conversion yourself.

Still, it doesn't mean that you have to implement it all by yourself. You could try using something like libswscale or "borrowing" code from Avisynth or fmtconv...
Thank you very much! I will try and test the results.
l35633 is offline   Reply With Quote