Open petergerten opened 6 years ago
I am currently using the video4linux api to create and write frames to the fake webcam device. I'd probably have to do something completely different on windows so porting it would require a complete rewrite... I'll keep windows in mind and I'll take a look at the project you linked, but It may be a while before I get something working though.
Is there any way to emulate a webcam on windows with python? I need to output OpenCV frames to a fake webcam
@trueZane Have you find a way to that? Because I'm struggling with the same problem and can't find any answers
Any update ?
Ping - this would be very helpful!
@jremmons first thanks for this package, this saves a lot of effort for me, previously I was using gstreamer which was obviously a difficult option to setup and use @dvf @abctaylor @trueZane @petergerten I''ve worked with using camera with windows it ideally uses dshow
with FFmpeg.alternatively for what all I have tried it apparently is difficult to have a kernel level module working like v4l2loopback, there are 3rd party apps but id definitely try to work and tell you if I get with something. I am currently searching for a lighter solution rather than third party app like manycam
. Maybe this might help https://github.com/rdp/open-source-directshow-video-capture-demo-filter
But how do cross platform apps like ManyCam do it?
I just stumbled upon this project, great work! A while ago I've released an equivalent for Windows only (so far): https://github.com/letmaik/pyvirtualcam.
An update to the previous post by @letmaik:
A while ago I've released an equivalent for Windows only (so far): https://github.com/letmaik/pyvirtualcam.
So pyvirtualcam might be a cross-platform frontend very soon. I'd still expect API changes in the future, but I think for many situations it will be "good enough" already.
Small update, pyvirtualcam now has native Linux, macOS and Windows support. I decided to not rely on pyfakewebcam for Linux support due to the extra overhead caused by the color space conversion done in Python. In pyvirtualcam all backends are implemented in native code (including color space conversion) which keeps it fast, while also avoiding the extra OpenCV dependency.
How to module pyfakewebcam work on Windows? I'am visited this link. On this module only showing virtual webcam using OBS virtual cam and Unity Capiture. I'am want to this module directly working on windows. Please help me.
Hope these help. Also linking the previous comment
@jremmons first thanks for this package, this saves a lot of effort for me, previously I was using gstreamer which was obviously a difficult option to setup and use @dvf @abctaylor @trueZane @petergerten I''ve worked with using camera with windows it ideally uses
dshow
with FFmpeg.alternatively for what all I have tried it apparently is difficult to have a kernel level module working like v4l2loopback, there are 3rd party apps but id definitely try to work and tell you if I get with something. I am currently searching for a lighter solution rather than third party app likemanycam
. Maybe this might help https://github.com/rdp/open-source-directshow-video-capture-demo-filter
Thanks @parthsarthiprasad for answer, but has not solution. I'am seen to this project working with v4l2loopback-utils camera driver. Windows does not have v4l2loopback-utils cam driver, maybe Windows has another driver that works with this project.
How for me not solution pyvirtualcam. Is no argument pyvirtualcam.FakeWebcam for use a application picture, but only use a picture from OBS or Unity Capiture.
this is e.g. code:
camera = pyfakewebcam.FakeWebcam('/dev/video1', 640, 480)
.
Using pyfakewebcam.
Great project! Any plans to add windows support? (it seems there is a started project here: https://github.com/TimSC/libvideolive)