directshow

Using DirectShow filters outside DirectShow?

懵懂的女人 提交于 2019-12-08 03:31:05
问题 I'm currently dealing with Windows Media Foundation. However, due to some problems with the Microsoft H.264 decoder and some missing decoders for custom format, I'd like to know if it would be possible to instantiate a DirectShow Decoder directly using CLSID, and build a proxy around it that exposes IMFTransform to get a decoder for Media Foundation. So here is my question: Can i instantiate a Directshow filter (preferrably decoders) directly and use them for decoding (i.e. put some

DirectShow: how to change filter properties?

佐手、 提交于 2019-12-08 03:17:26
问题 I'm working on an application that helps users configure their TV tuner cards. Basically the user selects a device, and the application generates a graph file (.GRF) as output. However, there are a few settings the user should be able to change. These settings include the video standard (PAL, NTSC, SECAM), video input (Tuner, Composite, SVideo), and so on. In GraphEdit this can be accomplished by right clicking the desired filter, and select "Filter Properties...". However, I have no clue how

Windows: how to get cameras supported resolutions?

女生的网名这么多〃 提交于 2019-12-08 02:13:58
问题 So to get cameras list and let user select one (C++, Boost, dshow, windows) I use such code: #include "StdAfx.h" #include "list.h" #include <windows.h> #include <dshow.h> #include <boost/lexical_cast.hpp> HRESULT CamerasList::EnumerateDevices( REFGUID category, IEnumMoniker **ppEnum ) { // Create the System Device Enumerator. ICreateDevEnum *pDevEnum; HRESULT hr = CoCreateInstance(CLSID_SystemDeviceEnum, NULL, CLSCTX_INPROC_SERVER, IID_PPV_ARGS(&pDevEnum)); if (SUCCEEDED(hr)) { // Create an

How can I use WPF MediaKit, or a similar program, for rendering from a DirectShow filter graph created with DES on to a WPF control?

蹲街弑〆低调 提交于 2019-12-08 01:16:22
问题 I have developed a simple video editor using C# and DirectShow.net. As of now, I have a DirectShow filter graph built using DirectShow Editing Services. My application controls the graph, runs, pauses and stops the playback in a preview window as needed. In an editing session, the graph gets changed according to user requests to add, remove or modify the media. Currently I use a PictureBox wrapped into WindowsFormsHost to preview edited videos. But I really want to try using Jeremiah Morril’s

Missing 'qedit.dll' in Windows Server 2008?

ぃ、小莉子 提交于 2019-12-07 19:39:44
问题 We've found that Windows Server 2008 SP2 doesn't contain QEDIT.DLL. This 'DirectShow Editing' DLL contained several useful DirectShow filters, namely SampleGrabber, that we had been using. I found some references to this issue during the Windows Server 2008 beta cycle, but it was supposed to have been added back for release. Does anyone have any current knowledge of this, and if there are any workarounds other than copying a version from Vista or Win2003? 回答1: The SampleGrabber filter is one

Dynamically change filter value without Property Page

荒凉一梦 提交于 2019-12-07 18:26:48
问题 I just wrote a simple DirectShow Filter (which inherits from CTransformFilter). But I want to be able to set a variable of my filter dynamically. This can be done today using Property Page. But what i want is change this property programatically. I defined a custom COM interface to set a variable in the filter but can not figure out how to use it -access it... How to set a DirectShow filter's properties value without open the filter's property page ? Any one has idea? More Details: Well i)

Custom DirectShow Source Filter - Dynamic Resolution Change

萝らか妹 提交于 2019-12-07 17:58:37
问题 I've asked a very similar question before for a video renderer filter. See here: Custom DirectShow Video Renderer Filter - Dynamic Resolution Change But this time, I need a solution for a source filter. This source filter connects directly to the video renderer. Decoder is embedded. I'm able to get the resolution changes from the stream. I also resize the buffers when I get a new resolution. But I don't know how to notify my new resolution through the pin. Should I somehow create an instance

How to access raw decoded audio data using Windows' built in mp3 decoder?

不想你离开。 提交于 2019-12-07 16:10:06
问题 Since Windows Media Player 6.1, Windows has its' own mp3 decoder. Can I use that decoder to get access to the decoded audio (raw) data? I assume it would have to be done with DirectShow. Related but not the same question. 回答1: You can add a sample grabber into the graph after the mp3 decoder. The sample grabber allows you to configure a callback that gets called as each sample passes through the media pipeline. Your graph would look something like mp3 file -> mp3 decoder -> sample grabber ->

How To Get A List Of Available Video Capture Devices

给你一囗甜甜゛ 提交于 2019-12-07 15:12:30
I am creating a project using DirectShow.Net that shows a preview of a webcam view within a windows form using Visual C#. I would like to start with gaining a collection of available video devices so I can choose between either the built in webcam or the USB webcam. I have seen several examples of this being done in C++, e.g. on the msdn " http://msdn.microsoft.com/en-us/library/windows/desktop/dd377566(v=vs.85).aspx ". However as I do not know any C++ I do not know how to convert this code into C#. Roman R. DirectShow.NET sample \Samples\Capture\DxLogo\Capture.cs shows how to do it: // Get

Media player/recorder (phonon)

给你一囗甜甜゛ 提交于 2019-12-07 15:08:13
问题 I would like to develop a media player/recorder. The primary target platform is Windows, support for other OSs would be nice, but that's not a high priority. It should be able to play formats like wav, mp3, avi. It should also be able to record audio (microphone) and video (webcam or capture card). As I have some experience with QT and C++, I looked at QT (4.7.2) phonon with DS backend. But unfortunately I was unable to play a simple AVI, even with the MediaPlayer sample that comes with the