directshow.net

Stack Overflow on Marshal.PtrToStructure reading wmv files

Hi, I'm using a frame grabber class in order to capture and process each frame in a video. The class can be found here: http://www.codeproject.com/KB/graphics/FrameGrabber.aspx I'm having issues with running it, however. When loading the file, it attempts to marshal a video format pointer into a VideoInfoHeader (I'm using DirectShow.Net...

DirectShow.NET opening any file that Windows Media Player can open

Here is a code snippet from DirectShowNet library, used to open a video file: this.graphBuilder = (IGraphBuilder) new FilterGraph(); // Have the graph builder construct its the appropriate graph automatically hr = this.graphBuilder.RenderFile(filename, null); but the RenderFile method fails. At the same time, Windows Media Player open...

What DirectShow Interface to use for capturing to Stream instead of creating actual file?

I've got a DirectShow project where I want to capture and stream to a webserver. I have seen how to capture and create a file, but I'm looking for ideas on how to capture into something like a MemoryStream to transport through a NetworkStream. I'm also using the library DirectShowLib for the ability to write in C# if that makes any diffe...

directshow Renderstream fails with grayscale bitmaps

Hi all. I'm trying to create a directshow graph to playback a video composed of 8bit grayscale bitmaps. (using directshow.net.) I'm using a source filter and the vmr9 renderer. The source filter's output pin is defined using the following code : bmi.Size = Marshal.SizeOf(typeof(BitmapInfoHeader)); bmi.Width ...

How to draw on an unfilled box on a video stream using the mouse

Hi, I am using dshownet(first time) and C#. I have got a sample to take the web cam input and display it on a form. I now need to draw a rectangle on top of the video stream using the mouse. (the intent is to track what is inside the box from there onwards). I heard that there is something called VMR. So I went to the dshownet samples ...

Displaying video capture in a picturebox

Hi, I have compiled the sample PLayCap from the directshow.NET website in C#. PLayCap - This application creates a preview window for the first video capture device. Although the program works fine, i need to add buttons to the form. I cannot do that since, the video capture is displayed on the entire form. I want it to be displayed ...

Error_1_The name 'MainForm_ResizeMove' does not exist in the current context

Hi, I tried to recreate the BitmapMixer sample from Directshow.NET in VS 2010 (The original sample works fine) and got the following errors in the Form1.cs Error 1 The name 'MainForm_ResizeMove' does not exist in the current context C:\Documents and Settings\TLNA\my documents\visual studio 2010\Projects\mybitmapMixer\myBitmapMixe...

The name 'Marshal' does not exist in the current context

I got the code below from the bitmapmixer sample (DirectShow.NET) and i tried to reimplement it. The original sample works fine. In my version when I try to compile i get errors. private void AddHandlers() { // Add handlers for VMR purpose this.Paint += new PaintEventHandler(Form1_Paint); // for WM_PAINT this...

Using DirectShow API from Silverlight

We would like to leverage the codec capabilities of DirectShow from Silverlight. Is this possible? ...

How to create a compressed AVI in C# / how to use GSSF from directshow.net with a compressor

I need to create a video files (without audio) from in memory bitmap data. I tried to modify the GSSF example from directshow.net and combine it with DxPropPages example. None of the many ways I tried to create a graph works. Without setting a compressor, everything is fine. With a compressor (I tested several different ones, ffdshow try...

How to find duration of an uploaded mp4 or f4v video?

I've tried using directshowlib-2005 by installing k-lite mega codec pack. It can't find the duration of an mp4 file or f4v file (avi, wmv and flv has no problem). I use ImediaSeeking interface of directshowlib-2005 to find duration. But in case of mp4 and f4v the GetDuration method returns zero. I know it is a codec problem, but I do n...

How to create a graph in order to parse an mp4 file to get the duration?

I am trying to find duration of an mp4 file using direct show component of windows using the Dotnet wrapper(directShow-lib 2005). But the method i used was GetDuration of IMediaSeeking interface. But this returns zero as duration. After searching i found the following statement: "It doesn't matter whether it's in a container or not, it...