Comments (1)
I changed EncoderMain::checkGraphicsCardCapability with what I think is more proper code and it seems to have fixed this particular issue:
FBCAPTURE_STATUS EncoderMain::checkGraphicsCardCapability() {
FBCAPTURE_STATUS status = FBCAPTURE_STATUS_OK;
const int nvidiaVenderID = 4318; // NVIDIA Vendor ID: 0x10DE
const int amdVenderID1 = 4098; // AMD Vendor ID: 0x1002
const int amdVenderID2 = 4130; // AMD Vendor ID: 0x1022
if(device_ == nullptr) {
DEBUG_ERROR("You must call setGraphicsDeviceD3D11 before you can call checkGraphicsCardCapability");
return FBCAPTURE_STATUS_SYSTEM_INITIALIZE_FAILED;
}
// check the device given for the adapter
ScopedCOMPtr<IDXGIDevice> dxgidevice;
ScopedCOMPtr<IDXGIAdapter> adapter;
DXGI_ADAPTER_DESC adapterDescription;
HRESULT hr = device_->QueryInterface(IID_PPV_ARGS(&dxgidevice));
if(FAILED(hr))
return FBCAPTURE_STATUS_DXGI_CREATING_FAILED;
dxgidevice->GetAdapter(&adapter);
if(adapter != nullptr) {
adapter->GetDesc(&adapterDescription);
wstring wDeviceName(adapterDescription.Description);
string sDeviceName(wDeviceName.begin(), wDeviceName.end());
DEBUG_LOG_VAR("Graphics Card Info: ", sDeviceName);
if(adapterDescription.VendorId == nvidiaVenderID)
this->nvidiaDevice = true;
else if(adapterDescription.VendorId == amdVenderID1 || adapterDescription.VendorId == amdVenderID2)
this->amdDevice = true;
}
if (!this->nvidiaDevice && !this->amdDevice) {
DEBUG_ERROR("Unsupported graphics card. The SDK supports only nVidia and AMD GPUs");
return FBCAPTURE_STATUS_UNSUPPORTED_GRAPHICS_CARD;
}
return status;
}
from 360-capture-sdk.
Related Issues (20)
- NV_ENC_ERR_OUT_OF_MEMORY HOT 2
- Compiling the source HOT 5
- System sounds getting captured too HOT 1
- Display output disabled/black HOT 1
- Crash in debug on AMD hardware HOT 6
- Muxing failed - wamedia muxer error codes? HOT 1
- Guide/Tutorial on How to use 360 Capture SDK to record Oculus Game or other Game like Steam
- Persistent 'AMF_VIDEO_ENCODER_FRAMESIZE' errors HOT 3
- Capture with Unity & Sample SteamVR scene HOT 7
- How to setup a live stream HOT 6
- Is there a sample showing how to integrate the SDK into a native engine game that is using openGL? HOT 1
- Max 360 video resolution HOT 4
- 360 degree capture and Flipped projection HOT 4
- HDRP and image capture
- Will it support nvidia turing cards?
- What is the Wamedia?
- No actual control over video bitrate?
- UI disappeared from my captured movie
- OnRenderImage() possibly did not write anything to destination texture/Muxing issue 2.35
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 360-capture-sdk.