directshow

DirectShow - Getting video frames

戏子无情 提交于 2019-12-21 04:26:08
问题 I'm creating a Windows video capture application and am using DirectShow for capture. As each frame comes in, I want to grab it as a raw RGB bitmap into a buffer, at which point my code will do whatever processing I need. I've been searching for samples similar to what I want to do, and everywhere I look online, people recommend using either the IMediaDet and/or the ISampleGrabber interface to do frame-by-frame capture. Unfortunately, both are deprecated and aren't even in the newest version

Best way to enumerate all available video codecs on Windows?

倖福魔咒の 提交于 2019-12-20 14:36:49
问题 I'm looking for a good way to enumerate all the Video codecs on a Windows XP/Vista machine. I need present the user with a set of video codecs, including the compressors and decompressors. The output would look something like Available Decoders DiVX Version 6.0 XVID Motion JPEG CompanyX's MPEG-2 Decoder Windows Media Video **Available Encoders** DiVX Version 6.0 Windows Media Video The problem that I am running into is that there is no reliable way to to capture all of the decoders available

FFmpeg Hardware Acceleration -> GPU + DirectShow

*爱你&永不变心* 提交于 2019-12-20 10:37:54
问题 Is there a hardware accelerated version of FFmpeg (e.g. a version that utilizes the GPU)? Also, does anybody use FFmpeg with GPU support? Possibly for scaling and converting video format? Or, for example, use DirectShow for image scaling and displaying images on surfaces? If so anybody can provide small code samples? 回答1: There are some VDPAU accelerated codecs for unixes with nVidia card. There is also an mpegvideo_xvmc codec using XvMC that can decode MPEG-1 and 2 on X11 if the driver has

Custom virtual video capture device

不想你离开。 提交于 2019-12-20 05:45:08
问题 I`m new to media foundation and C++. But I want to create a virtual video capture device which can be used by Microsoft Expression Encoder. Can you tell me in which direction to look? I think it should be something working asynchronously and a source will be byte stream from mobile device. Thanks in advance. 回答1: I don't think you want to look into Media Foundation for this. Expression Encoder uses a richer API to capture video with, DirectShow . You want a virtual DirectShow camera, which

How to capture data from camera NOT using DirectShow?

有些话、适合烂在心里 提交于 2019-12-20 04:45:30
问题 How to capture data from camera with out using DirectShow? (in C# on windows ) 回答1: I've done it in the past using the guidance & code from: http://weblogs.asp.net/nleghari/pages/webcam.aspx 来源: https://stackoverflow.com/questions/2940592/how-to-capture-data-from-camera-not-using-directshow

Showing a semi-transparent Image object over an IVideoWindow in C# using DirectShow.NET

旧巷老猫 提交于 2019-12-20 04:19:50
问题 I've been using DirectShow.NET to interface with a webcam in C# and so far everything has been going smoothly. However, right now I'm working on trying to set up a method to "crop" an image (while it's still being displayed as a webcam preview). Basically, I'm trying to show some kind of a mostly transparent image on top of the IVideoWindow object. Dealing with transparency in C#, however, has been pretty far from a cakewalk. So, how can I layer an Image object on top of an IVideoWindow?

DirectShow USB webcam changing video source

时光总嘲笑我的痴心妄想 提交于 2019-12-20 03:06:26
问题 Hey all i am trying to find the setting to change my video source to "composite" on my webcam. Seems that if i unplug the USB and then plug it back in and fire up the code, its just got a blank screen. But once i change the video source (in another program) and then go back and run my code again, it shows up. So i need something that will allow me to change that in order for that same thing to happen but within my own app without having to start another program that has that feature to set

change recording file programmatically in directshow

a 夏天 提交于 2019-12-19 11:42:53
问题 I made a console application, using directshow, that record from a live source (now a webcam, then a tv capture card), add current date and time in overlay and then save audio and video as .asf. Now I want that the output file is going to change every 60 minutes without stopping the graph. I must not loose any seconds of the live stream. The graph is something like this one: http://imageshack.us/photo/my-images/543/graphp.jpg/ I took a look at the GMFBridge but I have some compiling problem

change recording file programmatically in directshow

旧街凉风 提交于 2019-12-19 11:42:25
问题 I made a console application, using directshow, that record from a live source (now a webcam, then a tv capture card), add current date and time in overlay and then save audio and video as .asf. Now I want that the output file is going to change every 60 minutes without stopping the graph. I must not loose any seconds of the live stream. The graph is something like this one: http://imageshack.us/photo/my-images/543/graphp.jpg/ I took a look at the GMFBridge but I have some compiling problem

no combination of intermediate filters could be found

折月煮酒 提交于 2019-12-19 10:59:12
问题 I'm making a windows form application using Visual Studio. The application allows you to enter the what you want the photo to be named, and then saves that image to a specific location on the network. It works great when I use it on my laptop. However, when I try to run it on the a desktop, it does not work. Instead I get the message: System.Runtime.InteropServices.COMException (0x80040217): No combination of intermediate filters could be found to make the connection. at DirectShowLib.DsError