0

Webcam lets others view either still pictures or motion video of a user or other object in front of it. I want to configure Webcam in a way that it start capturing desktop screen instead of what is in front of it.

I want to manipulate desktop screen captured through Webcam using FFMPEG library. Such as:

ffmpeg -f dshow -i video="Integrated Webcam" -f mp4 cam_stream.mp4

I want to use this same application to capture my Desktop Screen that will be possible just in that case when Webcam will be able to capture my Desktop Screen instead. So above command will start recording what Webcam will be capturing that I want it to capture my desktop screen.

Note: I know other ways to capture, record or stream desktop screen but I want to achieve it through Webcam.

What I tried so far: I tried some Fake/Virtual Webcam software (manycam, sparkocam etc.) but I don't think they fulfil what I exactly want.

Please guide me if there is any way to achieve this? Thanks

  • you want to be able to flip between them easily? or overlay one on the other? – rogerdpack Oct 01 '15 at 18:06
  • Hi Roger, Actually I have an application which records what is being captured by Webcam. So, I want to use that application for screen capturing. And this will be possible if I somehow manage to configure webcam to capture my desktop screen instead of what it captures normally. If there is any way I could give Desktop Screen Capture stream to Webcam as input. – Bilal Ahmed Yaseen Oct 01 '15 at 19:30
  • I can capture desktop screen and also webcam stream and I want webcam to take desktop capture stream as input. – Bilal Ahmed Yaseen Oct 01 '15 at 19:31
  • you want the physical device "webcam" to capture your desktop? – rogerdpack Oct 01 '15 at 19:46
  • Yes I want this. I am looking for some way that Webcam start taking Desktop Captured Stream as Input. Any fake behavior – Bilal Ahmed Yaseen Oct 02 '15 at 09:07
  • so you probably are looking for some wrapper that takes input from "either one" and displays it. I've heard of amerectv before it might help. What is your end goal, flip between desktop and webcam during a recording? – rogerdpack Oct 02 '15 at 15:12
  • Yes, When I run particular command (ffmpeg) it start capturing my desktop screen to record instead of what WebCam capture normally. – Bilal Ahmed Yaseen Oct 05 '15 at 05:55
  • Actually, When I will be opening My Webcam with some command it will be taking Desktop as input while in other cases it will work normally. – Bilal Ahmed Yaseen Oct 05 '15 at 06:00
  • do you want it to take desktop input initially then "switch" to the real webcam? – rogerdpack Oct 05 '15 at 14:50
  • yes. When I access it with some FFMPEG command with some specified parameters then It should take input from desktop while in other normal cases it should work with its default behavior. – Bilal Ahmed Yaseen Oct 08 '15 at 07:32

1 Answers1

0

OK ffmpeg has a "gdigrab" option that takes from the desktop, and then "dshow" option to separately capture webcam. If you want "all of that to come from one device" then you might be able to get it by install screen-capture-recorder then setting up some "intermediary splitting" dshow filter (which can take input from different sources) like possibly AmerecTV or a splitter of some type https://stackoverflow.com/q/2878187/32453 sorry I dont' know much more, GL!

rogerdpack
  • 2,146
  • 7
  • 32
  • 49