title: Making a video with opencv and ffmpeg. How to find the right color format?
body: <p>I have a webcam video recorder program built with python, opencv and ffmpeg</p>
  
  <p>It works ok except that the color of the video is more blue than the reality. The problem seems to come from color format of images. </p>
  
  <p>It seems that OpenCv is giving BGR images and ffmpeg+libx264 is expecting YUV420p. I've read that YUV420p correspond to YCbCr.</p>
  
  <p>opencv has no conversion from BGR to YCbCr. It only has a conversion to YCrCb.</p>
  
  <p>I have made some searchs and tried different alternatives to try converting opencv image to something that could be ok for ffmpeg+libx264. None is working. At this point, I am a bit lost and I would appreciate any pointer that could help me to fix this color issue.</p>