title: OpenCV loading and displaying video produce inaccurate colours
body: <p>I was following the example given in the OpenCV for video displaying, just took out some transformations unnecessary for me. The code I have right now loads the video file and then displays it, the problem is that reproduced video have wrong colours.</p>
  
  <p>Here's the code:</p>
  
  <pre><code>using namespace std;
  using namespace cv;
  
  // The main function
  
  int main (int argc, char *argv[])
  {
  
  VideoCapture cap ("ETMI 002.mpg");  // Open the file
  
  if (!cap.isOpened ())               // Check if opening was successful
      cerr &lt;&lt; "I have failed!" &lt;&lt; endl;
  
  else
  {
      Mat edges;
      Mat frame;
      namedWindow("edges",1);
      while (cap.read (frame))
      {
        cvtColor(frame, edges, CV_BGR2RGB);  
        imshow("edges", edges);
        if(waitKey(30) &gt;= 0) break;
      }
  }
  
  return 0;
  </code></pre>
  
  <p>}</p>