 |
|
 |
hi friends ,,
in this code filename is displaying as watermark but where code has been written for this a??? and there is also a problem in media player it is not displaying it but in vlc player watermark is displaying what is the reason ???
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
 |
First of all thanks a lot. It was really very helpful for me.
But, I have a problem=) And really hope somebody can help me.
I found one article that seems to be a bit newer (http://www.codeproject.com/KB/audio-video/videosav.aspx). This project allow to write video in wmv format. Unfortunantly I couldn't "merge" these 2 projects. I try to implement ISampleGrabberCB in Capture class as it is described here, but unfortunantly can't receive callback (ISampleGrabberCB.BufferCB), so I can't grab the image.
The other problem is that I need to make snapshot without preview starting. I need my app to be able to write video to file and make snapshot whenever I want, BUT without preview? Is it already possible?
And the last one=). Does somebody knows how to capture desktop as video from webcam. As I found it can be done using PushSource Desktop Filter. But I can't found any implementation of this functionality using C#.
Thanks.
|
| Sign In·View Thread·PermaLink | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
Hi Ang, Great job!!! I have finally completed my project based on your essential effort on the frame capturing features! it is really a High Speed Grabber.
|
| Sign In·View Thread·PermaLink | 2.00/5 (2 votes) |
|
|
|
 |
|
 |
Thank you for your work. I am trying to use it to capture several images from a webcam. I started with the example with GrapImg() and it works fine for one still image. However I cannot succed to use this function in a loop to shoot for instance every second. Is it possible to do several shoots ? Thanks for any suggestion.
Code for one image : using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using DirectX.Capture; using DShowNET;
namespace WindowsFormsApplication1 { public partial class Form1 : Form { private Capture capture = null; private Filters filters = new Filters(); public Form1() { InitializeComponent(); capture = new Capture(filters.VideoInputDevices[0], filters.AudioInputDevices[0]); capture.PreviewWindow = panel1; capture.FrameEvent2 += new Capture.HeFrame(CaptureDone); capture.GrapImg(); }
private void CaptureDone(System.Drawing.Bitmap e) { this.pictureBox1.Image = e; capture.FrameEvent2 -= new Capture.HeFrame(CaptureDone); }
} }
|
| Sign In·View Thread·PermaLink | 2.00/5 (2 votes) |
|
|
|
 |
|
 |
hi
take a look at c#'s function: timer ..
should look something like this:
here is your button where you want to preform a screenshot: private void btnScreenshot_Click(object sender, EventArgs e) { if (capture != null) { capture.FrameEvent2 += new Capture.HeFrame(CaptureDone); capture.GrapImg(); } }
you enable your timer, set the intervall (in millisec), then you add the tick event timer1.Enabled = true; timer1.Interval = 1000; timer1.Tick += new EventHandler(timer1_Tick); timer1.Start();
here your timer tick event )
private void timer1_Tick(object sender, EventArgs e) { btnScreenshot_Click(sender, e); }
this now should every second make a screenshot from your camera
|
| Sign In·View Thread·PermaLink | |
|
|
|
 |
|
|
 |
|
 |
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 | |
|
|
|
 |
|
|
 |
|
 |
This problem seems to be caused google video&audio plugin thingy. Uninstalled it, and the video stream seems to work again.
|
| 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 | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
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 | 2.00/5 (1 vote) |
|
|
|
 |
|
 |
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 | 2.25/5 (4 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 | 3.00/5 (2 votes) |
|
|
|
 |
|
 |
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.50/5 (4 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 | 2.33/5 (3 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.50/5 (4 votes) |
|
|
|
 |