directshow

Easiest way to get raw video/audio frames into an AVI (or other container)?

I'm working on writing a small application using the WPF MediaKit, and I would like to record some video - my plan is, to store the last n seconds as raw audio/video frames, then write them out as an AVI when the user requests it. Is there an easy way to actually pipe the data I've gathered from the Webcam into an AVI file? The trick i...

How to record sound in DirectShow c#

How can i record sounds which are playing in my programm? ...

DirectShow CSourceStream filter fails to unload properly

I am writing a DirectShow capture filter using CSource / CSourceStream as a base but when I access the cam in Firefox + Flash, I get a debug assert and the following debug error when closing Firefox. Cam6.ax(tid 1c98) 133506 : Cam6.ax(tid 1c98) 133506 : ID Object Description Cam6.ax(tid 1c98) 133506 : Cam6.ax(tid...

how to write mpeg4 file in vc++ directshow

hai.. Am writing application for capture video from camera in vc++ using directshow and write that file in WMV format.and how to write MPEG4 file format.can i install any sdk for mpeg4.can you provide details about mpeg file writing in vc++ kindly help me thanks ...

Overlay bitmap on live video

Hi i want to Overlay bitmap on live video. Iam trying to do this with the directshow sample. I edited PlayCapMonker sample and added some functions to enable this. i did this with the procedure explained in below link http://www.ureader.com/msg/1471251.aspx Now i am gettting errors Error 2 error C4430: missing type specifier - int...

How do I render 3d model into directshow virtual camera output

I want to provide a virtual webcam via DirectShow that will use the video feed from an existing camera running some tracking software against it to find the users face and then overlay a 3d model oriented just that it appears to move the users face. I am using a third party api to do the face tracking and thats working great. I get pos...

Samplegrabber works fine on AVI/MPEG files but choppy with WMV

I have been using the latest version of the WPFMediaKit. What I am trying to do is write a sample application that will use the Samplegrabber to capture the video frames of video files so I can have them as individual Bitmaps. So far, I have had good luck with the following code when constructing and rendering my graph. However, when ...

Merging two ASF files

I have an ASF file which contain 8 audios and 1 video. Now i want to merge this file with other of same ASF type. Is it possible to do with windows media SDK. My language is VC++ Please give some help ...

Using IVMRWindowlessControl to display video in a Winforms Control and allow for full screen toggle

I've recently switched from using the IVideoWindow interface to IVMRWindowlessControl in my custom Winforms control to display video. The reason for this was to allow zoom capabilities on the video within the control. However in switching over, I've found that the FullScreen mode from IVideoWindow is not available and I am currently try...

Is ther any opensource http streaming filter for directshow?

So i have live video from web camera. I want to stream it on to some port using DS filter. How to do such thing? ...

Is there a way to clear the last frame of video from the Video Mixer Renderer to leave blank client area?

I have a DirectShow graph that receives and renders a live network video stream using the Video Mixer Renderer. I'm using the IVMRWindowlessControl and I want to clear the client area to reveal the background image that was under the video before it was displayed. To overcome flicker problems I've overridden the WM_ERASEBKGND and OnP...

why create CLSID_CaptureGraphBuilder2 instance always failed in a machine

It's a real strange issue, the machine information below is from DXDiag. There is no error reported, but create CLSID_CaptureGraphBuilder2 instance always failed in the machine. It's okay to create CLSID_FilterGraph. Before create CLSID_CaptureGraphBuilder2, I have called CoInitialize and created CLSID_FilterGraph. Only this machine has ...

Quicktime Directshow Filters

Hello, I'm looking into DirectShow Source Filters for playing QuickTime media. Can anyone who has been down the same path offer any advice? I've tested offerings from MediaLooks and RogueStream. Are there any others I should check out? Are there any free or open source alternatives? Thanks, ...

DShow : Enumeration sequence of IEnumMoniker

Hello, This is a question about DirectShow IEnumMoniker. Out of some reason, I have to know "what kind of order" IEnumMoniker enumerates items. (I mean, it's alphabetically or...?) The following pages are documents about IEnumMoniker, however, it doesn't mention about this : http://msdn.microsoft.com/en-us/library/ms692852(v=VS.85).a...

Errors in building ceplayit (directshow player sample)

I tried to build the ceplayit files (of directshow player samples). I added them to a smart device project based on the sdk for my device (named TEMP). I am using MFC in visual Studio 2005. However the following errors occurred: Error 1 error LNK2001: unresolved external symbol IID_IBasicAudio vidwindow.obj Error 2 error LNK...

How to combile live video streams using VideoMixingRenderer9?

Hello, I want to combine multiple live streams in single stream. So my code will take multiple streams as input & after combining it will provide single stream as output. I have created an application which takes multiple video files as input & shows them in single video. Waiting for reply. -Shashank ...

VMR9 Renderless mode device resetting problem

Hi all, I'm struggling with this problem for a week.. I hope I can state the problem clear enough: So, I setup my custom allocator/presenter and in InitializeDevice() I create the textures for VMR9 Then, VMR9 calls my PresentImage() function everytime it has a new frame. I display render this texture onto a quad and Present() it. If ...

How to overlay direct3d in directshow

I am looking for a tutorial or documentation on how to overlay direct3d on top of a video (webcam) feed in directshow. I want to provide a virtual web cam (a virtual device that looks like a web cam to the system (ie. so that it be used where ever a normal webcam could be used like IM video chats) I want to capture a video feed from ...

DirectShow EVR resizing window problem

So I've been looking into the world of media playback for windows and I've started making a C# Media Player using DirectShow. I started off using the VRM-7 windowed video renderer and it was brilliant except it had a couple of small problems (multi monitors, fullscreen). But after some research I found that it's deprecated and I should b...

Problem referencing directshow filter from C#

Hi, I have a custom DirectShow filter created by extending the ezrgb24 filter from the DirectShow sample documentation. I am using this filter (indirectly) in C# through a 3rd party multimedia SDK (LeadTools). Now I need to add a reference to the filter's DLL to the project so that I can cast an IUnknown interface retrieved by the SDK...