directshow

How can I reverse engineer a DirectShow graph?

I have a DirectShow graph to render MPEG2/4 movies from a network stream. When I assemble the graph by connecting the pins manually it doesn't render. But when I call Render on the GraphBuilder it renders fine. Obviously there is some setup step that I'm not performing on some filter in the graph that GraphBuilder is performing. Is t...

Best way to enumerate all available video codecs on Windows?

I'm looking for a good way to enumerate all the Video codecs on a Windows XP/Vista machine. I need present the user with a set of video codecs, including the compressors and decompressors. The output would look something like Available Decoders DiVX Version 6.0 XVID Motion JPEG CompanyX's MPEG-2 Decoder Windows Media Video **Availab...

How to capture PCM data from Wave Out

Hello, How would it be possible to capture the audio programmatically? I am implementing an application that streams in real time the desktop on the network. The video part is finished. I need to implement the audio part. I need a way to get PCM data from the sound card to feed to my encoder (implemented using Windows Media Format). I...

Individual DirecShow merit on audio renders

My computer has two external audiocards and one in the motherboard with windows vista. In Vista it sees two entities for the same soundcard, a digital- and a analog output. When i try to play an videofile with digital audio, say an dvd, it chooses 'Default DirectSound' whereas i want it to use 'Digital Output Auzentech'. So i thought e...

Automatic YUV -> RGB in DirectShow for custom decoder

Hello everybody, after hours of searching on the net I'm quite desperate to find solution for this. I've up & running OGG Theora decoder in DirectShow which ouputs YV12 and YUY2 color models. Now, I want to make a RGB pixel manipulation filter for this output and to process it into video renderer. According to http://msdn.microsoft.com/...

How can I create a video from a directory of images in C#?

I have a directory of bitmaps that are all of the same dimension. I would like to convert these bitmaps into a video file. I don't care if the video file (codec) is wmv or avi. My only requirement is that I specify the frame rate. This does not need to be cross platform, Windows (Vista and XP) only. I have read a few things about us...

How do I preview a Windows Media Encoder session in WPF?

This code works in a windows forms application (it shows the preview) but not in a WPF application. WMEncoder _encoder; WMEncDataView _preview; _encoder = new WMEncoder(); IWMEncSourceGroupCollection SrcGrpColl = _encoder.SourceGroupCollection; IWMEncSourceGroup2 sourceGroup = (IWMEncSourceGroup2)SrcGrpColl.Add("SG_1"); IWMEncVideoSour...

How can I make a control transparently overlay a DirectShow video?

I have a control, VideoControl, which displays video using DirectShow - it's set as the owner of an IVideoWindow. I have another control, AreaControl, which is supposed to show a dashed rectangle over the video control. AreaControl is set to be transparent using SetStyle(ControlStyles.SupportsTransparentBackColor, true). If I place Ar...

VMR9Allocator (DirectShow .NET + SlimDX)

I was trying to convert and run the VMR9Allocator sample for DirectShow .NET with SlimDX instead of MDX. I got an exception when it reach this line return vmrSurfaceAllocatorNotify.SetD3DDevice(unmanagedDevice, hMonitor) In the AdviseNotify method in Allocator.cs. The exception is "No such interface supported", and the hr return was ...

Standared WebCam interface for .NET besides DirectShow?

I want to be able to take still images with a web cam, via .NET 2.0 (or 3.5 if necessary). I know I can use DirectShow but that seems like a very large learning curve. Is there a simple to use OCX, or library that can work with most standard webcams? ...

eof detection for DirectShow

Is there a way to detect that a DirectShow filtergraph has reached the end of its file? By end of its file, I mean that a filtergraph with a SampleGrabber filter will never receive another SampleCB call. Here are some things that don't work: Trust IMediaDet::get_StreamLength (it's often says there are more frames in a video than real...

Pass texture using pointer across process

It's hard to put this into the title, so let me explain. I have an application that uses Direct3D to display some mesh and directshow(vmr9 + allocator) to play some video, and then send the video frame as texture to the Direct3D portion to be applied onto the mesh. The application needs to run 24/7. At least it's allowed to be restarted...

DirectShow, video zoom and image capture for Windows Mobile

Hi, I am currently developing an application for live video streaming (www.livecliq.net) and I would like to add the feature for image capture and video zoom. I've been looking around for the tutorials and resources about DirectShow but so far I have found only a book "Programming Microsoft DirectShow for Digital Video and Television" w...

Frame accurate synchronizing of subtitle files with MPEG video using DirectShow

This is a problem I have been dealing with for a while, and haven't been able to get a good answer (even from Microsoft). I'm using the generic dump filter to write hardware compressed MPEG files out to disk. In the graph, I also have a SampleGrabber filter that gets called on every frame. From the SampleGrabber callback, I get a subt...

HowTo Multicast a Stream Captured with DirectShow?

I have a requirement to build a very simple streaming server. It needs to be able to capture video from a device and then stream that video via multicast to several clients on a LAN. The capture part of this is pretty easy (in C#) thanks to a library someone wrote with DirectShow.Net (http://www.codeproject.com/KB/directx/directxcaptur...

Setting Zoom on Windows Mobile device with IAMCameraControl::Set()

Hi, I am developing an application for video capture and I would like to implement zoom functionality. Working with DirectShow I came across IAMCameraControlInterface. It has a method ::Set(), which should be used for setting several camera parameters. However I played around and I couldn't do anything with it. Then I tried to call ::...

Options for predictable frame capture in .NET application

I am working in C# and have the need to capture individual frames of video files. As quickly as possible (faster than real-time), I wish to seek to a specific frame number and capture every nth frame to a graphic file format such as BMP or JPEG. It is highly desired that the frame that is captured be predictable and repeatable, i.e. do...

DirectShow - How to overlay video with text

Hi, I am writing an application for Windows Mobile where I want to display some text over the video preview on the screen. Does anyone know how this could be done or if there's any good tutorial about it? Thanks! ...

Draw Text Over Video in Managed DirectX with C#

How can I draw text Over Video in Managed DirectX with C#? ...

DirectShow: Graph works in GraphEdit, not in code

I've built the following graph in GraphEdit: Logitech Webcam -> Infinite Tee Pin Filter -> VideoRenderer. This works fine (with GraphEdit automatically inserting a few intermediate filters between the TEe filter and the VideoRenderer filter). I've tried doing the same thing in code, and it fails when trying to connect the Tee filter to ...