directshow

Get the DLL-file for a COM-Object without using CLSID and registry in c++

一世执手 提交于 2019-12-23 18:14:51
问题 Is it possible to get the DLL-filename for a loaded COM-Object without using the CLSID and a registry lookup? I have an IUnknown or in my case an IBaseFilter interface pointer and now I want to get the DLL-filename who created this COM-Object. Can I use the object point adress to reverse lookup the loaded module where it was created? And then get the HMODULE to use it in GetModuleFileName . 回答1: Only using some hacks, naturally. The object itself is on the heap, which is shared, but you could

DirectShow cast sampleGrabber to ISampleGrabber

℡╲_俬逩灬. 提交于 2019-12-23 13:00:00
问题 I have a strange error that I cannot wrap my head around. I have a graph created in a separate thread that runs and I'm trying to access the IBaseFilter sampleGrabber outside the thread which worked in a console application but I moved the code to a new project and where I'm trying to cast sampleGrabber to ISampleGrabber the runtime complains with a null reference exception. If I debug sampleGrabber it does have the interface ISampleGrabber however I cannot cast it anymore. Moving the code

Changes to TBitmap do not appear in rendered image in Delphi 6 DirectShow filter and generates lots of soft page faults

这一生的挚爱 提交于 2019-12-23 12:55:11
问题 I have a Delphi6 DirectShow filter (push source video filter) written with the DSPACK component library. I am having a truly vexing problem with some simple code that modifies a bitmap before outputting the modified bitmap to the destination media sample in my FillBuffer() call. The code is shown below. As you can see it is just two simple loops that use a Byte pointer to traverse the RGB values in a 24-bit bitmap. This code worked fine when it was in a non-DirectShow test application.

Dxsnap not displaying the video properly after first time open

依然范特西╮ 提交于 2019-12-23 10:56:12
问题 I am using DirectShowLib-2005 - DxSnap example to display and capture the image from Webcam. Everything works fine with the example. But when i try to merge it with my application (i tried to call that form from my main form) it is working for the first time. Once i close and open the capture window, it is not displaying the video properly. But the capturing of the image works perfectly all the time. public partial class frmMain : Form { public frmMain() { InitializeComponent(); } ///

Question about setting up FIle Writer in C#

大兔子大兔子 提交于 2019-12-23 09:26:32
问题 Im using DirectShowLib in C#. I want to use File Writer in C# to set a file output. I want to use File Writer because Graph.SetOutputFileName() wont connect to my encoder, but File Writer will. How can i set the File that File Writer saves to in C#? I tried pulling up its property pages like in the DxPropPages example but one won't come up for File Writer. 回答1: Pulled from here IBaseFilter ibf = new FileWriter() as IBaseFilter; Update: "I know how to add file writer to my graph in code i just

create virtual webcam application which takes images as input and send it to any video chat application

╄→尐↘猪︶ㄣ 提交于 2019-12-23 06:12:41
问题 In my project i'm getting live camera images from remote bluetooth device. and now i want these images to show on any video chat application like facebook, skype etc. Means i want the application which pretend as webcam and take the images as input and send it t chat window. I heard about DirectShow filters. but as i'm new to this i need whole step-by-step procedure to develop above application. 回答1: Anthology of the question: Virtual camera/direct show filter for network stream Virtual

create virtual webcam application which takes images as input and send it to any video chat application

落花浮王杯 提交于 2019-12-23 06:12:10
问题 In my project i'm getting live camera images from remote bluetooth device. and now i want these images to show on any video chat application like facebook, skype etc. Means i want the application which pretend as webcam and take the images as input and send it t chat window. I heard about DirectShow filters. but as i'm new to this i need whole step-by-step procedure to develop above application. 回答1: Anthology of the question: Virtual camera/direct show filter for network stream Virtual

How can I adjust the video to a specified size in VMR9 renderless mode?

孤街浪徒 提交于 2019-12-23 04:18:08
问题 I want to adjust the video to display on a specified window, for example 320*240. I must use VMR-9 Renderless mode to render to a surface. I am using the IVMRMixerControl9->SetOutputRect() method to adjust the video size. So I must get the native video size. But I don't know how. The GetOutputRect method always return 0 and 1. The get_VideoHeight and get_VideoWidth method return E_NOINTERFACE. But I do build a filterGraph with a video file. Do I have the wrong idea or there are other method?

Getting stuttering during rendering of my DirectShow filter despite output file being “smooth”

妖精的绣舞 提交于 2019-12-23 03:49:14
问题 I have a DirectShow application written in Delphi 6 using the DSPACK component library. I have two filter graphs that cooperate with each other. The primary filter graph has this structure: Capture Filter with 100 ms buffer size. (connected to) A Sample Grabber Filter. The "secondary" filter graph has this structure. Custom Push Source Filter that accepts audio directly to an audio buffer storehouse it manages. (connected to) A Render Filter. The Push Source Filter uses an Event to control

How do I use SampleGrabber to build a spectrum/visualizer for audio?

£可爱£侵袭症+ 提交于 2019-12-23 01:51:11
问题 I am currently building an application that uses the DS sdk, and I need to figure out how to obtain the amplitude constantly from the audio source to draw a visualizer or spectrum of some sort. I've been trying to look on how sample grabber is implemented on audio, but all of the information I've found have been outdated, and unhelpful. After a few dozen attempts, this is what I have currently: ISampleGrabber pGrabber = (ISampleGrabber)pSampleGrabber; hr = pGraph.ConnectDirect(GetPin