Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

MovieExportFromProceduresToDataRef failing on Win98 with invalidMedia



Hello,

           

I am a windows programmer.

 

            I have developed an application to create to QuickTime mov, using the MovieExportFromProceduresToDataRef QuickTime function.

      I am trying to create a QT video from received sample

      It works perfectly ine on Win 2000, Win XP but not on Win 98. This function returns an with an error code of

      invalidMedia on Win 98.

      Is there something more to be done on Win 98.

 

I have QuickTime player 6 installed on Win 98, since QuickTime player 7 cannot be installed on Win 98. But I have built my application against QuickTime SDK 7. The graphics world created in the movie export operation is from a DIB bitmap. The properties of the bitmap are as follows:

 

BITMAPINFO bmpInfo;

ZeroMemory(&bmpInfo,sizeof(bmpInfo));

      bmpInfo.bmiHeader.biSize=sizeof(BITMAPINFOHEADER);

      bmpInfo.bmiHeader.biBitCount=32;

      bmpInfo.bmiHeader.biCompression=BI_RGB;

      bmpInfo.bmiHeader.biSizeImage= dwWidth  * dwHeight *4;

      bmpInfo.bmiHeader.biPlanes=1;

      bmpInfo.bmiHeader.biHeight= - dwHeight ;

      bmpInfo.bmiHeader.biWidth= dwWidth;

     

      HDC hdc=GetDC(hWnd);

      hBackDC=CreateCompatibleDC(hdc);

     

hBackBitmap=CreateDIBSection(hBackDC,&bmpInfo,DIB_RGB_COLORS,&pBits,NULL,NULL);

 

// now I create the GWorld as follows

 

if(NewGWorldFromHBITMAP(&m_gWorld,NULL,NULL,NULL,hBackBitmap,hBackDC)!=noErr)

      {

            _tcscpy(m_szErrMsg,_T("Unable to Create New Quick Time World From the Bitmap"));

            return E_FAIL;

      }

 

      GetGWorld(&m_savedPort,&m_savedGD);

SetGWorld(m_gWorld,NULL);

 

Can someone please tell me what is the mistake? I am using Sorenson Video codec as the movie component.

 

 

Please help

Bhavna

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
QuickTime-API mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/quicktime-api/email@hidden

This email sent to email@hidden



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.