I got a simple webcam (640x480) that streams to a Windows-PC, where the webcam stream is show using a simple OpenCV-Application. I'm looking for a way to simultaniuosly show the video and save it to some external storage medium. I have no control over the Windows-PC or it's software, but I do have physical access to the PC, the USB-connection and the webcam.
I figured one way to achieve my goal, would be to use a Raspberry as some sort of "Webcam Logger", which would be connected inbetween the Webcam and the Windows-PC. The Raspberry would connect to the webcam, get it's video stream and save it to an external storage. Simultaniously, it should be connected to the Windows-PC via USB as a standard DirectShow device and just forward the webcams stream.
I don't have any experience with the Raspberry so far - I'm looking for an estimation if something like I imagined is possible and maybe some hints where to start looking.
I found a question on Stackoverflow covering the saving part already, but nothing regarding the raspberry mimicing a DirectShow-device.