View Single Post
Old 18th December 2011, 21:40   #3  |  Link
MasterNobody
Registered User
 
Join Date: Jul 2007
Posts: 552
Quote:
Originally Posted by LoRd_MuldeR View Post
As far as I know, H.264 uses the YCbCr color model. Thus RGB data unavoidable has to be converted to YCbCr.
Incorrect, H.264 can compress RGB more or less effectivly with 4:4:4 profile. Also there is colormatrix value in VUI for signaling RGB (GBR really).
Quote:
Originally Posted by LoRd_MuldeR View Post
Note that the color-space conversion itself is lossless (except for rounding errors)
That is already not lossless (and it is not only rounding errors).
Quote:
Originally Posted by LoRd_MuldeR View Post
H.264 also supports a '4:4:4' mode (i.e. no color sub-sampling), but I don't think x264 does support this yet. Most H.264 decoders probably wouldn't either...
Your data are outdated. Both x264 and ffmpeg/libav supports 4:4:4 (and RGB also) now.

ramprasad85
You need to use --output-csp rgb because default is i420 (lossless or lossy encoding you do indifferent)
MasterNobody is online now   Reply With Quote