Open sugoides opened 3 years ago
Also found this but the ref #662 is unavailable
ref #662
Originally posted by @rom1v in #776 (comment)
@martinellimarco @rom1v
AFAIK on windows there isn't something like v4l2loopback but I've not searched too much.
In practice you'll have to find a project that exposes both a virtual video input card and a virtual webcam. A DirectShow filter maybe?
Then it will be possible to patch scrcpy to write to the input card and use OBS to read from the virtual webcam.
I'm not a windows user so take this with a grain of salt, all I'm writing is the result of a quick google search and it may be wrong.
Looking better into OBS Virtual Cam it seems it may be used as input and not only as output, but the project is archived now?
Anyway, the interface that is exposed is DirectShow so we need a way to write to that.
ffmpeg can read from but not write to DirectShow, see ffmpeg wiki.
That said we don't care that much about what ffmpeg can do. It would have been a good example on how to do this but that's it. The moment we have the frame I think we can write it to DirectShow directly. I'm not familiar with this though.
As I've mentioned I'm not a windows user and I don't have the time to setup an environment and work on this now. Maybe one day, but I make no promises.
I'm not a windows user so take this with a grain of salt, all I'm writing is the result of a quick google search and it may be wrong.
Looking better into OBS Virtual Cam it seems it may be used as input and not only as output, but the project is archived now?
Anyway, the interface that is exposed is DirectShow so we need a way to write to that.
ffmpeg can read from but not write to DirectShow, see ffmpeg wiki.
That said we don't care that much about what ffmpeg can do. It would have been a good example on how to do this but that's it. The moment we have the frame I think we can write it to DirectShow directly. I'm not familiar with this though.
As I've mentioned I'm not a windows user and I don't have the time to setup an environment and work on this now. Maybe one day, but I make no promises.
Okay sir, no promises. But still hoping for this
Hello sir @martinellimarco any update on this sir?
Would obs-virtualcam feature like the v4l2loopback feature be possible?