[Ffmpeg-devel] YUV420 frames to windows bitmaps

Mark Lederman Mark
Fri May 5 00:28:18 CEST 2006

Thanks for the help! I ended up using img_convert() to go from YUV420P to
YUV422. From there vfw rendered the image properly. The BITMAPINFOHEADER i
used is below.

bitmapInfo.biSize = sizeof(BITMAPINFOHEADER);
bitmapInfo.biWidth = pCodecCtx->width;
bitmapInfo.biHeight = pCodecCtx->height;
bitmapInfo.biPlanes = 1;
bitmapInfo.biBitCount = 16;
bitmapInfo.biCompression = MAKEFOURCC('Y','U','Y','2');
bitmapInfo.biSizeImage =

thnx again!

More information about the ffmpeg-devel mailing list