directshow

WPF Control issues

Hi I am facing one issue in which WPF application unable to update the progress bar even the button on the wpf window stop glowing untill i move the window then everything is fine. I have try to call InvalidateRect everytime i update the progress bar which actually generate the WM_PAINT message but doesn't solve the issue. This issue i...

[.NET] Configure LAME MP3 encoder in DirectShow application using IAudioEncoderProperties

Hi, I'm writting a .NET DirectShow application which captures audio stream from any capture device, encodes it in mp3 using the LAME directshow filter and finally writes the stream into a file. This is my directshow graph: capture source -> LAME AUDIO ENCODER (Audio compressor) -> WAV DEST (Wave muxer, compiled from SDK sourcres) -> Fil...

DirectShow ISampleGrabber which accepts VIDEOINFOHEADER2

As stated in http://msdn.microsoft.com/en-us/library/dd377544(VS.85).aspx, ISampleGrabber accepts only videos with VIDEOINFOHEADER structure, but not VIDEOINFOHEADER2. Is there any alternative to ISampleGrabber, or any example code for a filter that would do similar job? I have tried with IBasicVide, but it renders video on the screen wh...

Real-time video encoding in DirectShow

Hello, I have developed a Windows application that captures video from an external device using DirectShow. The image resolution is 640x480 and the videos saved without compression have very huge sizes (approx. 27MB per second). My goal is to reduce this size as much as possible, so I am looking for an encoder which will allow me to co...

Using DirectShow API from Silverlight

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

Clipped video not being played in Windows media player

Hi , I built a graph to clip a video in .avi format into smaller (duration) videos by using imediaseeking filter and setting start and stop times.Now the problem is that when I play the videos with Windows media player only the first one plays correctly( one that starts at time 0) whereas others do not open.It says- "Windows Media Pl...

How to split audio or write demuxer filter in directshow?

I need to split a PCM audio stream with up to 16 channels into several stereo streams. As I haven't found anything capable of doing that, I'm trying to write my first directshow filter. Anything capable of splitting the audio would be very welcomed but I'm assuming that I must do it so there's what I've done: At first, I tried to creat...

Receive method on the input pin of directshow transform filter doesn't get called

I have my transform filter connected in the filter graph, but receive method of transform filter doesn't get called and there are no media samples arriving into my filter. What can be the cause of this strange behavior? ...

Windows Mobile 6.5 Change the camera focus.

I have a project to scan some QR-code or bar-code with camera on windows mobile. (phone x01t) Programing in C++ and using DirectShow. Tired to change focus with IAMCameraControl interface, but return the error like "...request is not supported". Are there any way else? Thanks ...

Programmatically get video duration

Hi I'd need to get the video duration of a mp4 video (video format AVC) I'm using DirectShowLib 2.1 I downloaded a couple of codecs but I'm still getting code -2147220891 (an error code that I don't know what it means) doing graphBuilder.RenderFile(filePath, null); Any idea how to get the duration of this kind of video? ...

DSJ Equivalent of fakesrc in GStreamer?

For the program I'm making with DSJ (DirectShow-Java) it searches for a specific source to display. If it can't find that source I'd like it to display basically the same thing you get from fakesrc in GStreamer (the colored TV bars) or something to that extent. Does anyone know if DSJ has something like this, a certain filter graph or so...

DirectShow DVD manipulation and capturing.

Hi, I am new to DirectShow. My intention was to develope a small application (C#) that handles video processing. The main tasks i need are : 1 - Display video content from a DVD. 2 - Navigate to specific points of time in the video. 3 - Capture specific frames into still images and save them to files. Sounded easy at first, but aft...

DirectShow integrated webcam exposure control

Hi, I'm trying to control the exposure settings in a laptop integrated webcam. I can't control it programatically through DirectShow - IAMCameraControl interface returns E_PROP_ID_UNSUPPORTED when I call it with CameraControl_Exposure as the CameraControlProperty. I've successfully changed the exposure settings in different capture d...

Does anyone know a good DVD manipulation component that i can download or buy ?

Hi, We are trying to develope a small C# application to load a DVD (VOB), display it and capture some frames. This application is going to be comercial so I am looking for a component (DLL maybe) that we can buy and use to A. play the DVD, B. Jump to specific times in the DVD and C. Capture frames. This is really urgent, so any help w...

DirectShow.NETCF & HD2

Hi, The getMediaTypes() of the DirectShowNETCF.Camera.Camera() return no data on an HTC HD2. As someone any idea of the reason ? Regards Stéphane ...

Under which license are DirectShow Samples and Base Classes distributed?

Under which specific license are the DirectShow samples and Base Classes from the DirectX 9.0c SDK distributed? I have searched throughout the SDK deliverable and cannot figure this out. I know that I am free to use the samples and base classes, however, the more legalistic minded folks in my organization need to know the specific lice...

DirectShow filter stalls after the unplug and reconnect of the USB camera

I'm developing a program which should be capable to handle the re-attach of the USB camera. Sounds easy. At startup I iterate the filters looking for given VID and PID by parsing the display name. Then I create the graph and everything works fine. If the camera is being unplugged I catch the graph event, destroy the graph and even releas...

Microsoft DTV-DVD Video Decoder doesn't send samples

When I connect Microsoft DTV-DVD Video decoder to my transform filter, it doesn't send media samples. It looks like it only sends samples when renderer is connected to it. Is there anything that my transform should satisfy in order to be connected to MS DTV-DVD video decoder (related to DXVA or something like that). This happens only wi...

DirectX captured image is a little darker, how to adjust it ?

I use this project to capture frame from a video. http://www.codeproject.com/KB/directx/DirXVidStrm.aspx But when I captured a image from the video, It seems that it's more darker than the video, How can I make them the same ? ...

directshow video source filter: couldn't bind moniker to filter object (0x800401f9)

I compiled an (existing [1]) directshow source filter, then plugged it into VLC to use it and get this: dshow error: couldn't bind moniker to filter object (0x800401f9) dshow error: can't use device: Virtual Cam, unsupported device type compiled using visual studio 2010 express + windows SDK 7.1 any ideas out there? -r code at: htt...