directshow

How can I add a preview stream to the graph without stopping it?

北城以北 提交于 2019-12-01 13:04:22
The problem is to build a capture graph supported three states: Preview only Capture to AVI-file only Combine I have built the graph like this: This graph corresponds to state 3. Now, if I want to change on state 2 I remove the preview stream and get the graph like this: Imagine I run the graph and start capture. Now I want to back to state 3. How can I do this (add a preview stream) without stopping the graph? (Capture should continue). UPD. Maybe it will be possible to capture to the end of AVI-file? If so, I could stop the graph at state 2, add a preview stream to it (change to state 3) and

Rendering from memory using DirectShow

不想你离开。 提交于 2019-12-01 12:47:06
I'm very new to DirectShow and I'm looking for a way to render a video which is already loaded into the memory using DirectShow.NET. How can I do that? I'd be thankful even if you give me a highlight of the path. Roman R. There is no standard component to play from memory data, however Async Filter Sample from Windows SDK implements exactly this. The application reads the file into memory at the specified rate and plays the file. Note that the filter requires, however, expects some C++ development from you. See also: On Async Filter Sample Play video file from a memory stream How do you get

Getting MP4 File Duration with DirectShow

左心房为你撑大大i 提交于 2019-12-01 12:34:56
问题 I need to get the duration of an mp4 file, preferably as a double in seconds. I was using DirectShow (see code below), but it keeps throwing a particularly unhelpful error. I'm wondering if someone has an easy solution to this. (Seriously, who knew that getting that information would be so difficult) public static void getDuration(string moviePath) { FilgraphManager m_objFilterGraph = null; m_objFilterGraph = new FilgraphManager(); m_objFilterGraph.RenderFile(moviePath); IMediaPosition m

How can I add a preview stream to the graph without stopping it?

╄→гoц情女王★ 提交于 2019-12-01 11:37:03
问题 The problem is to build a capture graph supported three states: Preview only Capture to AVI-file only Combine I have built the graph like this: This graph corresponds to state 3. Now, if I want to change on state 2 I remove the preview stream and get the graph like this: Imagine I run the graph and start capture. Now I want to back to state 3. How can I do this (add a preview stream) without stopping the graph? (Capture should continue). UPD. Maybe it will be possible to capture to the end of

Writing a Direct Show Source Filter

冷暖自知 提交于 2019-12-01 11:10:46
I should have to write a Direct Show Filter which takes input(video,audio) from live source. And it should give the data(video,audio : which are encoded) to a decoder Filter MyCustomDirectShowSourceFilter ---> Decoder Any real working examples which i can build my own source filter and any suggestion for implementation? Best Wishes Update: Basically i want a source filter which takes streams from network and let to handle the parsing and decoding of video stream by another filter. So when i modify Microsoft sample Push Source Filter and connect to a decoder it does not call FilllBuffer method.

ITuner::put_TuneRequest() call ignored

独自空忆成欢 提交于 2019-12-01 11:07:23
I have a DirectShow graph with a "Microsoft DVBT Network Provider", "AVerMedia BDA DVBT Tuner", "AVerMEdia BDA Digital Capture", "Sample Grabber" and "NULL Renderer". These filters are connected. Beside that I also have an "MPEG-2 Demultiplexer" and a "BDA MPEG2 Transport Information Filter", but these two filters are NOT connected! It seems like they have to be here in order to run the graph. When I start the graph, I'm receiving TS data, but no matter what I do, I'm not able to put the tuning request. I can only capture the MUX data from the last tuned frequency with some other application

Simulate a DirectShow Webcam

回眸只為那壹抹淺笑 提交于 2019-12-01 11:04:52
问题 I am a developer in DotNet. I want to give skype a possibility to add a webcam simulator and send my bitmap frames to the DirectShow simulator. In this case I can draw my images in my application and on skype I can share this images to my friend. I was on: http://msdn.microsoft.com/en-us/library/dd407344%28VS.85%29.aspx but it's no Dotnet and I am not sure what example I should believe in. I also saw: http://directshownet.sourceforge.net/ But as far as I undestand, here I cannot do with this

Writing a Direct Show Source Filter

天涯浪子 提交于 2019-12-01 09:49:11
问题 I should have to write a Direct Show Filter which takes input(video,audio) from live source. And it should give the data(video,audio : which are encoded) to a decoder Filter MyCustomDirectShowSourceFilter ---> Decoder Any real working examples which i can build my own source filter and any suggestion for implementation? Best Wishes Update: Basically i want a source filter which takes streams from network and let to handle the parsing and decoding of video stream by another filter. So when i

ITuner::put_TuneRequest() call ignored

我的梦境 提交于 2019-12-01 09:32:23
问题 I have a DirectShow graph with a "Microsoft DVBT Network Provider", "AVerMedia BDA DVBT Tuner", "AVerMEdia BDA Digital Capture", "Sample Grabber" and "NULL Renderer". These filters are connected. Beside that I also have an "MPEG-2 Demultiplexer" and a "BDA MPEG2 Transport Information Filter", but these two filters are NOT connected! It seems like they have to be here in order to run the graph. When I start the graph, I'm receiving TS data, but no matter what I do, I'm not able to put the

Webcam MJPG capture streams are unavailable on Windows 10

喜你入骨 提交于 2019-12-01 08:40:16
问题 On Windows 10 build 10.1607.14393.10 (aka Anniversary edition) I am unable to get MJPG capture streams anymore. Used to be both MJPG and YUY2 resolutions, now I am getting only YUY2 in DirectShow (Kernel Streaming) and in Media Foundation MJPG converted media types into NV12 way before IBaseFilter source is connected to anything. Tried on multiple systems with different cameras. Any ideas what might be wrong? 640x480 @30 YUY2 ... 640x480 @30 MJPG <- gone ... DirectShow: com_t<IAMStreamConfig>