directshow

DirectDraw question - running the application as a regular Windows application

Hi, I am developing an application for video recording and I want to overlay the video preview with a logo and recording timer. I tried to run the full-screen application and everything worked fine. Then I tried to run the application as a regular Windows application and it returned an error. Could anyone take a look at the code below...

IStreamBufferMediaSeeking setPosition doesn't seem to render

I have created two DirectShow graphs. One captures from a Hauppauge HD-PVR and stores it in a StreamBufferSink. The second one uses a StreamBufferSource, sends the output to an MPEG-2 Demultiplexer, sending the video to the ArcSoft Video Decoder and on to a Video Mixing Renderer 9 set up in windowless mode. This all works fine for pre...

How to keep DirectShow graph frames from bunching up when using a laggy filter?

I have a DirectShow graph with the SampleGrabber filter doing some processing. The processing takes up to 50ms so often the playback speed is slower. The processing can be turned on and off. My problem is that if the processing has been on for a while, when I turn it off the video plays as fast as possible until it reaches a certain poi...

How do I set the owner of a FilterGraph renderer?

I have a CView which I would like to host a DirectShow renderer. I did not write the original code, I am simply cleaning up and moving the code to VS2005. This necessitated an upgrade of certain third party tools and so I'm trying to change the code a bit without having a full understanding of DX/DirectShow. The problem is that my app...

direct show source filter debug

i have direct show source filter which i'd like to know what it does internaly. it is skystar2 card sdk dshow source filter, id' like to know how does it get stream of data from pci card driver and how it comunicates with it , how can i debug or reverse thiS? ...

How to output data form a thread to another thread without locking?

I'm developing a DirectShow application. I encounter a deadlock problem, the problem seems caused by acquire lock in a callback function called from a thread. This is the quest I asked in MSDN forum: http://social.msdn.microsoft.com/Forums/en-US/windowsdirectshowdevelopment/thread/f9430f17-6274-45fc-abd1-11ef14ef4c6a Now I have to avoi...

How do you get DirectShow to play a video from a resource?

I'm extending an application to play one of several videos on a control in a dialog. Starting with the Windowless sample, I've got this working, though the videos have to be separate files from the main executable. The ideal scenario from a packaging standpoint is for the videos to be included with the executable as resources. I did a ...

Alternatives to DirectShow for video capture on Windows

I am looking at updating a program that currently uses DirectShow for video capture. While DirectShow seems to work well, I was wondering if there were any more powerful or up to date SDKs or APIs that I should look into. Some features that would be helpful would be ones that will: Provide a consistent framerate (33ms between frames ...

How to play mp3 from a url on windows mobile

I am looking for a way to play an mp3 file from a url on Windows Mobile 5. The examples I've found using the wmplib.WindowsMediaPlayer.url property work for a file on the device but don't seem to work for a http: url. The function seems to succeed without throwing an exception but no audio is played. I have tried the player.settings.vol...

Realtime 1394 firewire video in a WPF app via directx or other method

Are there any controls that anyone is aware of that I can use to stream firewire video into a WPF app. I do not need camera control or capture just the video. I need WPF hosting because I'll be adding WPF content on top. I was hoping that with the addition of having direct X surfaces in WPF something like this might appear. Ideally l...

DirectShow: BITMAPINFOHEADER and ISampleGrabber returning different sizes

I've got a particular FLV (VP6/LAME) file that is 400 x 171 pixels as reported by the BITMAPINFOHEADER structure and as verified by a number of FLV metadata editors such as RichFLV. However, when grabbing a sample from it using an ISampleGrabber the resulting sample (at 3 bytes per pixel) is only 204,000 bytes (400 x 170 x 3) rather tha...

How can I extract frames from videos (using DirectShow)?

I have to extract the frames from any video file that can be played using the standard windows media player into separate images. Can you provide me some info on how to proceed, what documentation/books to read, etc? The language is C/C++. Also, don't recommend any solution which involves GPL code, the software I have to work on is pro...

Cross-Platform webcam access

I'm looking for a cross-platform video capture library, for webcam access. One that wraps V4L/V4L2 on Linux, DirectShow on Windows, and QuickTime on the Mac. C or C++ is preferred, but I can work in Java or Python if those have better options for libraries. ...

registering driectshow filter on windows mobile 6

I'm trying to register my DirectShow filter on Windows Mobile. My project has Linker/General/Register Output set to Yes. However, nothing is getting registered and I'm getting the following error: Project : error PRJ0050: Failed to register output. Please try to register the component from a command prompt with elevated permissions. I'm...

Convert any Form Video into RGB24 Media

how to convert YUY2,YUV, RGB565 and More Video subtype into RGB24 Subtype Video in DirectShow + VC++ can u understand my question? I have a Upstream filter its output is in YUY2 Format but i need to convert it into RGB24 Format. Is there any inbuilt Filters in DirectShow or we have to convert it through my code. i have already added ...

how to change OutPut Pin Size & ColorSpace/Compression in DirectShow

how to change OutPut Pin Size & ColorSpace/Compression of a Video Source Filter in DirectShow I want to Know whre the Output Pin PropertyPage Datas are stored and how can I Change those Datas By My Code ...

CoInitializeEx fails when calling OpenCV method cvLoadImage()

Hello, I am trying to integrate some OpenCV functionality into my application. Currently I have code set up with DirectShow to get a video feed from my camera, which is then showed in an MFC window. This code cannot be changed or removed. The code runs completely fine, but regardless of the location i place the following line of code...

Live streaming with DirectShow and Windows Media Format SDK

First, some background: I'm developing a Silverlight 3 application and want to add support for live streaming (webcam + microphone as input). Unfortunately, Silverlight cannot access a webcam or a microphone itself, so I need to create a stand-alone application for establishing the media stream. I guess Silverlight would work best with M...

Using c# .NET 3.0 on a Windows XP machine, what is the most efficent way to record from multiple webcams?

I am trying to figure out what APIs to use to connect and record from a webcam. In al of my research, Google, I have found many OLD articles which discus Directshow and COM. I don't want to write code that is using an obsolete API. Any direction with this is greatly appreciated. ...

How to make WMV compression using ASF Writer faster ? Any hints ?

I'm compressing raw AVI files to WMV using the ASF Writer. I'm in a big need to make the compression faster. There are any hints & best practicevs on how to achieve this ? Drop/lower the indexer impact ? Any hidden compression parameters ? The files contains just video in RGB/24bits format and the compression level for the video stream...