directshow

Crossbar filter change current input to Composite

让人想犯罪 __ 提交于 2019-12-02 09:12:57
I am new to DirectShow. I am writing an application in C# for capturing from Analog capture card. I have an analog capture card & I want to know how to change Analog Crossbar filter property, from "0: Analog Tuner In" to "1: Video Composite In". Here is my Filter Graph I can not connect Tuner's "Analog Video pin" to "Video Composite In" of Crossbar filter. I tried running "Route" method of IAMCrossbar filter, which failed. I don't know whether my path is correct. Please guide... IAMCrossbar::Route is how you do it. Make sure to read Working with Crossbars for details - it is C++ API, however I

Encoding with DirectShow filters

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-02 08:31:51
问题 I'm working on encoding raw images into avi file on windows possibly using directshow filter. The type of codec used will be selected by user. I've already done a similar thing using video for windows (VFW) which was pretty as it provide simple api to compress the data and write it to a file. This time i want to do this using directshow framework to provide directshow support. However while checking on MSDN I found there different types of filters for different codecs, so there is no single

how to change OutPut Pin Size & ColorSpace/Compression in DirectShow

元气小坏坏 提交于 2019-12-02 08:19:56
how to change OutPut Pin Size & ColorSpace/Compression of a Video Source Filter in DirectShow I want to Know whre the Output Pin PropertyPage Datas are stored and how can I Change those Datas By My Code You can use IPin::EnumMediaTypes on your filter's output pin to get a list of supported media types / video formats. Afterwards, call IAMStreamConfig::GetFormat to get the current format in an AM_MEDIA_TYPE structure. Modify this structure as you wish (make sure your format is supported by the device), and call IAMStreamConfig::SetFormat with the same structure. You would have to write your own

How to use directshow filter as a live input for Expression Encoder 4?

时光怂恿深爱的人放手 提交于 2019-12-02 07:17:04
I have a directshow filter that reads M2TS stream and demux it. I can render video and audio in GraphStudio and see it. My question is how can I use this filter as a live source for Expression Encoder job? I saw some recommendations saying to use subgraphs, but I am not so familiar with DirectShow to understand what it is. Thank you in advance for any help. Expression Encoder would look for DirectShow video source devices, which are typically cameras. You might want to implement your won virtual camera so that EE4 would pick it up and start receiving video from it. A popular sample on doing it

Encoding with DirectShow filters

℡╲_俬逩灬. 提交于 2019-12-02 07:11:20
I'm working on encoding raw images into avi file on windows possibly using directshow filter. The type of codec used will be selected by user. I've already done a similar thing using video for windows (VFW) which was pretty as it provide simple api to compress the data and write it to a file. This time i want to do this using directshow framework to provide directshow support. However while checking on MSDN I found there different types of filters for different codecs, so there is no single interface. http://msdn.microsoft.com/en-us/library/windows/desktop/dd375464(v=vs.85).aspx Do I need to

Pins avaiable in graphstudio not there in code

家住魔仙堡 提交于 2019-12-02 06:16:41
I am using a source filter of a webcam. When I use the filter in graphstudio it has two output pins. However in code the call to IEnumPins->next always returns S_FALSE. I also looked for another interface that could create pins but didn't find such a thing. How do I add pins to the webcam filter? If they're available in graphstudio they should be in code too, right? Here is my code.. I checked for return values and returned them if they are not ok. But everything seems to work fine except that the webcam filter doesn't return any pins CoInitialize(NULL); IGraphBuilder* graphBuilder = NULL;

Failure to play MP3 file with COM exception in IGraphBuilder.RenderFile

前提是你 提交于 2019-12-02 06:11:11
问题 I am new to direct show development. I am learning things about direct show. I am trying to write a method which plays some audio files. It works fine for many .mp3 files, but for some of my mp3 file the method RenderFile() of interface IGraphBuilder throws following exception COMException occured : "Pins cannot connect due to not supporting the same transport." My best guess is that I am missing some codec to play those files. Can anyone suggest what I am doing wrong. Is there any way to

How can I directly embed a DirectShow Push Source filter in an EXE?

微笑、不失礼 提交于 2019-12-02 04:51:09
问题 I have a Delphi 6 program that receives audio from an external program via a socket. Now I want to feed that audio to a DirectShow filter graph I create that routes that audio to different output filters on the PC. I am using DSPACK for my DirectShow filter graph work. I'll be using one of the DSPACK examples that shows how to create a Push Source Filter as my starting point. Is it possible to embed a DirectShow filter directly into my main EXE, or do I have to create an external DLL or AX

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

纵饮孤独 提交于 2019-12-02 04:41:51
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? Thanks! There are two approaches how to achieve this: to use a video transformation filter and deliver

Virtual Driver Cam not recognized by browser

浪子不回头ぞ 提交于 2019-12-02 03:24:06
I'm playing with the "Capture Source Filter" from http://tmhare.mvps.org/downloads.htm . After registering the ax driver, I'm trying to understand its compatibility across applications that use video sources. For example, Skype recognize it while browsers (Edge, Chrome) don't. I wonder if it's a limitation of the used approach ( DirectShow filter) or it's just a matter of configuration. The purpose of the question is to understand if that approach is still useful or it's better to move on Media Foundation . I described this here: Applicability of Virtual DirectShow Sources Your virtual camera