Comments (3)
For clean show, I changed some log code. and crash log like below.
from windows-camera.
Hi,
yes I see the issue, as you can see in the trace, AugmentedMediaStream::Initialize() will filter through the set of MediaTypes exposed on the source you want to wrap and will keep only the one it can understand (i.e. in this case NV12 MediaTypes below 1080p at max 30fps. Problem is that first this routine runs on the client side and I assume your USB camera exposes MJPEG MediaTypes.. which FrameServer duplicates as well as NV12 MediaTypes (decode on the fly. However, when the virtual camera is then created on the frame server side, it does not have access to those MJPEG->NV12 MediaTypes and does not find any other compliant MediaType on any pin of the camera and fails to expose a stream.. (0xc00d36b4 == MF_E_INVALIDMEDIATYPE). There are a couple of things you can do to accommodate your camera in Windows 11 build 22000, although note that in the next release of Windows 11 there will be a new API to avoid this problem entirely..
You could accept MJPEG MediaType to go through in AugmentedMediaStream::Initialize() (and expose them out as NV12 MediaTypes) and insert a MJPEG decoder to decode samples on the fly on your own (see IMFTransform https://docs.microsoft.com/en-us/windows/win32/medfound/basic-mft-processing-model?redirectedfrom=MSDN
I think we need to provide a sample to do this anyway and I will take it as an action item
from windows-camera.
Thanks very much for the email to guide me fix this, I've made this work.
https://github.com/comor86/Windows-Camera
from windows-camera.
Related Issues (20)
- Class not registered HOT 2
- Can the virtual camera be accessed from multiple applications simultaneously? HOT 4
- not compatible on WeChat Video chatting HOT 5
- This repo is missing important files
- [ExternalCameraSettingsAppSample][DefaultControlHelper] set DefaultValue error with Access is denied HOT 4
- RPC failed error with the code 0x800706BE when calling IMFVirtualCamera::Start HOT 4
- Win 11 22H2 has QR Code Reader HOT 1
- Debug output from avcore\mf\frameserver HOT 1
- Virtual Camera Sample Returns E_ACCESSDENIED in IMFVirtualCamera->Start HOT 3
- Can't get DefaultController when turning on the MEP Automatic Framing HOT 4
- Can't set default value of MEP Automatic Framing with DefaultController HOT 1
- How to register the VirtualCameraMediaSource DLL without the MSI? HOT 6
- How to run the example NetworkMediaStreamer? HOT 5
- How to send a frame into virtual camera? HOT 3
- 【NetworkMediaStreamer】Can this example run on UWP platform?
- Autoframing can't be set to DIGITALWINDOW_MANUAL with error status = 3(value is invalid) HOT 3
- COM reference leak? HOT 1
- Question about virtual camera image orientation HOT 3
- Ask a question about the CameraSettingsExternalSettingsApp project companion apps HOT 1
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 windows-camera.