directshow

Finding a filter's DirectShow category

♀尐吖头ヾ 提交于 2021-01-28 10:29:54
问题 Given a filter or a hardware device or its moniker, how can I find out what DirectShow category that filter or hardware device belongs to? Is there some kind of a "Category" property somewhere in the PropertyBag? 回答1: DirectShow categories contain filter registration information in terms that it is possible to create a monitor out of registration entry. Once moniker is created you don't yet have a filter but category information is already gone at this point. Creating an instance of filter

Finding a filter's DirectShow category

試著忘記壹切 提交于 2021-01-28 10:29:23
问题 Given a filter or a hardware device or its moniker, how can I find out what DirectShow category that filter or hardware device belongs to? Is there some kind of a "Category" property somewhere in the PropertyBag? 回答1: DirectShow categories contain filter registration information in terms that it is possible to create a monitor out of registration entry. Once moniker is created you don't yet have a filter but category information is already gone at this point. Creating an instance of filter

How to get uncompressed byte array from DirectShow?

空扰寡人 提交于 2021-01-07 03:11:17
问题 I am trying to use DirectShow https://docs.microsoft.com/en-us/windows/win32/directshow/directshow in order to get uncompressed byte array from .mp3 stream. I have an implementation that can playback .mp3 byte stream bool coAudioPlayer::LoadImp(SoundDataType dataType, std::string const & filename, unsigned char const * pData, int64_t dataLen, bool bOnlyIfFilenameChanged) { ... m_pMemReader = new CMemReader(m_pMemStream, m_pMediaType, &hr); m_pMemReader->AddRef(); hr = CoCreateInstance(CLSID

How to get uncompressed byte array from DirectShow?

自闭症网瘾萝莉.ら 提交于 2021-01-07 03:10:08
问题 I am trying to use DirectShow https://docs.microsoft.com/en-us/windows/win32/directshow/directshow in order to get uncompressed byte array from .mp3 stream. I have an implementation that can playback .mp3 byte stream bool coAudioPlayer::LoadImp(SoundDataType dataType, std::string const & filename, unsigned char const * pData, int64_t dataLen, bool bOnlyIfFilenameChanged) { ... m_pMemReader = new CMemReader(m_pMemStream, m_pMediaType, &hr); m_pMemReader->AddRef(); hr = CoCreateInstance(CLSID

ISampleGrabber undeclared identifier

微笑、不失礼 提交于 2020-12-15 09:54:20
问题 I'm trying to execute a code generated by graphEditPlus (using VS2010) but having a trouble with the following line: CComQIPtr<ISampleGrabber, &IID_ISampleGrabber> pSampleGrabber_isg(pSampleGrabber); where the errors are: error C2065: 'ISampleGrabber' : undeclared identifier error C2065: 'IID_ISampleGrabber' : undeclared identifier error C2514: 'ATL::CComQIPtr' : class has no constructors I tried downloading different versions of Windows SDK (V7.1, V6.0A, V5) and set the include / lib paths

ISampleGrabber undeclared identifier

╄→尐↘猪︶ㄣ 提交于 2020-12-15 09:51:52
问题 I'm trying to execute a code generated by graphEditPlus (using VS2010) but having a trouble with the following line: CComQIPtr<ISampleGrabber, &IID_ISampleGrabber> pSampleGrabber_isg(pSampleGrabber); where the errors are: error C2065: 'ISampleGrabber' : undeclared identifier error C2065: 'IID_ISampleGrabber' : undeclared identifier error C2514: 'ATL::CComQIPtr' : class has no constructors I tried downloading different versions of Windows SDK (V7.1, V6.0A, V5) and set the include / lib paths

ISampleGrabber undeclared identifier

给你一囗甜甜゛ 提交于 2020-12-15 09:51:32
问题 I'm trying to execute a code generated by graphEditPlus (using VS2010) but having a trouble with the following line: CComQIPtr<ISampleGrabber, &IID_ISampleGrabber> pSampleGrabber_isg(pSampleGrabber); where the errors are: error C2065: 'ISampleGrabber' : undeclared identifier error C2065: 'IID_ISampleGrabber' : undeclared identifier error C2514: 'ATL::CComQIPtr' : class has no constructors I tried downloading different versions of Windows SDK (V7.1, V6.0A, V5) and set the include / lib paths

How do i use samplegrabber in vc++ ? The samplegrabber is not defined

扶醉桌前 提交于 2020-12-12 17:44:36
问题 In visual community 2015 I have a c++ project. In the cpp file top I have #include "stdafx.h" #include "VideoCaptureFilterSample.h" #include "VideoCaptureFilterSampleDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #endif I also set when entering the project properties > VC++ Directories I added this directory in include: C:\Program Files %28x86%29\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses The problem is when I type in my code this: hr = CoCreateInstance(CLSID

How do i use samplegrabber in vc++ ? The samplegrabber is not defined

我只是一个虾纸丫 提交于 2020-12-12 17:44:20
问题 In visual community 2015 I have a c++ project. In the cpp file top I have #include "stdafx.h" #include "VideoCaptureFilterSample.h" #include "VideoCaptureFilterSampleDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #endif I also set when entering the project properties > VC++ Directories I added this directory in include: C:\Program Files %28x86%29\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses The problem is when I type in my code this: hr = CoCreateInstance(CLSID

How do i use samplegrabber in vc++ ? The samplegrabber is not defined

别说谁变了你拦得住时间么 提交于 2020-12-12 17:43:45
问题 In visual community 2015 I have a c++ project. In the cpp file top I have #include "stdafx.h" #include "VideoCaptureFilterSample.h" #include "VideoCaptureFilterSampleDlg.h" #ifdef _DEBUG #define new DEBUG_NEW #endif I also set when entering the project properties > VC++ Directories I added this directory in include: C:\Program Files %28x86%29\Microsoft SDKs\Windows\v7.1\Samples\multimedia\directshow\baseclasses The problem is when I type in my code this: hr = CoCreateInstance(CLSID