directshow

Get image data for Direct3d rendering stream

I would like to get at the raw image data, as in a pointed to a byte array or something like that, of the image output from a direct3d app without actually rendering it to the monitor. I need to do this so that I can render direct3d as a directshow source filter Visual studio 2008 c++ ...

Clipping video in Directshow

Hi, I need to clip a video into smaller videos( of same format) of the same size.I am using Directshow .I have been able to extract frames from the video but I am not sure how to proceed with extracting video from the file .Could someone help me with this ? ...

How to debug c++ DirectShow filter

What debugging tools are available for directshow filters? Presently, I have a project that compiles and registers a video source filter that I then setup a graph in GraphEdit. I am using c++ in visual studio 2008. Is it possible to get a debugger attached to the filter in any way where I could set break points, inspect variables, etc...

Filtergraph data flow

I have a filtergraph with a custom source filter that delivers uncompressed RGB24 bitmap data and uncmompressed PCM sound through two pins. The graph compresses the data using arbitrary compression filters and saves it to a file using an arbitray writer filter. Internally, for each frame there is generated a sound sample with an equal ti...

Writing a .wmv file using WMA sf filter

Hi I am trying to create an output .wmv file using WM Asf writer filter.Here is my code . IBaseFilter* pASFWriter; CoCreateInstance(CLSID_WMAsfWriter,NULL,CLSCTX_INPROC_SERVER,IID_IBaseFilter,(void**) (&pASFWriter)); pGraphBuilder->AddFilter(pASFWriter,L"FileWriter"); ...

How to get webcam video stream bytes in c++

I am targeting windows machines. I need to get access to the pointer to the byte array describing the individual streaming frames from an attached usb webcam. I saw the playcap directshow sample from the windows sdk, but I dont see how to get to raw data, frankly, I don't understand how the video actually gets to the window. Since I d...

How to get width and height of directshow webcam video stream

I found a bit of code that gets me access to the raw pixel data from my webcam. However I need to know the image width, height, pixel format and preferably the data stride(pitch, memory padding or whatever you want to call it) if its ever gonna be something other than the width * bytes per pixel #include <windows.h> #include <dshow.h> ...

How to connect GraphEdit to my app's graph

I am trying to figure out how to get GraphEdit to show me my running graph from my app. I running windows 7 64bit. In the directshow sdk samples they have a spot for registering with the rot. I read on M$'s site that I needed to register the droppage.dll(cant recall the exact name right now). So I did that, but still no dice. Any id...

Why does IGraphBuilder::RenderFile not find ffdshow Video Decoder?

When I install K-Lite Codec Pack (5.90 Basic) as an administrator then run an application that calls IGraphBuilder::RenderFile as a standard user, the resulting graph doesn't have the ffdshow video decoder filter. However, when I run the application as the (original installing) admin the ffdshow video decoder is in the graph. Is there s...

How to use the callback method with a c++ directshow sample grabber

I have a sample grabber hooked into my directshow graph, based on this example http://msdn.microsoft.com/en-us/library/dd407288(VS.85).aspx the problem is that it uses one shot and buffers. I want to continuously grab samples, and i'd rather have a callback than i guess polling for the samples. How do use the SetCallback method? SetCa...

Running a graph returns E_FAIL

Hi, I have been struggling for a while now to get my filter graph to run .I am trying to crop a .wmv file into smaller duration .wmv files .It looks quite a simple task I dont know why its is getting so complicated.I follow this Source-> SampleGrabber->WMA sf writer. Here is my code IBaseFilter* pASFWriter; ICaptureGraphBuilde...

directshow Renderstream fails with grayscale bitmaps

Hi all. I'm trying to create a directshow graph to playback a video composed of 8bit grayscale bitmaps. (using directshow.net.) I'm using a source filter and the vmr9 renderer. The source filter's output pin is defined using the following code : bmi.Size = Marshal.SizeOf(typeof(BitmapInfoHeader)); bmi.Width ...

Set Positions returns E_NOTIMPL

Hi, I want to write only a specific portion of a .avi file in the output .avi file .For this I follow Source Filter ->Avi mux->File Writer.I try to use IMediaSeeking on the Mux to set the specific start and stop times using Set Positions but it returns E_NOTIMPL. I also try to query the graph builder for IMediaSeeking and try to ...

DirectShowNet for Compact framework licensing?

http://directshownetcf.com/ I can't seem to find anything on google to suggest whether or not i can use this in a commercial application. It does reference you can buy the source code for money, but nothing (that i can see) about using the already compiled dll. Has anyone got any information on this? ...

What DirectShow uses for data transfer between filters?

What does DirectShow use for data transfer between filters? (pipes or what) ...

aacplus frame alignment problems

I have an application that rips aac+ audio streams, cutting them at every regular interval (i.e. 10 minutes). Sometimes files are playable OK, but sometimes, Windows Media Player just closes when trying to build DirectShow graph. I am using Orban aacplus plugin, and it works under directshow. When I play this file with winamp or vlc, ...

Comparison of (wrapped) COM-interfaces by reference?

Hi, I have written a DirectShow source filter in C# that works like a charm but there's one problem: in GraphEdit (and similar tools), the connection between my source filter's output pin and the downstream filter's input pin isn't drawn, although both pins' properties indicate that they're connected and also the graph works as it shoul...

Why is my DirectShow-based video player producing choppy results, while WMP plays the same videos smoothly?

I am having problems writing a good C++/DirectX9/DirectShow video player. I have tried using the DirectShow samples and modifying them. I've tried VMR9 and TextureRenderer. In all my attempts the video playback is choppy and jerky. In one case I got it nearly smooth, but the audio was out of sync! Windows Media Player always manages ...

DirectShow: select a source video stream from an MP4 container

I am building an application that needs to read H264 and AC3 streams from a MP4 container and mux them into a single ISMV file. The source MP4 file contains a number of video streams of different bitrates and a number of audio streams of different languages. When I call IGraphBuilder::AddSourceFilter for my source file, I get a filter t...

Any good way to handle VOB files in C# ?

Hi all, We are trying to load a DVD scan it and extract some information. To extract the information we need to take a snapshot and run some image analysis. So far we were using the DirectShow framework and got almost all of the features to work. The major issue is handling an encrypted DVD. We can't make it fast forward, run backwar...