directshow

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

五迷三道 提交于 2020-12-12 17:43:09
问题 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

DirectShow, Media Foundation, DXVA, what?

久未见 提交于 2020-12-01 10:08:49
问题 I'm tasked with revising an application which uses DirectShow for video rendering. The old application works fine, but it's starting to show age. As I have a gaming background, I figured I should just approach this as such. After having made a bunch of prototypes using different techniques, I was pretty sure I could pull of video-to-texture rendering and use DirectX to fulfill all the clients his requests. However, I'm now at the point I have to pick a technique to go with and I couldn't be

DirectShow, Media Foundation, DXVA, what?

雨燕双飞 提交于 2020-12-01 10:05:45
问题 I'm tasked with revising an application which uses DirectShow for video rendering. The old application works fine, but it's starting to show age. As I have a gaming background, I figured I should just approach this as such. After having made a bunch of prototypes using different techniques, I was pretty sure I could pull of video-to-texture rendering and use DirectX to fulfill all the clients his requests. However, I'm now at the point I have to pick a technique to go with and I couldn't be

DirectShow, Media Foundation, DXVA, what?

假如想象 提交于 2020-12-01 10:05:30
问题 I'm tasked with revising an application which uses DirectShow for video rendering. The old application works fine, but it's starting to show age. As I have a gaming background, I figured I should just approach this as such. After having made a bunch of prototypes using different techniques, I was pretty sure I could pull of video-to-texture rendering and use DirectX to fulfill all the clients his requests. However, I'm now at the point I have to pick a technique to go with and I couldn't be

How to connect object to the filter graph?

心不动则不痛 提交于 2020-11-29 21:22:47
问题 What I need to do is - get decoded sample frames (like vector<frames> ) from DirectShow in order to do it I follow this implementation https://docs.microsoft.com/en-us/windows/win32/directshow/using-the-sample-grabber There is my implementation bool coAudioPlayerSampleGrabber::LoadImp(SoundDataType dataType, unsigned char const * pData, int64_t dataLen) { Cleanup(); m_bReady = false; HRESULT hr = S_OK; assert(pData); assert(dataLen); m_memBuffer.resize(dataLen); memcpy(m_memBuffer.data(),

How to connect object to the filter graph?

ⅰ亾dé卋堺 提交于 2020-11-29 21:12:40
问题 What I need to do is - get decoded sample frames (like vector<frames> ) from DirectShow in order to do it I follow this implementation https://docs.microsoft.com/en-us/windows/win32/directshow/using-the-sample-grabber There is my implementation bool coAudioPlayerSampleGrabber::LoadImp(SoundDataType dataType, unsigned char const * pData, int64_t dataLen) { Cleanup(); m_bReady = false; HRESULT hr = S_OK; assert(pData); assert(dataLen); m_memBuffer.resize(dataLen); memcpy(m_memBuffer.data(),

How to connect object to the filter graph?

自古美人都是妖i 提交于 2020-11-29 21:11:00
问题 What I need to do is - get decoded sample frames (like vector<frames> ) from DirectShow in order to do it I follow this implementation https://docs.microsoft.com/en-us/windows/win32/directshow/using-the-sample-grabber There is my implementation bool coAudioPlayerSampleGrabber::LoadImp(SoundDataType dataType, unsigned char const * pData, int64_t dataLen) { Cleanup(); m_bReady = false; HRESULT hr = S_OK; assert(pData); assert(dataLen); m_memBuffer.resize(dataLen); memcpy(m_memBuffer.data(),

Registering a network video stream as a virtual camera

我们两清 提交于 2020-08-26 11:37:06
问题 So I've tried to tackle this problem for the last couple of weeks but come to a bit of a standstill. I'm trying to registering an RTSP stream from an IP address as a virtual webcam for use in another application (could be skype or similar). What I need is for my computer to add a virtual webcam to its device list. This should preferably be done through a C# script as devices could be added dynamically through a .NET program. I have found similar questions on StackOverflow, but many of these

Registering a network video stream as a virtual camera

隐身守侯 提交于 2020-08-26 11:36:19
问题 So I've tried to tackle this problem for the last couple of weeks but come to a bit of a standstill. I'm trying to registering an RTSP stream from an IP address as a virtual webcam for use in another application (could be skype or similar). What I need is for my computer to add a virtual webcam to its device list. This should preferably be done through a C# script as devices could be added dynamically through a .NET program. I have found similar questions on StackOverflow, but many of these

Which events are triggered on a UAC prompt?

匆匆过客 提交于 2020-07-09 16:27:25
问题 Are there any windows events triggered when a UAC elevation prompt is shown? I've looked at SwitchDesktop, but can't see any mention of how to receive notifications. My direct show app is behaving badly, and I'd like to be able to pause the graph when when the prompt is displayed, resuming when dismissed. I'm using C++ with MFC, VS2008, targetting XP, Vista and 7. Many thanks 回答1: I'm not sure there are any events sent when UAC prompt displays. Basically it makes a screenshot of the desktop,