directshow.net

DirectShow.NET BitmapMixer Sample Using Direct3D Surface

I am trying to modify the DirectShow.NET BitmapMixer sample app to use a surface that is rendered with Direct3D. Instead of creating a Surface based on a GDI rendered bitmap, I am creating my surface like this: surface = new Surface(device, new Bitmap(1024, 768, PixelFormat.Format32bppArgb), Pool.SystemMemory); sprite = new Sprite(dev...

C# + DirectShow.NET = Simple WebCam access?

I have found an example for accessing a webcam in C#. The example uses the DirectShow.NET library. I have tried to understand the code, but so far the only thing I could figure out is that somehow the usercontrol calls directshow to draw directly to the surface of the user control. I want to access each frame and put it into a Bitmap ob...

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

Hi, 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 f...

[C#] DirectShow.NET - webcam resolution property page

I'm using DirectShow.Net to access my webcam. I want to display a property page for my webcam to set video capture resolution and FPS rate. I try this by using a sample demo code from DirectShow.NET samples - DxPropPages. Here is the code. However second tab in property window is disabled. I need this tab to be enabled so user can set ...

Rendering a DirectShow.NET Graph

I just downloaded a trial version of the GraphEditPlus utlity at http://www.thedeemon.com/GraphEditPlus. It is able to export C# code and expects the DirectShow.NET library to be present. The trial version does not let you copy the exported code, but at least it shows you the code. So, I created a simple graph of an IP camera source...

Is IOverlay interface available in DirectShow.Net

Hi I am pretty new to DirectShow and really just feeling my way round at the moment. I am wanting to host the directshow renderer window of a directshow graph within a WPF app and am currently using the HwndHost class to try to achieve this. What I need though for HwndHost is a handle to the window which is rendering the video. I have f...

c# webcam controls?

please help me as fast as you can I am looking to put a camera on top of a my lab in the process of being built and stream it to a website. how can i be doing this with only c# ? how to get stream of video & send it live on server PC from there he can take instant photos? please help me urgently... ...

How to set brightness and contrast and saturation of video/Image in directx

I am playing video using custom allocator using directshow. I want to set brightness, contrast and saturation of a video. How can I do this? ...

directshow reverse playback

I currently have a DirectShow.NET graph that properly plays but I would like it to also be able to play in reverse (start at the end and play backwards to the start). I've tried playing around with the IMediaSeeking::SetRate(double) method but that only works for positive values. When I try with a negative value it crashes. Help! I...

DirectShow Editing Services 4GB memory limit under Windows 7 x64

I compiled XTLTest as 64 bit and attempted to test some XTLs under windows 7 x64. All these tests were done using an XTL with one clip from the WMV showcase, with a timeline sized at 1440x1080. buffering set to 300 - plays back fine. buffering set to 600 and got a cant run graph error. Recompiled with large memory aware (which should...

How to get video frame using DirectShow.net?

As part of a program I have to be able to pull a few random frames from a user specified video file. I do not have any experience with video processing programming, so this is new to me. I've determined that I need to use DirectShow.net to do this on Windows XP using .Net, but I cannot figure out how to get it done. I'm trying to use th...

File writer filter creating a bigger AVI file then original

I am using the SampleGrabber filter to get the frames of an AVI file and alter them before writing them to another (new) AVI file using the File writer filter. The problem that I am facing is that the new AVI file size is greater then the original file. I removed the SampleGrabber filter thinking that it might be my code causing the pro...

stop video preview using directshow in vc++

hai.. just i wrote application for show preview to user and capture image.am using sample grapher filter for capture image from CAPTURE PIN.PREVIEW PIN user for just preview video.its running nice but when i stop preview its affect the CAPTURE.cant capture image am using CONTROL STREAM for stop preview.. pl kindly help ...

Retrieving the COM class factory for component with CLSID {...} failed due to the following error: 80040154

I am using DirectShowLib and SampleGrabber to capture video frames of an AVI file. I am accomplishing this by using graph builder and couple of filters. Everything was working fine, I was able to initialize graph and filters. I then added code to get some video information like Dimension, Frame rate e.t.c. For this I used to IMediaDet. ...

How can i get Frame rate, Bitrate of any video file(wmv,mov,H.264,mp4)

i need to fetch the informations like frame per second, Bitrate for video file (wmv,mov,H.264,mp4) i m using IMediaDet for getting informations, it working fine for wmv, avi but not for mov and H264, and i am using ffddow codec for playing the mov and other file. Is there any other way to find these information using DirectShow or any o...

Determine length of audio file using DirectShow

Hi guys, I am just starting with DirectShow.NET, and I am trying to get the length (in seconds) of an audio file. The audio may be .mp3, .wav, .aac, or .m4a. Can I get this information using DirectShow, or do I need some other APIs? ...

Decompressing AVI file using DirectShow filters

I am trying to decompress an AVI file using DirectShow filters. Here is the graph I am building. File Reader -> AVI Splitter -> AVI decompressor -> SampleGrabber ->AVI Mux -> File Writer I am suing SampleGrabber to report progress of conversion, nothing else. The issue that I am having is that once the file is converted there is no ...

How to get IMediaControl.Run() to start a file playing with no delay

I am attempting to use DirectShow to play two AVI files consecutively (one after the other) so that there is no interruption in the audio or video when the player transitions from one file to the next. I have two custom controls on my form. Each one is pre-loaded with an AVI file, and before playback begins I set up all the DirectShow ...

How to keep Watermark in my video

HI, I want to keep watermark into my video. How can i implement it using Directshow. Is it possible to create a filter for this. i want to fix watermark at the time of saving video to my machine. PLease give some suggestion and help ...

Watermarking + Directshow filter

I want to put a watermark on my video. IS it possible to do with directshow filter. Want to overlap an image on video like channel logo. so that image will be fixed when video is playing. Please provide some valuable help or samples (VC++) ...