directshow.net

Preview a camera in DirectShow and capture a still image - in VB.net

我只是一个虾纸丫 提交于 2019-11-30 16:14:46
I am trying to write a program in Visual Studio 2008 that will access a webcam, show a preview on the screen and then save a still snapshot (.jpg) when the button is pushed. Later I am going to integrate it with a database, but I shouldn't have a problem with that part. After doing some research, it looks like DirectShow is the best bet, because WIA didn't work on the camera I had (and I'm not sure it will continue to work into the future). Preferably, I need my solution to work from Windows XP to Windows 7. I have never used DirectShow (or similar) before. One problem I am running into is

How to access an audio stream using DirectShow.NET C#

我的未来我决定 提交于 2019-11-30 10:12:36
What I would like to do is to pass an arbitrary audio file to a DirectShow filtergraph and receive a (PCM audio) stream object in the end using .NET 3.5 C# and DirectShow.NET. I would like to reach the point that I can just say: Stream OpenFile(string filename) {...} and stream.Read(...) I have been reading up on DirectShow for a couple of days and think I have started to grasp the idea of filters and filtergraphs. I found examples ( to file / to device ) how to play audio or write it to a file, but cannot seem to find the solution for a Stream object. Is this even possible? Could you point me

How to create audio spectrum in c#

Deadly 提交于 2019-11-30 04:33:33
I want to make an audio player in c# with signal spectrum. I saw some examples in the net about how to make the player but cant find example about the spectrum. Anyone can give me a direction please? http://www.codeproject.com/KB/directx/directshowmediaplayer.aspx http://www.codeproject.com/KB/directx/directshownet.aspx?fid=4377&select=2579548&fr=1#xx0xx There's a CodeProject article that shows how to create a visualizer. If you want to perform more advanced actions, you can look at libraries such as FMOD and BASS . They can both pretty much display spectrums with a few lines of code. However,

Preview a camera in DirectShow and capture a still image - in VB.net

我是研究僧i 提交于 2019-11-29 23:24:20
问题 I am trying to write a program in Visual Studio 2008 that will access a webcam, show a preview on the screen and then save a still snapshot (.jpg) when the button is pushed. Later I am going to integrate it with a database, but I shouldn't have a problem with that part. After doing some research, it looks like DirectShow is the best bet, because WIA didn't work on the camera I had (and I'm not sure it will continue to work into the future). Preferably, I need my solution to work from Windows

How to access an audio stream using DirectShow.NET C#

末鹿安然 提交于 2019-11-29 15:19:48
问题 What I would like to do is to pass an arbitrary audio file to a DirectShow filtergraph and receive a (PCM audio) stream object in the end using .NET 3.5 C# and DirectShow.NET. I would like to reach the point that I can just say: Stream OpenFile(string filename) {...} and stream.Read(...) I have been reading up on DirectShow for a couple of days and think I have started to grasp the idea of filters and filtergraphs. I found examples (to file / to device) how to play audio or write it to a file

How to create audio spectrum in c#

▼魔方 西西 提交于 2019-11-29 01:58:02
问题 I want to make an audio player in c# with signal spectrum. I saw some examples in the net about how to make the player but cant find example about the spectrum. Anyone can give me a direction please? http://www.codeproject.com/KB/directx/directshowmediaplayer.aspx http://www.codeproject.com/KB/directx/directshownet.aspx?fid=4377&select=2579548&fr=1#xx0xx 回答1: There's a CodeProject article that shows how to create a visualizer. If you want to perform more advanced actions, you can look at

Black video using multiple instances VMR 9

此生再无相见时 提交于 2019-11-28 14:27:12
I am working on creating a video wall like application. The application creates multiple windows to display video and each window has its own filter graph. In a typical configuration, these windows would be spread over two displays for a total of 12 windows. But the problem is whenever I try to run the application, a few of the windows display black video. There are no crashes and each graph is rendered correctly without throwing any errors. The windows displaying the black video are random. I have tested this on two different graphics card with similar results. Can someone please help

GMFBridge usage in DirectShow

馋奶兔 提交于 2019-11-28 12:54:48
enter code here I have to stop and start Video Renderer Filter dynamically . That is not possible with "normal" Direct Show Architecture without creating new graph. But with GMFBridge it seems it is possible. But i can not figure out how to use it.( yes i read the paper at http://www.gdcl.co.uk/gmfbridge/index.htm ) My Graph is: SourceFilter ---> MyCustomTransformFilter ---> Video Rendrer Filter So GMFBridge fits where? i) I can devide my graph two pieces [ Source Filter + MyCustomFilter ] + Video Rendere ii) Then how to add my filters to graph, and stop start Video Rendrere without affecting

DirectShow Record Problem - fps

北城余情 提交于 2019-11-28 11:45:56
I just create simple graph to record video from a source Filter: SourceFilter ---> Muxer ---> FileWriter I can able to save video which come from SourceFilter to my local disk. But when i try to play the recorded video, it play in "slow motion" :-). It is sure that there is fps (frame persecond) problem. How can i fix it? any ideas? PS: To check if my SourceFilter give righ fps i simply create another graph: SourceFilter ---> Video Decoder ---> Video Renderer and it plays at right speed (fps) More Details: SourceFilter(*.mp4 file format) ---> Avi Mux Filter ---> File writer Filter This record

Can't make IAMStreamConfig.SetFormat() to work with LifeCam Studio

穿精又带淫゛_ 提交于 2019-11-28 11:30:39
I'm brand new to DirectShow and am working on adding a video stream to my application. I've looked into many solutions out there (TouchLess, DirectShow.net, etc.) and ended up going with this small project on Code Project There isn't much to it, which is why I selected it; I wanted a small code base to work with, as I need to get this feature implemented quickly. After a solid day of reading, experimenting and debugging I finally have everything working nicely. There is a delay which is a bummer but I can worry about that later. The issue I have at this point is that the camera is capable of