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

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

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…
Haxed
  • 2,887
  • 14
  • 47
  • 73
2
votes
1 answer

Changing sampled video size

I am capturing a video using DirectShow Library (.NET), I have an analog device that outputs video through BNC, I connected it to a FrameGrabber hardware (http://www.videohome.com.tw/eng/products-detail.php?p_id=72&level1_id=18) connecting through…
user2012707
  • 51
  • 1
  • 4
2
votes
0 answers

Detecting usb camera disconnection

I am have used Aforge, emgu and Direct.Net to display image stream from a connected USB camera. What I am having issues with is that if the usb has been unplugged (etc) and then reconnected the stream does not resume. So, I assume I will have to…
Andrew Simpson
  • 6,883
  • 11
  • 79
  • 179
2
votes
1 answer

DirectShow(.net) h264 Encoder/decoder

In my project I have to follow this work flow I have to take the image captured by a webcam and preview it in the background encode it using H264 save it on desk decode the saved file to play it back. I have used Direct Show .net to implement this…
tulipe
  • 676
  • 2
  • 8
  • 22
2
votes
1 answer

DirectShow.Net interfaces issue in F#

So I was looking at this example code for DirectShow.Net, specifically their PlayCap example under the Capture folder example. You can download the samples here Its in C#. It does some interesting things with casting objects to interfaces. When I…
Alexander Ryan Baggett
  • 2,347
  • 4
  • 34
  • 61
2
votes
1 answer

how to use x264 encoder with directshow

i can't figure out how to use x264 with directshow. i installed many thinks that pretend to have x264 encoder in with no use i downloaded the videoLAN x264 binary and when i run it, it shows so fast a console windows, and nothing happen after that …
habibhassani
  • 486
  • 1
  • 6
  • 15
2
votes
1 answer

How do I implement ISpecifyPropertyPages in C#

I'm trying to add a few custom tab pages to the property pages of a DirectShow filter (which I displayed using OleCreatePropertyFrame). Is implementing ISpecifyPropertyPages the correct way to do this? If so, how do I do this in C#? Namely, what do…
Zach Saw
  • 4,308
  • 3
  • 33
  • 49
2
votes
1 answer

DirectShow ISampleGrabber.SetCallback throws InvalidCastException after showing a C# MessageBox

I am using DirectShow's SampleGrabber to capture an image from a webcam video. Codes are writing in C# and use .NET wrappers of DirectShow's interfaces to do COM communication. The following BufferCB, first, copies image data to a local array…
Jupiterv
  • 21
  • 1
2
votes
0 answers

Slimdx texture from webcam capture using Directshow.NET, mismatch in image formats?

This is my first question on stackoverflow. Im using Directshow.NET to capture a webcam and then render it using SlimDX. Though I cant get the texture to render correctly. This is what I get if I copy the data from the webcam to a bitmap and set it…
2
votes
1 answer

How to match WebCamera's audio source (microphone) to it's video source when using DirectShow.NET?

I have several web cameras being attached to my PC. Each camera has a built-in microphone. I use the DirectShow.NET library to enumerate audio and video sources: var audioDevices =…
paft
  • 121
  • 2
  • 8
2
votes
1 answer

Create DirectShow graph in thread

I have a graph which takes long to create and get ready (5-10 sec). To aviod freezing, I decided to create my graph in thread but something weird happens. After I run my graph, while debugging; when I'm in the thread I can see video in my window.…
Malik Çelik
  • 302
  • 1
  • 13
2
votes
2 answers

Determine length of audio file using DirectShow

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?
Judah Gabriel Himango
  • 58,906
  • 38
  • 158
  • 212
2
votes
0 answers

working graph in GraphEdit doesn't work in my app

I have a composite-to-USB Video Capture Source and I want to render & save video. I created the graph using GraphEdit. I can see live video and save MPEG video successfully. But when I want to create exact graph in my code, I get "There is no common…
Malik Çelik
  • 302
  • 1
  • 13
2
votes
2 answers

Adjust webcam brightness (exposure/gain) C#

I'm trying to adjust the brightness of my webcam. I need 3 diffrent pictures taken with a diffrent brightness setting. I don't want to make it manual so if want to include the settings in the programm. Below ist the code I'm using. With the methode…
user3077796
  • 192
  • 1
  • 19
2
votes
3 answers

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…
Max Schmeling
  • 12,363
  • 14
  • 66
  • 109