|
HI,
I need help with my errors:
--------------------Configuration: LiveVideo - Win32 Debug--------------------
Linking...
LiveVideoDlg.obj : error LNK2001: unresolved external symbol "protected: void __thiscall CLiveVideoDlg::OnRadio4(void)" (?OnRadio4@CLiveVideoDlg@@IAEXXZ)
Debug/LiveVideo.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
LiveVideo.exe - 2 error(s), 0 warning(s)
|
|
|
|
|
Can u please tell me that where u able to compile the interface successfully. because I am getting
ICaptureGraphBuilder2 undeclared identifier
Can u help me in this
S.Yamini
|
|
|
|
|
Hi all,
I am trying to modify the sample code to grab a frame to keep it in memory but I have no idea how to do that. I tried to use ISampleGrabber but that does not work because it is not supported in direct3D > 7 any more (including Qedit.h gives tons of errors). I am using DirectX9.0c and VC++8.
Any suggestions?
Markus
|
|
|
|
|
after i try to capture my Webcam, I have following error messege:
"Couldn´t bind moniker to filter object! hr=0x80004005"
Wjho can help me?
|
|
|
|
|
Doesn't work with cards with 4 ports on one chip.
|
|
|
|
|
Well there is a problem in using CCaptureVideo with other USB video capture devices (not a webcam). F.e. it doesn't work with analog video signal (from video camera) which is converted to USB with the help of D-Link USB Converter (DUB-AV200).
Probably the error is with VFW or WDM driver model...
hr = pDevEnum->CreateClassEnumerator(CLSID_VideoInputDeviceCategory,&pEnum,0);
CLSID_VideoInputDeviceCategory = {CLSID_VFW Capture Class Manager}
Maybe instead of "CLSID_VideoInputDeviceCategory" use "AM_KSCATEGORY_CAPTURE"
Does anybody deal with such a problem ?
|
|
|
|
|
Hello,
i want to grab bitmaps from the live video. What is the easiest way to do that? I read about VMR9 which is able to do that. But i don't know how to modify the existing graph and remove overlay mixer and video renderer and replace it with VMR. Can anyone help me please?
best regards,
Thomas
|
|
|
|
|
I have the same problem, did u solve it? If yes, could you email me please with any info on this subject. Thanks. GREG.
kalenkov@mail.ru
|
|
|
|
|
i solved it by using CNCVideoInput library and adjusting it to my needs
|
|
|
|
|
Thnaks a lot, I'll try it!
By the way, since you are in this topic for some time, if it won't take long, can u give some explaination or link on a following subject:
1. If a camera ( web cam ) is set to 24fps, but works ( i think ) a bit slower, how can I find out if a new frame is captured? In other words, what are the methods to synchronize nominated and physical rates of capturing?
2. anything about RAW fromat capture.
Any how, thanks a lot again.
GREG.
-- modified at 12:12 Wednesday 7th December, 2005
|
|
|
|
|
hi i compile the program and well but when pop the dialog appear a message the error equal to this
Filed in AddSourceFilterForMoniker()! hr=0x80040275
sombody help me please
thank you if you answer me
i dont care of the trobble
|
|
|
|
|
This is VFW_E_NO_CAPTURE_HARDWARE. I assume your webcam is normally working. Have you ever used another webcam in your system? It may be a problem with another capture drivers that were not uninstalled properly. Check carefully strMonikerName that you pass to AddSourceFilterForMoniker - it probably points to a device that is already unplugged.
Jarek
|
|
|
|
|
Whenever I disconnect and reconnect the filters, the handle count increases more than previous. Is it a bug of directshow?
sunjiang
|
|
|
|
|
Sorry if this question is silly.
But i noticed the captured video is in a the default camera resolution, is there anyway to change it?
Guess it's possible to set video capture pin like AMCAP, but how?
|
|
|
|
|
Sorry, I am a beginner of using DirectShow. Maybe my question is very silly.
I would like to ask about the video compression.
In your program, do you apply any video compression method?
If no, is it just captured the video from a web camera by the video card?
If yes, which part of the source code does it indicate the compression method?
THANK YOU!!!
|
|
|
|
|
While compiling the source codes an error comes , it calls for the dshow.h header file which is absent in the zip. where can I get it.
bhanu
|
|
|
|
|
Have you installed DirectX SDK? If not, download it from Microsoft , which is freely available. Set the include path in Visual Studio and run it.
Hope, this helps..
GOOD DAY.!
DK
|
|
|
|
|
In VC6
Click Tools\Options\Directories tab
& then add the Include files as:
C:\Program Files\Microsoft DirectX 9.0 SDK (December 2004)\Include
Dillian
|
|
|
|
|
Could someone explain me how to:
"Create an Object of the class “CCaptureVideo” using Class wizard."
Thanks
|
|
|
|
|
when i was running a program using dshow.h , an error in strmif.h (Generated IDL header file for streams interfaces) which is included in dshow.h occured saying missing semicolon at line 1024 , but i didn't find any error , i don't know what to do ? can any one send me a working strmif.h file ?
|
|
|
|
|
add these two line in header file
typedef long LONG_PTR;
typedef unsigned long DWORD_PTR;
Dillian
|
|
|
|
|
Does anyone know how to add the ISampleGrabber to this current example,
so that a single video frame can be grabbed?
There is a frame grabber example here... http://www.codeproject.com/audio/framegrabber.asp
but I cant seem to get the ISampleGrabber to work this this particualr example,
Thanks
|
|
|
|
|
Nevermind I figured it out,
but what I did not figure out yet, is how to change the video stream size so when I grab a snapshot of the video it is the size I want. ex 640 x 480.
|
|
|
|
|
I'm tring to save video in WMV format.
Adding this code
IFileSinkFilter *pSink = NULL;
IBaseFilter *pMux = NULL;
hr = m_pCaptureMoniker->SetOutputFileName(&MEDIASUBTYPE_Avi,L"C:\\Example.avi",&pMux,&pSink);
hr = m_pCaptureMoniker->RenderStream (&PIN_CATEGORY_CAPTURE, &MEDIATYPE_Video,pBaseFilter, NULL, pMux);
video stream is saved in Avi file, changing SetOutputFileName arguments in (&MEDIASUBTYPE_Asf,L"C:\\Example.wmv",&pAsfWriter,NULL);
the graph couldn't run
Please, could someone explain me why, or give me a way to save video to WMV file or better MPG file?
thanks
|
|
|
|
|
The easiest way to build this graph is by specifing MEDIASUBTYPE_Asf in the ICaptureGraphBuilder2::SetOutputFileName method:
IBaseFilter* pASFWriter = 0;
hr = pBuild->SetOutputFileName(
&MEDIASUBTYPE_Asf, // Create a Windows Media file.
L"C:\\VidCap.wmv", // File name.
&pASFWriter, // Receives a pointer to the filter.
NULL); // Receives an IFileSinkFilter interface pointer (optional).
The value MEDIASUBTYPE_Asf tells the Capture Graph Builder to use the WM ASF Writer filter as the file sink. The Capture Graph Builder creates the filter, adds it to the graph, and calls IFileSinkFilter::SetFileName to set the name of the output file. It returns a pointer to the filter as an outgoing parameter (pASFWriter in the previous example).
Use the IConfigAsfWriter interface on the WM ASF Writer to set the Windows Media profile. You must do this before you connect any pins on the WM ASF Writer.
IConfigAsfWriter *pConfig = 0;
hr = pASFWriter->QueryInterface(IID_IConfigAsfWriter, (void**)&pConfig);
if (SUCCEEDED(hr))
{
// Configure the ASF Writer filter.
pConfig->Release();
}
For more information about setting the profile, see Creating ASF Files in DirectShow.
Call ICaptureGraphBuilder2::RenderStream to connect the capture filter to the ASF Writer:
hr = pBuild->RenderStream(
&PIN_CATEGORY_CAPTURE, // Capture pin.
&MEDIATYPE_Video, // Video. Use MEDIATYPE_Audio for audio.
pCap, // Pointer to the capture filter.
0,
pASFWriter); // Pointer to the sink filter (ASF Writer).
Each input pin on the WM ASF Writer filter corresponds to a stream in the Windows Media profile. You must connect every pin, so that the file content matches the profile.
|
|
|
|