directshow

Virtual camera/direct show filter for network stream

Deadly 提交于 2019-12-19 04:55:23
问题 i'm working with Flash Live Encoder. It's using camera for streaming video. Support forum say's that i can create custom direct show filter and stream data that i need. I cann't understand how direct show filter will display in the source list of the live encoder. I've tryed to use some commercial virtual camera and it work's fine, but it cann't use source from network stream. Summary. I have a several network streams. I think that i must to create virtual camera for each one. But if i find

How to convert yuy2 to a BITMAP in C++

送分小仙女□ 提交于 2019-12-19 02:39:13
问题 I'm using a security camera DLL to retreive the image from the camera. The DLL call a function of my program passing the image buffer as a parameter, but the image is in yuy2 format. I need to convert this buffer to RGB, but I tried every formula I found on Internet with no success. Every example I tried (including http://msdn.microsoft.com/en-us/library/aa904813(VS.80).aspx#yuvformats_2) gives me wrong colors. I'm able to convert the buffer to a BW image using only the Y component of the

How to debug c++ DirectShow filter

无人久伴 提交于 2019-12-18 11:56:32
问题 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? Barring that is there a way to log diagnostic information somewhere that I can view in real time? 回答1: There should be no problem with attaching a debugger.

Efficiently grabbing pixels from video

拜拜、爱过 提交于 2019-12-18 05:23:08
问题 I am looking for an effective way to grab image data off video files. I am currently testing FilgraphManagerClass.GetCurrentImage() from the Interop.QuartzTypeLib library. This does what I need but is painfully slow. I need to process all frames of each video. What better options do I have? Requirements Must be frame accurate. <-- Very important! Gives me access to the decoded pixel buffer (array of int or byte[] ), ideally RGB24 or RGB32. The buffer can be grabbed in realtime or faster. I do

DirectShow code crashes after exit (PushSourceDesktop sample)

百般思念 提交于 2019-12-17 21:33:27
问题 I'm trying to use the Desktop capture filter that comes with the SDK (PushSourceDesktop). I compiled it and seem to use it successfully as it actually captures my desktop and saves it to a file. But the application crashes when its done/exits. When I break on the error it only says no source available and the call stack location is KernelBase.dll!7560280C(). I thought I give it a shot here to see if anyone can recognize some issue or if I am doing something blatantly wrong that might cause

Black video using multiple instances VMR 9

泪湿孤枕 提交于 2019-12-17 21:17:58
问题 I am working on creating a video wall like application. The application creates multiple windows to display video and each window has its own filter graph. In a typical configuration, these windows would be spread over two displays for a total of 12 windows. But the problem is whenever I try to run the application, a few of the windows display black video. There are no crashes and each graph is rendered correctly without throwing any errors. The windows displaying the black video are random.

Video Capture output always in 320x240 despite changing resolution

牧云@^-^@ 提交于 2019-12-17 18:33:30
问题 Ok I have been at this for 2 days and need help with this last part. I have a Microsoft LifeCam Cinema camera and I use the .NET DirectShowLib to capture the video stream. Well actually I use WPFMediaKit, but I am in the source code of that dealing directly with the direct show library now. What I have working is: - View the video output of the camera - Record the video output of the camera in ASF or AVI (the only 2 MediaType's supported with ICaptureGraphBuilder2) The problem is: I can save

C# + DirectShow.NET = Simple WebCam access?

与世无争的帅哥 提交于 2019-12-17 10:46:48
问题 I have found an example for accessing a webcam in C#. The example uses the DirectShow.NET library. I have tried to understand the code, but so far the only thing I could figure out is that somehow the usercontrol calls directshow to draw directly to the surface of the user control. I want to access each frame and put it into a Bitmap object. How can I tell when a new frame arrived? How can I capture this new frame into a Bitmap Object? This might be simple to answer if you know your way

How can I reverse engineer a DirectShow graph?

£可爱£侵袭症+ 提交于 2019-12-17 04:09:53
问题 I have a DirectShow graph to render MPEG2/4 movies from a network stream. When I assemble the graph by connecting the pins manually it doesn't render. But when I call Render on the GraphBuilder it renders fine. Obviously there is some setup step that I'm not performing on some filter in the graph that GraphBuilder is performing. Is there any way to see debug output from GraphBuilder when it assembles a graph? Is there a way to dump a working graph to see how it was put together? Any other

How can I reverse engineer a DirectShow graph?

人盡茶涼 提交于 2019-12-17 04:08:05
问题 I have a DirectShow graph to render MPEG2/4 movies from a network stream. When I assemble the graph by connecting the pins manually it doesn't render. But when I call Render on the GraphBuilder it renders fine. Obviously there is some setup step that I'm not performing on some filter in the graph that GraphBuilder is performing. Is there any way to see debug output from GraphBuilder when it assembles a graph? Is there a way to dump a working graph to see how it was put together? Any other