title: FFMPEG - Read video file and convert to Bitmap
body: <p>I can successfully read a video file using ffmpeg </p>
  
  <p>Now i want to show these video frames on my MFC mdi.</p>
  
  <p>For that i need a bitmap to feed my CBitmap::FromHandle() function</p>
  
  <pre><code>memDC.CreateCompatibleDC(dc);
  
  CBitmap * bmp = CBitmap::FromHandle();
  
  CBitmap * oldBmp = memDC.SelectObject(bmp);
  
  dc-&gt;BitBlt(0,0,320,240,&amp;memDC,0,0,SRCCOPY);
  </code></pre>
  
  <p>For ffmpeg i am using dranger tutorial 01</p>
  
  <p><a href="http://dranger.com/ffmpeg/tutorial01.html" rel="nofollow">http://dranger.com/ffmpeg/tutorial01.html</a></p>
  
  <p>Please advise how to convert frames to Bitmap</p>
  
  <p>Thanks</p>