Re: How to capture a PAL video?
- From: "Mark Salsbery [MVP]" <MarkSalsbery[MVP]@newsgroup.nospam>
- Date: Mon, 29 Oct 2007 12:38:44 -0700
The VFW video source dialog, if provided, is provided by the device's driver. There's now way AFAIK to set the PAL/NTSC option using VFW. Many devices have more options than that.
Once you use the dialog to set the type, it should remain set that way (I would hope so, anyway :)).
Mark
--
Mark Salsbery
Microsoft MVP - Visual C++
"kavitabalupu" <kavitabalupu@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:BD986BB7-174A-4329-92CB-B0BBEB43BA57@xxxxxxxxxxxxxxxx
Hi,
I'm tyring to capture a PAL video.
But the video looks like a NTSC video.
Do I need to set any specific parameter to capture a PAL video?
When I call capDlgVideoSource(m_hWndVideo); I have an option for NTSC and
PAL to select a video standard.
Can I set the video standard with out calling the
capDlgVideoSource(m_hWndVideo); ?
Please find my source code below .
HWND m_hWndVideo ;
CAPDRIVERCAPS m_VideoDeviceCaps;
m_hWndVideo = capCreateCaptureWindow(
"Video" , // window name if pop-up
WS_CHILD | WS_VISIBLE, // window style
0, 0, 160, 120, // window position and dimensions
*this,
0 );
if (m_hWndVideo == NULL)
{
return false;
}
BOOL fRet = capDriverConnect(m_hWndVideo, 0);
fRet = capDriverGetCaps( m_hWndVideo, &m_VideoDeviceCaps,
sizeof(m_VideoDeviceCaps)) ;
CAPSTATUS capstatus;
fRet = capGetStatus( m_hWndVideo, &capstatus, sizeof(capstatus));
fRet = capPreviewScale( m_hWndVideo, TRUE ); // allow this to stretch ?
fRet = capPreviewRate( m_hWndVideo, 250); // frame rate in MS
fRet = capPreview(m_hWndVideo, TRUE );
Pls help me.
It is blocking my progress.
Regards,
Balupu
.
- References:
- How to capture a PAL video?
- From: kavitabalupu
- How to capture a PAL video?
- Prev by Date: How to capture a PAL video?
- Next by Date: Forcing VC8 runtimes to be used by third party DLLs
- Previous by thread: How to capture a PAL video?
- Next by thread: Forcing VC8 runtimes to be used by third party DLLs
- Index(es):
Relevant Pages
|