jremmons / pyfakewebcam

A library for writing RGB frames to a fake webcam device on Linux!
GNU Lesser General Public License v3.0
9 stars 2 forks source link

Windows Support #1

Open petergerten opened 6 years ago

petergerten commented 6 years ago

Great project! Any plans to add windows support? (it seems there is a started project here: https://github.com/TimSC/libvideolive)

jremmons commented 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.

ghost commented 5 years ago

Is there any way to emulate a webcam on windows with python? I need to output OpenCV frames to a fake webcam

ILodde commented 4 years ago

@trueZane Have you find a way to that? Because I'm struggling with the same problem and can't find any answers

dvf commented 4 years ago

Any update ?

abctaylor commented 4 years ago

Ping - this would be very helpful!

parthsarthiprasad commented 4 years ago

@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

dvf commented 4 years ago

But how do cross platform apps like ManyCam do it?

letmaik commented 3 years ago

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.

JayFoxRox commented 3 years ago

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.

letmaik commented 3 years ago

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.

ukicomputers commented 3 years ago

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.

parthsarthiprasad commented 3 years ago

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 like manycam. Maybe this might help https://github.com/rdp/open-source-directshow-video-capture-demo-filter

ukicomputers commented 3 years ago

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.