Questions tagged [directshow.net]

The purpose of this library is to allow access to Microsoft's DirectShow functionality from within .NET applications. This library supports both Visual Basic .NET and C#, and theoretically, should work with any .NET language.

The purpose of this library is to allow access to Microsoft's DirectShow functionality from within .NET applications. This library supports both Visual Basic .NET and C#, and theoretically, should work with any .NET language.

Microsoft's managed solution to allowing access to DirectShow from .NET isn’t nearly as complete as the DirectShow interfaces for C++. For developers who want the complete range of functionality of DirectShow in .NET, this library provides the enums, structs, and interface definitions to access them.

Reviewing the source code will show that there is very little executable code in this library. There are a few helper functions (mostly in DsUtils.cs), but everything else in the library is just definitions.

DirectShow.NET web site

419 questions
2
votes
1 answer

DirectShow.NET sample - load a better profile

I am running the CapWMV sample application of DirectShow.NET. It is loading a very low quality profile in Capture.cs: // Windows Media Video 8 for Dial-up Modem (No audio, 56 Kbps) // READ THE README for info about using guids Guid cat = new…
user182917
  • 1,688
  • 2
  • 14
  • 17
2
votes
1 answer

How to convert ISampleGrabber::BufferCB's buffer to a bitmap

I am trying to use the ISampleGrabberCB::BufferCB to convert the current frame to bitmap using the following code: int ISampleGrabberCB.BufferCB(double sampleTime, IntPtr buffer, int bufferLength) { try { Form1 form1…
legohead
  • 530
  • 2
  • 8
  • 23
2
votes
3 answers

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

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…
Jeremy Kropf
  • 45
  • 1
  • 1
  • 9
2
votes
1 answer

DirectShow - Microsoft LifeCam Studio - RBG24 format lost

I'm using DirectShowNet in C#. I've been developing an application to work with webcams to display video, change resolution, and take pictures (either Still pin or from the Capture stream). I've been testing it on 2 different machines (Win 7 64-bit…
Michael Yanni
  • 1,476
  • 4
  • 17
  • 29
2
votes
1 answer

How to combine two video files using directshow.net

I am newbie to c#. I have functionality of concatenating two or more video files using directshow.net. I have seen the documentation form http://msdn.microsoft.com/en-us/library/windows/desktop/dd375143(v=vs.85).aspx but i didn't understand how to…
Jonathan
  • 1,659
  • 8
  • 34
  • 54
2
votes
0 answers

DirectShow IBaseFilter EnumPins returns nothing

Using GraphEdit, I can add the filter to the editor and use it to render a video. When I create the instance via COM (using DirectShow.NET), the method EnumPins (followed by Next checks) returns no pins. Is there a reason why GraphEdit would show…
Paul Knopf
  • 9,568
  • 23
  • 77
  • 142
2
votes
3 answers

DirectShow: how to change filter properties?

I'm working on an application that helps users configure their TV tuner cards. Basically the user selects a device, and the application generates a graph file (.GRF) as output. However, there are a few settings the user should be able to change.…
Rudey
  • 4,717
  • 4
  • 42
  • 84
2
votes
1 answer

DirectShow Library-How to capture image using directshow library without showing the webcam live images on the PictureBox or Panel

I am using WPF application which is using DirectShow library and it is working fine for grabbing images or recording the live feed,but i wants that end user should not be able to see that any web cam is taking their picture i.e. i wants picture box…
user1301587
  • 455
  • 4
  • 11
  • 23
2
votes
1 answer

DirectShow - Capture Webcam While Viewing It?

I am trying to make a webcam application in c# that allows users to record video. I have been using DirectShow.Net to preview the webcam and to take snapshots. But need to be able to capture video and audio while previewing the webcam at the same…
2
votes
1 answer

Video Streaming and Recording st the same time Using Directshow.Net in c#?

i want to record video through webcam using Directshow.Net.i can able to record the video using ASFWriter but along with recording i want to stream the video to an PC in the LAN..i tried this.. i run project which i develop for recording the video…
Amogh
  • 4,453
  • 11
  • 45
  • 106
2
votes
1 answer

How can I get audio from AVISplitter output pin into a MemoryStream in C#?

I'm creating an application in C#,using DirectShow.NET for playing an .avi file. I need to create an audio waveform for the audio track/s present in the .avi file. How can I get the data from the output pin into a MemoryStream ? Or does any one…
CharlesBryan
  • 181
  • 1
  • 16
2
votes
1 answer

Failure to play MP3 file with COM exception in IGraphBuilder.RenderFile

I am new to direct show development. I am learning things about direct show. I am trying to write a method which plays some audio files. It works fine for many .mp3 files, but for some of my mp3 file the method RenderFile() of interface…
user786981
1
vote
1 answer

Clean up DirectShow Graph - DirectShow graph is not stopping

I use DirectShowNet and when my Graph is stopped I release com objects. The problem is that while I try to release COM objects [ filters, interface] ,sometimes this cleanup cause directshow graph not STOPPED.It "suspend". If I do not make clen…
Novalis
  • 2,265
  • 6
  • 39
  • 63
1
vote
0 answers

Can't Capture webcam video using WPFMediaKit

i have simple code to capture webcam video ans store it in file but it does nothing and didn't give me any error i use WPFMediaKit and this is my code IFilterGraph2 filterGraph; ICaptureGraphBuilder2 captureGraphBuilder; …
Ma7moud El-Naggar
  • 548
  • 1
  • 6
  • 18
1
vote
0 answers

Getting DVD chapter timings

I'm working on small DVD player (using DirectShow.Net), and require start time of a chapter with respect to it's title. I'm looking for a way to find out the start time of a chapter within a title. Or may be the duration of each chapter within a…
Trainee4Life
  • 2,203
  • 2
  • 22
  • 38