Виртуальная камера obs linux

Question / Help Has anyone successfully output from OBS to a live ZOOM conference on linux?

Bogus Exception

New Member

Experts,
Windows OBS users have a ‘virtual camera’ plugin that OBS can output to, but that app is not for linux.
Simply put, would love to use the editing, PiP, etc. options in OBS to serve as an input to a normal Zoom meeting as host.

Zoom has this concept of «Share’, which can be an app or the entire desktop. This is what I see on a ubuntu laptop:

I have a low res camera in the lid. But with the windows app, another ‘camera’ shows up that when selected utilizes the output of OBS, with audio and video. Mind you, we’re not talking about sharing the app itself, but the «output» of OBS, as in the result of mixing, fading, various video sources & media, etc.

If I click «Video Settings», along with the usual is a pull-down for selecting which a/v source to use-which has only my laptop cam as a choice.

It would seem that in order to use Zoom (or any other conferencing app/service?) there needs to be a way for the output of OBS [streaming] to be seen as an A/V input.

Has anyone out there tackled this yet?

dantesese

New Member

Bogus Exception

New Member

jwgrenning

New Member

aracloud

New Member

Maybe we could share some experiences together!

This is maybe what you are looking for as vcam: https://github.com/CatxFish/obs-v4l2sink/releases
So, you don’t need to build it you can use the deb file to install it easy.

I use Linux Mint with OBS Studio and I installed this virtual cam deb file. After the installation you will find under «tools» in OBS the v4l2sink plug-in which you need to start as described.

Of course you need «v4l2loopback» pre-installed which comes with Ubuntu based software repo as described in the link above.
Then you need to start v4l2loopback as module at system start-up.

My setup works basically but when I share my OBS projector via virtal cam in Zoom the zoom participants see some lags, flairs crossing the screen. So, the stream is not really smooth. This what I still struggle with.

In case I use something different as video conferencing than ZOOM. for instance https://meet.jit.si/ it works perfectly.
But, I want to have the same perfect streaming experiences with ZOOM as well.

Let me know if you need further help with it.

Источник

Виртуальная камера obs linux

OBS-VirtualCam is a plugin for obs-studio , transforming the output video to a virtual directshow device.

Supported Platforms : Windows 7 , Windows 8 and Windows 10

Alternative for Linux users: CatxFish/obs-v4l2sink

Alternative for Mac users: johnboiles/obs-mac-virtualcam

Supported OBS Studio version : 24.0.0+

  • virtual output : A output plugin sink raw video & audio to directshow interface.
  • virtual filter output : A filter plugin sink obs source video to directshow interface.
  • virtual source : Four directshow Interfaces which can use in 3rd party software.

The installer and compressed file can be found in Release Page. Using installer is recommended, but if you want to use compressed file to install manually , please follow these instructions.

  1. Unzip OBS-VirtualCam.zip and put it to your obs-studio install folder.
  2. Run CMD as Administrator and register 32bit directshow source
  1. Do it again to register 64bit directshow source
  • If you want to Remove the directshow filter , you can also use regsvr32 to do this

Register specific number of virtual cameras

Unregister then register 2 directshow camera (up to 4)

You need to install cmake , visual studio 2017 ,and build OBS project first. Set following Cmake variables:

Источник

OBS Virtualcam 2.0.5

NOTE: The horizontal flip option is bugged and will likely cause crashes. Please do not use it. If you need to flip your video, either flip the sources in OBS itself, or flip on the receiving end (i.e. in Zoom, Skype, etc.)

This plugin provides a DirectShow Output as a virtual webcam.

How to use:
OBS Virtualcam has two main methods for outputting video from OBS. The first is the Preview output, which is enabled from the Tools menu. This output will provide exactly what you see in the Preview in OBS, including any changes or scenes you might switch to. This is the most common method, and probably what you would want to use.

Preview Output:
1. Select Tools -> VirtualCam in the main OBS Studio window
2. Press the Start button, then close the dialog
3. Open your program (Zoom, Hangouts, Skype, etc.) and choose OBS-Camera as your webcam

The next method is a filter that you can add to any scene or source, if you only want to output that specific scene or source, and nothing else.

Source Filter:
1. Add a VirtualCam filter to the scene/source you want to output to the virtual camera
2. Choose a camera target then press Start
3. If the button does not change to Stop, it means the camera is already in use, and you must choose a different camera or stop the other output first.
4. Open your program (Zoom, Hangouts, Skype, etc.) and choose the camera you selected as the target as your webcam

Why are the resolution and framerate sometimes not the same as my OBS output settings?
If you open an OBS-Camera device in a 3rd party application before starting the output in OBS, OBS-Camera will default to 1080p 30fps. If you start OBS first, it will use whatever is set as the Output resolution and framerate in OBS Studio’s options, under Settings -> Video.

Does this plugin support other platforms?
For Linux, you can use the Video4Linux sink plugin for OBS Studio. Directions on how to configure it are available from that link. Work is underway to provide a similar plugin for macOS, but there is no ETA.

Источник

OBS-VirtualCam 2.0.4

MOD EDIT: This version of the plugin is currently deprecated and should not be used with OBS Studio v25. Please use this version instead: https://obsproject.com/forum/resources/obs-virtualcam.949/

We on the OBS team thank CatxFish for their hard work on this plugin.

This plugin provides a directshow Output as a virtual webcam .

How to use:
Output:
1. Selecting Tools -> VirtualCam
2. Press start button and close diailog
3. Open your 3rd party program and choose «OBS-Camera» as a Video input

Читайте также:  Удаление всех приложений windows store

Filter:
1.Add a filter to the source you want to output to the camera
2.Choose a sink camera target then press start button
3.If this camera is not occupied , the start button will change to stop button .
4.Open your 3rd party program and choose «OBS-Camera» as a Video input.

How to Install without installer:
1.Go Github Release to find zip file
2.Unzip OBS-VirtualCam2.0.1.zip and put it to your obs-studio install folder
3.Run CMD as Administrator and register 32bit directshow source
ex: regsvr32 «C:\Program Files (x86)\obs-studio\bin\32bit\obs-virtualsource.dll»
4.Do it again to register 64bit directshow source
ex: regsvr32 «C:\Program Files (x86)\obs-studio\bin\64bit\obs-virtualsource.dll»

Register failed during installation
It’s usually due to dependency reason . There’s a chance you need to install visual studio 2017 redistributable package (2013 if the plugin version is 1.x.x ), also the directshow interface needs swscale-4.dll and avutil-55.dll in you obs install directory.

FAQ:
Is it necessary to install 32bit version?
Yes, there are still many 3rd party programs use 32bit directshow interface for the reason of compatibility.

Why resolution and framerate are not same as OBS output Setting?
If you open OBS and Start Virtual Output before using your 3rd party software, the virtual webcam will set the obs setting as a default setting .Otherwise the default setting of virtual webcam will be 1920×1080 @ 30fps

Is it possible to output with portrait resolution (like 1080×1920) ?
It depends on your 3rd party software , it might reject recommended resolution.
If your software is compatible , you just need to set the obs output setting to the resolution you want.

How to prevent the drop frame issue?
Maybe your PC is too busy ,try to set more buffer.

Is there a virtual microphone ?
This plugin provide a directshow audio source which can’t be recognized as microphone , only some programs like VLC can use it.

Does this plugin support other platforms?
There’s a Video4Linux version . But it only contains the sink part , you have to use it with v4l2loopback.
And there’s no plan on mac version.

Is the driver-layer virtual device ( for microphone) development still going?
No, there are two reasons why I decide to make it pending.
1. The development is mess and painful, an error could cause blue screen.
2. Even you finish the code , you still need a paid certificate called EV code signing to distribute your driver.

Источник

Linux Mint Forums

Welcome to the Linux Mint forums!

Using OBS as a virtual camera

Using OBS as a virtual camera

Post by claude_edmonton » Sat Aug 01, 2020 5:58 pm

I need to stream the content of my second monitor instead of webcam when I use Zoom, Skype and other similar software.

I found that a software called OBS can do this. I’ve installed it, but there are extra steps, and it’s very complicated, I’m not figuring it out. Please bear with me and be patient, I find using the terminal very challenging.

Which brought me to this that I need to install:
https://github.com/umlaeute/v4l2loopback

I tried to follow the steps, but got stuck at:
$ sudo modprobe v4l2loopback

I got the following error message:
modprobe: FATAL: Module v412loopback not found in directory /lib/modules/5.4.0-42-generic

Re: Using OBS as a virtual camera

Post by hydrurga » Sat Aug 01, 2020 6:03 pm

Re: Using OBS as a virtual camera

Post by claude_edmonton » Sat Aug 01, 2020 6:21 pm

This worked, thank you.

I followed all the steps and now see the new option in OBS. But I have another error message. See attached screenshot.

Re: Using OBS as a virtual camera

Post by hydrurga » Sat Aug 01, 2020 6:30 pm

Re: Using OBS as a virtual camera

Post by claude_edmonton » Sat Aug 01, 2020 7:28 pm

Re: Using OBS as a virtual camera

Post by hydrurga » Sat Aug 01, 2020 7:34 pm

Re: Using OBS as a virtual camera

Post by claude_edmonton » Thu Aug 06, 2020 5:05 pm

I’m bumping this up, I need help, I need this to work, I need it for my work.

I don’t want to be forced to go back to Windows because of this.

Please help. I followed twenty different tutorials. Each of them had missing steps.

It all ends with OBS streaming a black square.

If there’s other software that can do it, I’m open too. Webcamoid didn’t work either.

Re: Using OBS as a virtual camera

Post by SMG » Thu Aug 06, 2020 5:26 pm

Re: Using OBS as a virtual camera

Post by claude_edmonton » Thu Aug 06, 2020 8:44 pm

I need it to work in every situation possible, not only in Zoom OBS does it, the people on Youtube who made the tutorials are able to do it, but it doesn’t work for me.

If I don’t figure it out for Monday, I will have to reinstall Windows, just because of this.

Re: Using OBS as a virtual camera

Post by SMG » Thu Aug 06, 2020 9:06 pm

I went to the youtube video and read the comments posted. You are not the only one to get that error message.

Xaulo wrote 4 months ago:
when I press «START» in obs, a mistake comes up: «format not support»
Help me

tuxfoo (the people who made the video) responded:
Make sure you have the loopback device selected in «Device Path» 3:54

The 3:54 on the youtube page is hyperlinked to the section of the video with the answer.

I suggest to read through all the comments on the youtube page as tuxfoo seems to be responsive to the questions viewers have posted. There may be some other tips in there that you would find helpful.

Re: Using OBS as a virtual camera

Post by claude_edmonton » Fri Aug 07, 2020 11:21 am

I went to the youtube video and read the comments posted. You are not the only one to get that error message.

Xaulo wrote 4 months ago:
when I press «START» in obs, a mistake comes up: «format not support»
Help me

tuxfoo (the people who made the video) responded:
Make sure you have the loopback device selected in «Device Path» 3:54

The 3:54 on the youtube page is hyperlinked to the section of the video with the answer.

I suggest to read through all the comments on the youtube page as tuxfoo seems to be responsive to the questions viewers have posted. There may be some other tips in there that you would find helpful.

Re: Using OBS as a virtual camera

Post by SMG » Fri Aug 07, 2020 3:53 pm

What are you trying to stream into Firefox? Is that black square the input OBS is receiving from your second monitor, from your webcam, or something else?

I did see in the youtube video comments to type:

to get the which video connections are available so you know which connection to use for your videolink.

OBS does have a website and I went to the help and then Wiki pages which led me to the Troubleshooting Guides. Followed another link or two to get to page which has as section If you are getting a black screen with your Capture Sources. I don’t know the specifics of your hardware setup (other than you have a webcam and a second monitor) or even what version of Mint you are using, so the help any of us on this forum could provide is limited, but maybe something on that page could help.

Читайте также:  Как повторить обновление windows

OBS also does have user forums for each operating system and the Linux one is here.

Re: Using OBS as a virtual camera

Post by claude_edmonton » Fri Aug 07, 2020 7:35 pm

What are you trying to stream into Firefox? Is that black square the input OBS is receiving from your second monitor, from your webcam, or something else?

I did see in the youtube video comments to type:

to get the which video connections are available so you know which connection to use for your videolink.

OBS does have a website and I went to the help and then Wiki pages which led me to the Troubleshooting Guides. Followed another link or two to get to page which has as section If you are getting a black screen with your Capture Sources. I don’t know the specifics of your hardware setup (other than you have a webcam and a second monitor) or even what version of Mint you are using, so the help any of us on this forum could provide is limited, but maybe something on that page could help.

OBS also does have user forums for each operating system and the Linux one is here.

I’ve deleted all the packages, started from scratch again.

Here’s everything I did:

1-I install OBS though command line following their instructions on obsproject.com
https://obsproject.com/wiki/install-instructions#linux

3-cd v4l2loopback
make
make && sudo make install
sudo modprobe v4l2loopback

4-ls/dev/video*
It gives me:
/dev/video0 /dev/video1 /dev/video2

5-Open OBS, go in tools. See the option is not there.

6-It’s not in the video tutorial, author forgot a step, but I remember installing obs-v4l2sink so I go here: https://github.com/CatxFish/obs-v4l2sink
git clone —recursive https://github.com/obsproject/obs-studio.git
git clone https://github.com/CatxFish/obs-v4l2sink.git
cd obs-v4l2sink
mkdir build && cd build
cmake -DLIBOBS_INCLUDE_DIR=»../../obs-studio/libobs» -DCMAKE_INSTALL_PREFIX=/usr ..
make -j4
sudo make install

7-Open OBS again. Choose my desktop as source. I see my desktop bright and clear in the OBS preview. Go in tools. I now see V4L2 video output

8-Path: /dev/video2, video format NV12, click start

9-With Firefox, I go to https://www.onlinemictest.com/fr/webcam-test/
It asks me to choose a camera. I choose Dummy video device (0x0000)

And same problem than before. Nothing streams. Stuck at the same place again.

Here, on the wiki you sent me, they have troubleshooting for AMD and Nvidia https://obsproject.com/wiki/Laptop-Trou . ay-capture I don’t have neither of those, it’s just a normal HP laptop with Intel.

I asked on their forum, the only reply I got is: our instructions work. On the discord channel, someone wrote «could be a permission problem not allowing obs to write to the device»

I’ve asked twice how to solve that but got no replies.

Re: Using OBS as a virtual camera

Post by SMG » Fri Aug 07, 2020 8:30 pm

And you verified your webcam (not using the OBS software) does come up using that test website? This does sound like some type of permission issue although he did have a problem in the video initially. I will have to go back and watch the video again.

My LM20 laptop does not have a webcam, so when I did the test all I got was a black box. I did try this test and it told me I didn’t have a webcam (which is correct and more than what the site you used told me).

I’ll go back through the info again and see if I can come up with any ideas.

Post by SMG » Fri Aug 07, 2020 11:05 pm

There seem to be quite a few people that have problems getting the cam to show up in different browsers or conferencing applications, even on Macs. I think it has something to do with the plug-in not being signed? And a lot of the browsers and meeting apps are updating their software to only allow signed plug-ins? It seems to be a fluid situation as some people could get things to work and others said they had problems.

Some of the problems seem to be solved by changing the size of what is being sent to the cam or adding parameters that load while OBS is running. While this page is specifically titled for Chromium, issues with other browsers including Firefox are mentioned throughout the comments as well as what people found to work for them. Maybe there is something there which will bring you success.

I didn’t see where you mentioned which version of Mint you are using, but this video explains installing the OBS virtual camera on ubuntu 20.04 without compiling anything. The author responded to the comments I saw listed below the video.

Re: Using OBS as a virtual camera

Post by claude_edmonton » Sat Aug 08, 2020 8:52 am

And you verified your webcam (not using the OBS software) does come up using that test website? This does sound like some type of permission issue although he did have a problem in the video initially. I will have to go back and watch the video again.

My LM20 laptop does not have a webcam, so when I did the test all I got was a black box. I did try this test and it told me I didn’t have a webcam (which is correct and more than what the site you used told me).

I’ll go back through the info again and see if I can come up with any ideas.

Re: SMG

Post by claude_edmonton » Sat Aug 08, 2020 9:09 am

There seem to be quite a few people that have problems getting the cam to show up in different browsers or conferencing applications, even on Macs. I think it has something to do with the plug-in not being signed? And a lot of the browsers and meeting apps are updating their software to only allow signed plug-ins? It seems to be a fluid situation as some people could get things to work and others said they had problems.

Some of the problems seem to be solved by changing the size of what is being sent to the cam or adding parameters that load while OBS is running. While this page is specifically titled for Chromium, issues with other browsers including Firefox are mentioned throughout the comments as well as what people found to work for them. Maybe there is something there which will bring you success.

I didn’t see where you mentioned which version of Mint you are using, but this video explains installing the OBS virtual camera on ubuntu 20.04 without compiling anything. The author responded to the comments I saw listed below the video.

I’m using the most recent version with Cinnamon.

I’m watching the video. He says the plug-in wasn’t installed in the right directory, but I did ls usr/lib/obs-plugins and all the files were there as supposed. The plug-in does show in OBS.

Читайте также:  Installing python libraries linux

It doesn’t seem to be the issue. It’s still streaming nothing while for him it works, so frustrating

Re: SMG

Post by SMG » Sat Aug 08, 2020 9:31 am

There seem to be quite a few people that have problems getting the cam to show up in different browsers or conferencing applications, even on Macs. I think it has something to do with the plug-in not being signed? And a lot of the browsers and meeting apps are updating their software to only allow signed plug-ins? It seems to be a fluid situation as some people could get things to work and others said they had problems.

Some of the problems seem to be solved by changing the size of what is being sent to the cam or adding parameters that load while OBS is running. While this page is specifically titled for Chromium, issues with other browsers including Firefox are mentioned throughout the comments as well as what people found to work for them. Maybe there is something there which will bring you success.

I didn’t see where you mentioned which version of Mint you are using, but this video explains installing the OBS virtual camera on ubuntu 20.04 without compiling anything. The author responded to the comments I saw listed below the video.

I’m using the most recent version with Cinnamon.

I’m watching the video. He says the plug-in wasn’t installed in the right directory, but I did ls usr/lib/obs-plugins and all the files were there as supposed. The plug-in does show in OBS.

It doesn’t seem to be the issue. It’s still streaming nothing while for him it works, so frustrating

I recall him mentioning in the comments that it matters from where you downloaded the software as to what might or might not need changed. I think yours is working (which I mention in the next post I will make).

I think it also matters with what website you are trying to interact as to whether or not it works. You only tested that one webcam test site. It’s possible if you try the cam test site I provide or you Skype or Zoom with someone that it will work. Each website uses different software in the browser. Give me a second to post what I had all typed and ready to go before I saw your post.

Re: Using OBS as a virtual camera

Post by SMG » Sat Aug 08, 2020 9:50 am

A few more observations based on my research of last night which might be helpful—both to you and to me in the future when I get my current computer issues sorted so I can experiment with OBS.

As best I can tell there are five parts to this process:
1 — OBS software
2 — OBS viewer app
3 — web browser
4 — software sent from website
5 — website server (optional)

From what you have described, I believe you have #1 and #2 working.

Webcams and virtual webcams must get permission from the browser in order to get their feed to it. Each browser has its own software to handle those permissions. Because a software link can be variable (there are many more variations on how a virtual webcam can be created than how a hardware cam is created), a virtual webcam may have more problems connecting to a browser—any virtual webcam on any operating system. The github link I sent last night seems to be programmers doing their best to get the browser to view the OBS viewer app.

The software sent from the website is the next issue and many sites in the past used Flash to render video. Some still do. Flash hits end of life on December 31, 2020.

I belong to a professional organization which uses two different vendors for streaming presentations. One vendor does not support Linux and requires me to call into a phone line in order to hear the audio as I view the presentation on my Mint laptop.

The second vendor is an Adobe product and requires a Flash plug-in. The first time I tried to view their presentations on my Mint laptop I had problems even getting Firefox to let me know there was a plug-in. I had to go into Firefox plug-in settings and make changes to even get the webpage to show me the page required a plug-in. Then I had to make an additional setting change to give Firefox permission to let Flash render.

Something weird happened when I tried to move my Firefox setting from LM19.3 to LM20 and I ended up just doing a fresh install of Firefox and I lost those Flash settings. I think that is why I had problems with the webcam test site link you provided; I think they are using Flash. That is parts 3 and 4 of the process. The test site sent software to render on the client side (your browser) so you could test your webcam.

Because I saw something different on the cam testing site link I provided (which was mentioned in one of the postings in Github), I presume that site is sending different software instructions to the browser. If you test this second link and the OBS cam comes up, then we could probably rule out a Firefox permission issue as being the problem. We would at that point assume it is the software instructions of the website which is stopping the flow of the process.

I wasn’t able to determine if the OBS viewer was using Flash, so Flash might not be relevant to the conversation.

I did read last night that Zoom made changes to their software earlier this year which stopped pretty much all virtual webcams (not just the OBS one) from working (was some type of «trusted» permission required), but they removed that code and people were again able to make virtual cams, using any operating system, work.

The ability to stream successfully also depends on your laptop hardware (CPU and graphics rendering) and your internet connection. Both of these are factors in rendering the size and rate of the frames coming from OBS. I saw suggestions of reducing the size of what it being sent (send a portion of the desktop instead of the entire desktop) as a way of reducing stuttering and glitches those on the other end might see. That also was mentioned on the Github link as a way to get the image instead of a black square to show up on the browser (reduce the size).

There were so many permutations and combinations of this worked that didn’t etc. in what I read last night that your frustration is understandable. But I can be stubborn and I want to see this work for you because I want to be able to get it working for myself in the future. Too many people seem to have this working so there must be a way.

Источник

Оцените статью