Re: MPEG2 Video Capture to a BMP
From: Jon Credit (NO_SPAM_CREDITJ_at_Panthers.nfl.com)
Date: 03/18/04
- Next message: Jon Credit: "Re: Using Access with C#.NET"
- Previous message: William Ryan eMVP: "Re: Using Access with C#.NET"
- In reply to: Joe Delekto: "Re: MPEG2 Video Capture to a BMP"
- Next in thread: Jon Credit: "Re: MPEG2 Video Capture to a BMP"
- Messages sorted by: [ date ] [ thread ]
Date: Wed, 17 Mar 2004 19:57:43 -0500
Thanks Joe,
I'll have a look at this in the morning and let you know how I make
out.
Thanks again
--Jon
On Wed, 17 Mar 2004 18:18:11 -0500, "Joe Delekto"
<jfalcon69@hotmail.com> wrote:
>Greets,
>
> If you have the latest Platform SDK installed, you can look at the VFW.H
>header file which has the #defines to call the approprate cap* API functions
>depending upon whether or not you are building for ANSI or unicode. These
>functions are documented in MSDN. Furthermore, the Platform SDK also has an
>excellent sample that you can examine found in the samples folder under the
>Platform SDK installation folder called "WinCap32":
>
>Platform SDK\Samples\Multimedia\Gdi\WinCap32
>
>Regards,
>
>Joe
>
>"JonnyRedBike" <anonymous@discussions.microsoft.com> wrote in message
>news:15F83A63-F55D-437A-B735-2D35AF31EF6A@microsoft.com...
>> We have an application that has a propriotary mpeg2 player. The API of the
>version I am currently using does not provide an interface to get a bitmap
>of the current image being displayed. I have spent the day searching for
>video capture from web cam devices, etc. and I think I am on the right path
>to solving my problem but I am definitly missing something.
>> I am using the capCreateCaptureWindowA function in "avicap32.dll" to
>create a capture window and this happens, but the window only displays
>black. My code is as follows:
>>
>> frm is a variable of a specific form that contains my OCX video player
>> f is a new window opened to be the parent of the CaptureWindow
>>
>> hwndc = capCreateCaptureWindowA("CaptureWindow", WS_CHILD Or
>WS_VISIBLE, 0, 0, 300, 300, f.Handle.ToInt32, 0)
>> If (hwndc <> 0) Then
>> temp = CStr(SendMessage(hwndc, WM_CAP_DRIVER_CONNECT,
>frm.AxVideoPlayer.Handle.ToInt32, 0))
>> temp = CStr(SendMessage(hwndc, WM_CAP_SET_PREVIEW, 1, 1))
>> temp = CStr(SendMessage(hwndc, WM_CAP_SET_PREVIEWRATE, 66,
>0))
>>
>> temp = CStr(SendMessage(hwndc, WM_CAP_EDIT_COPY, 1, 0))
>> Dim data As IDataObject
>> data = Clipboard.GetDataObject
>>
>> End If
>> My questions/confusion.... The data being placed on the clipboard is text,
>not my image :(
>> I have found several constants values for the SendMessage API but I have
>also discovered I am missing a whole bunch more, is there someplace I can
>find these and also is there a list of the functions available in the
>avicap32.dll ?? Or do I just add an "A" to the end of these function calls
>to make them work? I'm not even sure if the wParm and lParm variables I am
>passing to SendMessage are correct anymore so I was wondering if that is
>documented somewhere also !!
>>
>> There are business reasons for using this player so any MediaPlayer
>Interop is not an option.
>> TIA
>> Jon Credi
>> Please_No_SPam_CreditJ@Panthers_nfl_com_no_spam
>
- Next message: Jon Credit: "Re: Using Access with C#.NET"
- Previous message: William Ryan eMVP: "Re: Using Access with C#.NET"
- In reply to: Joe Delekto: "Re: MPEG2 Video Capture to a BMP"
- Next in thread: Jon Credit: "Re: MPEG2 Video Capture to a BMP"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|