directshow

Using DirectShow API from Silverlight

独自空忆成欢 提交于 2019-12-14 04:13:32
问题 We would like to leverage the codec capabilities of DirectShow from Silverlight. Is this possible? 回答1: MediaStreamSource is really the closest you will get to accessing decoders in Silverlight. You also may want to look at this project: http://directshow4sl.codeplex.com/ It is a managed re-imagined version of DirectShow. 回答2: In short (because I can't even think of a long answer) no, you can't use DirectShow in Silverlight. 来源: https://stackoverflow.com/questions/3185302/using-directshow-api

What is a good tutorial for learning vmr-9?

て烟熏妆下的殇ゞ 提交于 2019-12-14 03:34:15
问题 I need to combine 3d models from direct3d on top of a web cam feed. I hear vmr-9 is a good way to go, but I need tutorials. Anyone know of any? visual studio 2008 c++ 回答1: If you have the Windows SDK installed there are a handful of great samples. You should find them in here once the SDK is installed: \Program Files\Microsoft SDKs\Windows\v7.0\Samples\multimedia\directshow\vmr9 来源: https://stackoverflow.com/questions/2981372/what-is-a-good-tutorial-for-learning-vmr-9

Updating a textbox from ISampleGrabberCB

自古美人都是妖i 提交于 2019-12-14 03:14:03
问题 I currently have a working program which displays a preview from my webcam and uses the ISampleGrabberCB interface. Using the SampleCB my program converts the image to a bitmap and then processes the image for a barcode which is then decoded. This works perfectly when I show the result using a MessageBox however when I wish to edit a textbox on my main form with this result I get a few errors when I start my program. I am trying to update my text box using the following code within the

Drawing a rectangle (or line, or bitmap) on the camera preview stream (.NET Compact Framework)

北战南征 提交于 2019-12-14 02:59:20
问题 I'm working on a .NET CF 2.0 application that uses the camera, showing the preview and allowing the user to take a photo. I'm using the CameraCaptureDialog component and I wanted to draw a rectangle on the preview screen, but I wasn't able to do it... Any ideas? Do you think the Overlay mixer filter in DirectShow can be useful? If so, do you have any example? (The problem is I work on the CF 2.0, so many solutions that work ok for the normal framework here don't work...). Thanks in advance,

Photo and video with webcam using DirectShowLib-2005

送分小仙女□ 提交于 2019-12-14 02:23:51
问题 I'm trying to take pictures with a webcam in my c# application. I found out to use DirectShowLib. After a hard research, I found an example of how using the webcam, it displays the video on screen perfect, but it can't take the bitmap image for saving it at my will. sample of the code I found to take the picure would be public Bitmap snapImage() { IVMRWindowlessControl9 windowlessCtrl = null; IBaseFilter vmr9 = null; vmr9 = (IBaseFilter)new DirectShowLib.VideoMixingRenderer9(); DirectShowLib

How to render and save captured Video/Audio into a custom file/filter format in DirectShow?

我的梦境 提交于 2019-12-13 20:29:26
问题 Basiclly, I want to capture audio/video. Run it through a mp4 muxer and save it to a file on disk. Before I used ICaptureGraphBuilder2, but it seems unusuable when saving to custom formats. My code so far, I enumerate video/audio devices. In this sample I only try to capture audio. I get the correct device and use GetPin to enumerate the filters pins to get its output pin. hr = pMoniker2->BindToObject(0, 0, IID_IBaseFilter, (void**)&pSrc2); hr = pGraph->AddFilter(pSrc2, L"AudioCap"); hr =

DSPACK example for converting audio sample rate on the fly?

不羁的心 提交于 2019-12-13 16:59:19
问题 I am using DSPACK with Delphi 6 Pro. I am looking for a good sample that shows how to create a filter graph that will convert the sample rate of an audio stream to a desired format (sample rate, bit depth, and number of channels) in real time. Does anyone know of a good example project that shows how to structure the filter graph with DSPACK to do this? If not with DSPACK, then if you know of a good example or web page that discusses the general DirectX filter graph concepts involved, I can

Custom DirectShow Video Renderer Filter - Dynamic Resolution Change

廉价感情. 提交于 2019-12-13 08:41:21
问题 I have a Custom DirectShow Video Renderer Filter which has some extended features over Microsoft's Video Renderer Filter like overlay images. I know I could do the same with a Transform Filter but I've chosen that way. I also believe, I would face the same problem with a Transform Filter which I'll describe below. When I use Microsoft's Video Renderer Filter , it is capable of resizing the window and buffer sizes automatically when stream starts/changes. My filter is capable of doing the same

Adding an image at the start of Video file C# and DirectShow?

最后都变了- 提交于 2019-12-13 07:39:07
问题 i have code which record an video from webcam and store in "filename.wmv" format. now i want to add an image at the start of video How can i do this by using DirectshowLib or any other lib? Is it possible by using DirectShow? For my Video Recoding code go to this link 回答1: It will be difficult to add image to the start of already saved video. If you are able to do it at the time of recording, you can use same technique I proposed in an answer to the link you provided, just don't draw overlay,

Make Custom Directshow fiter to accept Parameters

喜欢而已 提交于 2019-12-13 06:37:20
问题 I Created a CTransformFilter, this is used to Resize the output video. It is working with default values which i gave in the code. Is it possible to make this filter receive values, i mean when i create Instance of this filter in my code is it possible to pass the values say like Resizer->width = 100 Resizer->height = 50 here Resizer is the filter. 回答1: You want to implement a "private interface" on your filter and then the controlling application will use it to communicate with the filter.