directshow

Is it possible to for a directshow source filter to read data from application?

假如想象 提交于 2019-12-13 01:29:26
问题 I am looking to write a directshow source filter that reads data from an application rather that reading the same from file/socket/device. First of all is is possible? If so how can I achieve it? I have done the same in gstreamer using appsrc plugin and since I am new to directshow can somebody please explain. Scenario: Device -> Application -> (DirectShow Source Filter) -> (DirectShow DecoderFilter) -> (DirectShow Sink) Thanks in advance. 回答1: It is possible but you have to implement the

Is there any way to control DirectShow VSFilter programmatically?

假装没事ソ 提交于 2019-12-13 00:42:24
问题 I'm trying to set up a subtitles file to DirectShow VSFilter programmatically. There is a way to do so through its property pages but I can't find any documentation regarding its API or even if it has one. Is there any sort of API, Interop, anything which would allow to set up a subtitle file for VSFilter? 回答1: There is no specific documentation on VSFilter, however it's open source software. So you can download source code, reference its interface definition e.g. in MPC-HC source \Mpc-hc\src

DirectShow play two video files in a sequence?

前提是你 提交于 2019-12-13 00:26:25
问题 "File Source (Async)" filter supports only one file per it's life. Is the a way to play two files in a sequence without rebuilding a graph? 回答1: File Source (Async) only supplies random access byte stream to the filter graph, there are other components vital for playback: demultiplexers, decoders. No, it is not possible to enqueue another file through File Source (Async) filter. Playing multiple files seamlessly otherwise is possible but requires to split graph into parts and connect them

Directshow & .Net - Bitmap shows stripe from right on left side of image?

﹥>﹥吖頭↗ 提交于 2019-12-12 18:13:12
问题 Sample Image: I'm using DirectShow.net to get webcam footage into my program. To accomplish this, I'm adding the source camera to the graph, and a VideoMixingRenderer9. That part is all working swimmingly, but the part where I extract a frame using GetCurrentImage(out lpDib) is having what I can only describe as an odd issue. What I am doing is using Marshal.PtrToSTructure to create a BitmapInfoHeader from lpDib, then calculating the width / height / stride / & pixel format. The problem comes

C# Register Embedded Directshow Filter

末鹿安然 提交于 2019-12-12 15:47:59
问题 I'm looking into registering a directshow filter at runtime and probably need to use reflection to do this and then call regsvr32 somehow on binary data. Not sure if this is possible, sounds tricky. Basically I have a dll file that is a filter and I added it to the solution as an embedded resource but after this I'm stuck... not sure how to go about registering it. Does anybody have any insight? Is this possible to do or do I have to have the file existent to register it? Thanks. Cheers. 回答1:

Filling CMediaType and IMediaSample from AVPacket for h264 video

谁说胖子不能爱 提交于 2019-12-12 14:59:44
问题 I have searched and have found almost nothing, so I would really appreciate some help with my question. I am writting a DirectShow source filter which uses libav to read and send downstream h264 packets from youtube's FLV file. But I can't find appropriate libav structure's fields to implement correctly filter's GetMediType() and FillBuffer(). Some libav fields is null. In consequence h264 decoder crashes in attempt to process received data. Where am I wrong? In working with libav or with

Unable to display two cameras in DirectShow

走远了吗. 提交于 2019-12-12 10:11:50
问题 I'm using two DirectShow graphs, running on separate threads, to display streaming video (using VMR 9 on a seperate) and capture frames (using Sample Grabber) from two webcams. One of them is a built-in webcam (HP TrueVision HD) and the other is a Creative VF0520 connected to a USB port. None of the other USB ports are in use. The problem is that the Creative camera turns on (LED lights up), but no stream comes through. The problem persists even if I disabled the built-in webcam. However, the

Is it possible to fake a video stream as virtual cam that is visible in Skype, Lync etc?

不想你离开。 提交于 2019-12-12 09:58:54
问题 I'm trying to build a crucial part for my application in which I need to be able to fake a virtual cam video stream. The video stream that I want to fake as a virtual webcam is streamed through my PC, where I can set the video source from my webcam or somewhere from my hdd. To sum up, something I can set as MediaElement.SourceProperty or Image.Source in WPF. I've seen Vivek's Vcam, a directshow filter here in tmhare.com which seems like it is extremely related to what I'm looking for. But I

Enhanced Video Renderer(EVR) in Filtergraph

一曲冷凌霜 提交于 2019-12-12 06:34:00
问题 Thi is my filtergraph. when I run the graph, I don't see any video window. But, If I replace the EVR with some other rederer (VMR7, VMR9, etc.) I get the video window. Kindly Help. Are there some changes to filtergraph needs to be done? Moreover, I can't find any AVI Decoder, where can I find? Any recommended codec pack? for Windows 7... 来源: https://stackoverflow.com/questions/15340198/enhanced-video-rendererevr-in-filtergraph

Stopping a Directshow graph freezes WinXP when using CC Decoder filter

走远了吗. 提交于 2019-12-12 05:38:50
问题 I have a PC running Windows XP x64 and I am trying to record video+audio and closed caption from Analog TV using a USB PCTV (Conexant Polaris). As a initial test, I have built a simple graph in GraphStudio with the following chain of filters: Crossbar > Video Capture > CC Decoder > Line 21 Decoder > Video Renderer I can play this and see it render a video showing correct closed caption, but almost every time I hit stop in GraphStudio, the computer will freeze and I have to reboot it. I also