I am new to media SDK and any gfx development in general. I want use the sample 'simple_decode_d3d11' provided in tutorial to read the input from my webcam or USB camera connected to my system instead of a video file. I could not figure out how to specify camera as input in MSDK_FOPEN/fopen_s. I am using Intel(R) Media SDK 2018 R2 on wondows10. Appreciate any help regarding this.
- Development Tools
- Intel® Media SDK
- Intel® Media Server Studio
- Media Processing
Sorry for the late response.
Your problem is how to input the video stream from a webcam, Media SDK inputs raw video stream only and this is why we are only show with the tutorial code.
fopen() is a function call can only handle files but not stream.
There are several ways to do this, you can use OpenCV functions, or FFmpeg/GStreamer library. Or you can use FFmpeg or GStreamer directly, both of them support Intel hardware accelerated codec(QSV), you can check following site for how to install them:
Hope this helps and let me know if you have any questions.