dmo

How do you output the T_SQL script of a Table using VC++ 6.0 and SQL-DMO

I need to get the Create script of a table from a SQL Server database given the table name using VC++6.0 in order to output it to a text file. I have tried to get this using SQL-DMO Script method for the table, using GetTableByName() but it returns null. I confirmed it has the correct table by using the GetColumnByOrd method. ...

Has any one Used DMO in C#?

Has any one Used DMO (Microsoft DirectX Media Objects) in C#? Not using DShow. Any Libs, Wrapers, etc? ...

Windows Color Converter DSP problem

Hello, This is a Direct Media Objects related problem. Basicly, I am trying to use the Color Converter DSP CLSID_CColorConvertDMO to convert from a YV12 video format to RGB24 video format. To init the input interface I have to call IMediaObject::SetInputType with a description of the video format in a DMO_MEDIA_TYPE structure as the seco...

EnumFiles of SQL DMO using c++

while retrieving data and log files of Mirror Database(Ex:TestDB) using EnumFiles() of sql dmo seeing following error: ERROR: Microsoft SQL-DMO (ODBC SQLState: 42000) [Microsoft][ODBC SQL Server Driver][SQL Server]The database "TestDB" cannot be opened. It is acting as a mirror database. so can anyone please tell me how to retrieve all...

WMP , DMO decoder question

Hi all. I'm writing a Windows Media Player DMO that decodes a custom stream from an ASF file. The final product would be bitmaps to be fed into WMP's Video Renderer for display. The problem is that each sample I receive from the ASF file is a buffer containing several bitmaps, and so I can't feed the renderer one bitmap per one input...

Windows Media Player Renderer accepts only RGB24?

Hi, I wrote a DMO which receives proprietary audio and video streams from an ASF file, decodes them and should play them in WMP. The problem is when WMP calls CheckOutputTypes in my DMO, it only checks for RGB24. My DMO only outputs RGB32 (for reasons I'll specify in a moment) , and causes WMP to return a "can only be created as an a...

Custom Asf file , DMO and seeking

Hi all. I am creating an ASF file using 3 proprietary streams, one video and 2 audio. The streams themselves contain timestamped samples with a proprietary compression. I also mark keyframes in the video, while all audio samples are marked as keyframes. These are then fed to a DMO that is supposed to play them in Windows Media Player, D...

trying to copy a bitmap into the WMP Renderer -> upside down!

Hi All. I'm writing a video DMO decoder and trying to return a bitmap to the WMP renderer for display ... but WMP displays it upside down! This is the code : HBITMAP* hBmp = new HBITMAP(); int result; m_pScrRenderer->CreateFrame(hBmp, &result); ///This returns the HBITMAP handle. BITMAP bmStruct; memset(&bmStruct, 0, sizeof(BITM...

How do I create a simple video effect filter for DirectShow or DMO?

How do I create a simple video effect filter for DirectShow or DMO? What I need is simple - a tutorial or tutorials on how to create simple filter (like a brightness/contrast adjustment filter or any other pixel-per-pixel kind of filter) for filtering Direct Show Video astream (so I want to have a graph like "my Web Kamera" -> "My photo...

ASF duration is 29 secs, WMP plays 25 secs. How come?

Hi All. I've created a custom ASF file containing compressed voice + screen streams. The total duration of the file according to the header is 29 secs. When opening it in WMP (using custom DMOs to play the streams), the file plays 25 seconds, and then the seek bar snaps to the beginning, but oddly, WMP continues to play 4 more seconds...