directshow

Hardware accelerated video in DirectShow / WinForms

Currently prototyping a Windows .NET app that needs to play back high definition WMV and H264 video. My test files are full 1080p. The target hardware has weak Atom processors but strong NVidia 9400 graphics. I know the graphics are integrated but my understanding is that they are good for video playback. Testing on Windows 7, if I pla...

DirectShow - passing parameters to custom source push filter

Hello, I'm working on a solution that will be used to receive video stream from remote hosts and to put various texts on the top of it. Currently it consists of custom DirectShow push filter (C++) which receives data from remote hosts using RTP protocol and tiny C# application that sets up the DirectShow graph and is used as a container...

How to implement you own custom DirectShow renderer?

How to implement you own custom DirectShow renderer that could work a-la or instead of SampleGrabber? ...

DirectShow - how to debug pin connect failures

I'm using an IGraphBuilder to render a video capture device to the screen. The process involves adding the capture filter to the graph, then adding a VideoMixingRenderer to the graph (which uses a custom allocator) and finally calling graph.Render() to use Intelligent Connect to wire up the pins. Under some circumstances this works wel...

How to detect the device name for a capture device?

I am writing a GStreamer application (GStreamer uses DirectShow under the hood on Windows) that captures a computer's microphone and videocamera. It works fine, but requires me to specify the device names manually. I would like to have my program detect these automatically. Does anyone know how to do that? ...

How can i get Frame rate, Bitrate of any video file(wmv,mov,H.264,mp4)

i need to fetch the informations like frame per second, Bitrate for video file (wmv,mov,H.264,mp4) i m using IMediaDet for getting informations, it working fine for wmv, avi but not for mov and H264, and i am using ffddow codec for playing the mov and other file. Is there any other way to find these information using DirectShow or any o...

How Can I Clone a Camera Source DirectShow Filter?

I'm doing some stereoscopic work which means I have need to work with two instances of various filters (i.e. a camera source that receives an IP stream), and this is proving not to be trivial. I even tried copying the IPCamfilter.ax to IPCamfilter.ax and manually making new CLSID entries in the reg, and the clone shows up, but won't wor...

Determine length of audio file using DirectShow

Hi guys, 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? ...

Windows-Mobile Directshow: Specifying bitrate/quality of a WMV video capture

Hi- I'm stumped on this, and I'm really hoping someone could point me in the right direction. I'm currently capturing video in Windows Mobile and encoding it using the WMV 9 DMO (CLSID_CWMV9EncMediaObject). That all works well enough, but the output video's bitrate is too high, resulting in a video file that's much too large for my nee...

Writing custom DirectShow RTSP/RTP Source push filter - timestamping data coming from live sources

Hi there, I'm writing custom DirectShow source push filter which is supposed to receive RTP data from video server and push them to the renderer. I wrote a CVideoPushPin class which inherits from CSourceStream and CVideoReceiverThread class which is a wrapper for a thread that receive RTP packets from video server. The receiver thread ...

DirectShowNet and anoying screen

Hello everybody. I'm using DirectShowNet.dll to grab a photo of my web camera. Anytime my camera initializes it first shows me this screen. Where can I turn it off? http://www.goat-it.com/!tino/screen.jpg Thank you ...

Is it possible to write DirectShow filters in C# (not in c\c++)?

Is it possible to write DirectShow filters in C# (not in c\c++)? I mean not only to create source filters but renderers or compressors etc? ...

Drawing video with text on top

I am working on an application and I have a problem I just cant seem to find a solution for. The application is written in vc++. What I need to do is display a YUV video feed with text on top of it. Right now it works correctly by drawing the text in the OnPaint method using GDI and the video on a DirectDraw overlay. I need to get rid ...

ebook for directshow programming

hello i am developing image capture application using directshow.net library. i want to know that is there any ebook available for directshow programming? if available then please provide me the list of it. thanks & regards, rahul. ...

DirectShow+Uncompressed AVI

Hello I am trying to capture some stream from a device and save it to an uncompressed avi file. I am using C# + DirectShowLib, and the resulting file is always compressed(mjpeg or dv codec). Any ideas? ...

get video timecode using OpenCV?

Hi all, I'm looking for a way to read SMPTE timecode embedded in DV video stream captured from Firewire camera. Can this be done using OpenCV? If not, could you point me to a good sample source code that does this using DirectShow? Thank you, Ben ...

How to get device moniker with a known class id?

I am using a DirectShowLib which is a thin wrapper for DirectShow. I have successfully enumerated BDA devices and collected their CLSIDs. Now when user selects a device by name and I know the chosen CLSID, I need to add this device to my filter graph. I did the following: Type type = Type.GetTypeFromCLSID(classid); object device = Acti...

DirectShow: Video-Preview and Image (with working code)

Questions / Issues If someone can recommend me a good free hosting site I can provide the whole project file. As mentioned in the text below the TakePicture() method is not working properly on the HTC HD 2 device. It would be nice if someone could look at the code below and tell me if it is right or wrong what I'm doing. Introduction...

DirectShow complains I'm running a mixed debug/retail build. What?

C:\Program Files\Microsoft SDKs\Windows\v#.#\Samples\multimedia\directshow\baseclasses\wxdebug.gpp line 890: /* If this fires you have a mixed DEBUG/RETAIL build */ ASSERT(!!szObjectName ^ !!wszObjectName); What does it mean and how can I fix it? If it matters: I've written a managed media player library that wraps DirectShow, and I...

c++ IPC - d3d hook and directshow capture source

I'm writing an app that will basically be like Fraps, but it will push video frames as a DirectShow Capture Source. This will make it easy to stream games on websites like ustream, justin.tv, etc. I'm wondering what the best way to do the interprocess communication would be. Speed is very important. Right now I have a dll that is injecte...