 |
|
|
 |
|
|
Hi I am trying to execute the Project i got the following Error
" A dynamic link library (DLL) initialization routine failed. (Exception from HRESULT: 0x8007045A) "
Error Line : videoDeviceFilter = (IBaseFilter) Marshal.BindToMoniker( VideoDevice.MonikerString );
MonikerString : " @device:sw:{860BB310-5D01-11D0-BD3B-00A0C911CE86}\{80FDF9B0-32FD-457b-8BE7-D367F3854959}" Name : "Google Camera Adapter 0"
Please help me to solve this. I am using windows XP, Visual studio 2005 {.NET Framework 2.0}
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I m using DirectX.Capture.
First time when I click on capture.start() it works fine. but next time when click on capture.start() I m getting "Error HRESULT E_FAIL has been returned from a call to a COM component." error
If anyone has any idea, tell me please
Thanks
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I'd like to be able to pause the video capture from time to time. In particular, I want to pause it when a user clicks a button and I start processing an image captured from the video stream. I do this because the video capture takes up CPU time and i want to free up those cycles. Note that I want to actually stop the capture, not just stop displaying the image.
When I use capture.Stop(), it seems to do the right thing but when I try to start it up again with capture.Start(), it crashes. Anyone else get this behavior?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I read the article explaining how samplegrabber works. Yet it still doesn't work.
I declared and initialized a Capture object. (In class Program)
static public Capture videodevice1 = new Capture(filters.VideoInputDevices[0], null, false);
I setted properties of the capture object
Program.videodevice1.FrameRate = 30; Program.videodevice1.FrameSize = new Size(320, 240); etc...
I turned on preview of this Capture Object (Successfully showing preview)
Program.videodevice1.PreviewWindow = pnlvideodevice1;
Set AllowSampleGrabber true (Because on default it's false) I initialized the FrameEvent2. But it doesn't work, what am I missing?
private void button1_Click(object sender, EventArgs e) { Program.videodevice1.AllowSampleGrabber = true; Program.videodevice1.FrameEvent2 += new Capture.HeFrame(CaptureDone); Program.videodevice1.GrapImg(); }
private void CaptureDone(Bitmap bmp) { pictureBox1.Image = bmp; }
I am working on a project for a Revitalization/Rehabilitation Center. My project requires two cameras to capture data from two different angles. These two datafiles need to be merged to one data file (splitscreen). This information will be used for analysis.
My problem is: Currently I use Start and Stop to capture data. And afterwards I merge those files. But when capturing data with different cameras, the captured data are not synchronous. Meaning one captures slower than the other camera. The methods Start/Stop depend on camera bitrate. And I have no idea how to control bitrate of a camera.
So that's one reason I want to use samplegrabber to grab images from both cameras. And safe it to one data file. So could anyone help/explain what I'm doing wrong or what I am missing?
Thanks in advance and kind regards,
Chi Wai
PS: I ran this project and the capture function doesn't work. I set a videodevice, turned on preview and tried to take a snapshot by pressing the button1. Nothing happend. What did I do wrong?
modified on Wednesday, September 17, 2008 7:07 AM
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi all,
Guys i am battling to get the vc++ version of DirectXCapture, I have been to the microsoft download web and i got nothing.If there's anyone with a copy of it, please email to me asap @ kpmwil003@uct.ac.za any suggestion of how to get this version would do, i have been trying to convert the vc# version to vc++, not working, please help.
Regards,
|
| Sign In·View Thread·PermaLink | 3.50/5 (2 votes) |
|
|
|
 |
|
|
Hello hpAng,
Good Day...
with regards to your program how to control the color adjustment like sharpness, blur, contrast and brightness of the captured image of the other stream?
thanks, reno
|
| Sign In·View Thread·PermaLink | 1.00/5 (2 votes) |
|
|
|
 |
|
|
Hello All
I'm using a logitech fusion web cam but it's not always detected the same on different PC. I would like to set a default option instead of having to select device manually. Does anybody know of a good method to accomplish this task?
Thanks
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
I want to use DirectShow as Web Applictaion to capture images. Please direct me to appropriate example where Directshow is used as Web Applicatin example and not as windows forms.
Thanks Menaka
menaka.ca
|
| Sign In·View Thread·PermaLink | 1.00/5 (3 votes) |
|
|
|
 |
|
|
Hi,
I always receive a lot of error messages when trying to run the code. It looks lite this:
Error 1 The type or namespace name 'DShowNET' could not be found (are you missing a using directive or an assembly reference?) ------------ DirectX.Capture
I'm not very familiar with Visual Studio yet, but I think that there are Problem with the References to the other directories. When I display the references in the Solution Explorer there are Warning signs at the DirectX.Capture and DShowNET
I don't know how to solve this problem, please help me.
|
| Sign In·View Thread·PermaLink | 2.67/5 (3 votes) |
|
|
|
 |
|
|
hi, first of all, I have to say this is really a great job! thanx for you contribution.
I have a quesiton, is it possible to write a managed C++ (Visual C++/CLI .NET) program to call DirectX.Capture library? I was fail to to this, It seems like C++ can see, but cant access some protected members of class Capture.
|
| Sign In·View Thread·PermaLink | 1.00/5 (2 votes) |
|
|
|
 |
|
|
First of all, thank you for your article and sources - this is great. Now, let me ask you a question:
The frame capture to bitmap(jpg) works great. The only problem that I have is when the scene is changed very fast (fast motion) the pictures are interlaced. In debug mode I see in the getStreamConfigSetting that the mediaType.formatType is FormatType.VideoInfo. As it written in MSDN that in case of VideoInfo(VIDEOINFOHEADER) this is a progressive video.
Do you know why it happens and how to deinterlace.
Thanks again.
Roland
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
I've proved this code but in the machine when i am doing this, is not installed the audio driver. Ther is any way to make this program star without a audio driver
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
while I preview the stream video when I change the video source, the project give an error which state that :
Unable to set video source,Please submit bug report Error HRESULT E_FAIL has been returned from acall to a com component System.Runtime.Interopservices.ComExeption (0x80004500)HRESULT E_FAIL has been returned from acall to a com component
How can I over come that
|
| Sign In·View Thread·PermaLink | 1.50/5 (2 votes) |
|
|
|
 |
|
|
Replace the following code in removeDownStream function inside Capture.cs file
if ((info.filter != videoCompressorFilter) && (info.filter != audioCompressorFilter)) graphBuilder.RemoveFilter(info.filter);
with
if ((info.filter != videoCompressorFilter) && (info.filter != audioCompressorFilter)&& (info.filter!=baseGrabFlt) ) graphBuilder.RemoveFilter(info.filter);
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
I have to generate a Thumbnail from a VideoFile.
At this moment im getting the first frame of the video, but I want to get the frame in the middle of the video.
Any tip?
Tks Rodrigo Zaratin
|
| Sign In·View Thread·PermaLink | 3.00/5 (2 votes) |
|
|
|
 |
|
|
First i´d like to say thids a great project, it works just as expected, but i have an issue to discuss: on windows movie maker and adobe premiere i can capture both audio and video from my firewire dvcam, how can i perform this task using directx.capture? so far i can only capture video from the camera, the audio must come from the sound card.
Thanks in advance for any information.
|
| Sign In·View Thread·PermaLink | 1.67/5 (3 votes) |
|
|
|
 |
|
|
I am currently working on a project where i need to extract a frame from the running video(avi) file. As of now i have been able to grab the frames from the original video.This was done with the MFC template on VC++.NET. now i need to be able to click on the running video and extract the frame and corresponding pixel coordinates for that click event.
DhaRani
|
| Sign In·View Thread·PermaLink | 2.67/5 (3 votes) |
|
|
|
 |
|
|
I am currently working on a project where i need to extract a frame from the running video(avi) file.As of now i have been able to grab the frames from the original video.This was done on VC++.NET usint the MFC template. now how do i play it in the picture box? Please help me...
DhaRani
-- modified at 3:44 Friday 13th April, 2007
|
| Sign In·View Thread·PermaLink | 1.00/5 (1 vote) |
|
|
|
 |
|
|
I am working with my FYP and need to take pictures with a webcam to capture projecting screen.
I wanna take the picture without displaying anymore forms, that means no need to display the preview of the webcam in a new form. I have tried to hide the form once it is loaded. However, it seems impossible to do that.
May I know is there any way to grap image in this way?
I hope someone can understand what I mean...
-- modified at 17:50 Saturday 24th March, 2007
|
| Sign In·View Thread·PermaLink | 5.00/5 (1 vote) |
|
|
|
 |
|
|
private void button1_Click(object sender, System.EventArgs e) { capture.FRAMEEVENT2 += new Capture.HEFRAMECaptureDone); capture.GRAPIMG(); } private void CaptureDone(System.Drawing.Bitmap e) { this.pictureBox.Image=e; }
(I type in caps the 3 words that have generated the errors) Error 1 'DirectX.Capture.Capture' doesn't contain a definition for 'FrameEvent2' Error 2 The name of type 'HeFrame' doesn't exist in type 'DirectX.Capture.Capture' Error 3 'DirectX.Capture.Capture' doesn't contain a definition for 'GrapImg'
How to risolve this problem?
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Very easy .. Remove your DirextX.Capture.dll at CaptureTest.. Later, add reference again DirextX.Capture.dll at CaptureTest
help
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi, I need to grab the image of two webcams at the same time. If I create two instances of the capture-class and want to preview them box in different panels, I get an error. Does somebody have an idea how to solve this problem?
hr = captureGraphBuilder.RenderStream( ref cat, ref med, videoDeviceFilter, baseGrabFlt, null); if( hr < 0 ) Marshal.ThrowExceptionForHR( hr );
for the secound instance "hr" gets negative. -> Exception
Thx FLO
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
Hi,
It is not possible to obtain videos from two different webcams at the same time. Also it is not possible to obtain with different programs. When you tried to otain you will get an error message from windows (not from your program, or any other program) named with exceeded bandwith.Usb ports are not fast as much as two webcams unfortunately
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
|
I also in a need of sending a vedio file(MPEG4) from server to client application. that should play real time at client side .I am going to implement this by using C#. but I don't know how to do that. That mean how to divide the vedio(mpeg4) file into frames and send that frame to client in the server side and also how to play that in the client side.For that playing purpose I am going to use the directx.
Please please be kind enough to help me in any way any sort of help is highly appreciated.
i am in a hurry please help me
thanks madushan thilina
 madushant@gmail.com  madushant@yahoo.com
madushan thilina
|
| Sign In·View Thread·PermaLink | 2.17/5 (6 votes) |
|
|
|
 |