OBS to Jitsi

3 messages · started by Eliter Awesomeness on Apr 14, 2020

OBS to Jitsi

From Eliter Awesomeness · Apr 14, 2020

Hello,
 (this is a software question) So as you know, I sell knives. I do virtual demos, which I do a video conference to sell the knives, and am using Jitsi (a video conferencing software that I self-host), and am doing it using Chromium web browser. Firefox works too, so I guess it doesn't matter.
 OBS (Open Broadcast Software - https://obsproject.com/) is a really cool piece of software that allows you to stream and record video/audio. It also allows you to put scenes together, and switch scenes (e.g. video-on-video, switch windows, show "technical difficulties" scene).
 However, Jitsi does not accept streams from OBS, so I have to work around it. I found a modification for OBS, called obs-v4l2sink ( https://github.com/CatxFish/obs-v4l2sink ), which basically creates a fake video device and outputs the OBS video to the fake video device.
 Since Jitsi displays garbage quality for the video device, and also cuts it out, I had to use the "share screen" feature in Chromium/Firerfox, and have VLC play the video from the fake video device, and have the "share screen" share the window of the VLC player.

Here are commands to get OBS and the mod installed:
sudo apt-get update
sudo apt-get install ffmpeg git make cmake build-essential
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt-get update
sudo apt-get install obs-studio
sudo apt install qtbase5-dev
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
sudo modprobe v4l2loopback
sudo modprobe v4l2loopback devices=1
sudo modprobe v4l2loopback exclusive_caps=1

Then, I open up OBS, and create a scene. You can create a scene by right-clicking the box under "Scenes", and creating a scene. To add your desktop to the scene, click on a scene, and add a source (right-click on the box under "Sources"), click "Screen Capture", click "OK" select your screen, then click "OK". You should now see your desktop on preview.

Then, to output to the fake video device from OBS, on the top of the window, go to "Tools" -> "V4L2 Video Output" select the video device (in my case, "/dev/video0" -- see explanation below on video device numbers), for Video Format, I find that YUY2 is the only one that works. Then, hit "Start", then exit the "V4l2sinkProperties" window.

Of course, you will have to install VLC as well. What I did was open the virtual video device via VLC using this: "vlc --intf dummy v4l2:///dev/video0" in command line. This will open VLC, using an interface that won't add unnecessary stuff we don't need. Of course, on this computer, I didn't have any real video devices, so the device number was 0. If you have 1 video device, this would be "video1", if you have 2 video devices, "video2", and so on. Linux starts with "video0" and works its way up (programmers like counting up from 0). You can check what video devices you have by using this: "ls -lah /dev/ |grep video".

Then, once you have VLC running, you go to your web browser, making VLC stays not minimized or closed, go to video conferencing software (such as Zoom, Hangouts would probably work too), and select the fake video device (it might be called "Dummy" or something like that). It should work.

So the problem is, how do I get audio in this? How do I get OBS to output audio into the video conference? I could try creating a fake microphone, and have OBS output to that, and have Chromium/Firefox but I don't know how I would do that. I have been searching for hours online for solutions! My other concern, is that if I do get it working, the video will be out-of-sync with the audio, which is ABSOLUTELY annoying to people to see/hear that.

Thanks,
Eli D.

View original on FreeLists

OBS to Jitsi

From Eliter Awesomeness · Apr 14, 2020

Hello,
 (this is a software question) So as you know, I sell knives. I do virtual demos, which I do a video conference to sell the knives, and am using Jitsi (a video conferencing software that I self-host), and am doing it using Chromium web browser. Firefox works too, so I guess it doesn't matter.
 OBS (Open Broadcast Software - https://obsproject.com/) is a really cool piece of software that allows you to stream and record video/audio. It also allows you to put scenes together, and switch scenes (e.g. video-on-video, switch windows, show "technical difficulties" scene).
 However, Jitsi does not accept streams from OBS, so I have to work around it. I found a modification for OBS, called obs-v4l2sink ( https://github.com/CatxFish/obs-v4l2sink ), which basically creates a fake video device and outputs the OBS video to the fake video device.
 Since Jitsi displays garbage quality for the video device, and also cuts it out, I had to use the "share screen" feature in Chromium/Firerfox, and have VLC play the video from the fake video device, and have the "share screen" share the window of the VLC player.

Here are commands to get OBS and the mod installed:
sudo apt-get update
sudo apt-get install ffmpeg git make cmake build-essential
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt-get update
sudo apt-get install obs-studio
sudo apt install qtbase5-dev
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
sudo modprobe v4l2loopback
sudo modprobe v4l2loopback devices=1
sudo modprobe v4l2loopback exclusive_caps=1

Then, I open up OBS, and create a scene. You can create a scene by right-clicking the box under "Scenes", and creating a scene. To add your desktop to the scene, click on a scene, and add a source (right-click on the box under "Sources"), click "Screen Capture", click "OK" select your screen, then click "OK". You should now see your desktop on preview.

Then, to output to the fake video device from OBS, on the top of the window, go to "Tools" -> "V4L2 Video Output" select the video device (in my case, "/dev/video0" -- see explanation below on video device numbers), for Video Format, I find that YUY2 is the only one that works. Then, hit "Start", then exit the "V4l2sinkProperties" window.

Of course, you will have to install VLC as well. What I did was open the virtual video device via VLC using this: "vlc --intf dummy v4l2:///dev/video0" in command line. This will open VLC, using an interface that won't add unnecessary stuff we don't need. Of course, on this computer, I didn't have any real video devices, so the device number was 0. If you have 1 video device, this would be "video1", if you have 2 video devices, "video2", and so on. Linux starts with "video0" and works its way up (programmers like counting up from 0). You can check what video devices you have by using this: "ls -lah /dev/ |grep video".

Then, once you have VLC running, you go to your web browser, making VLC stays not minimized or closed, go to video conferencing software (such as Zoom, Hangouts would probably work too), and select the fake video device (it might be called "Dummy" or something like that). It should work.

So the problem is, how do I get audio in this? How do I get OBS to output audio into the video conference? I could try creating a fake microphone, and have OBS output to that, and have Chromium/Firefox but I don't know how I would do that. I have been searching for hours online for solutions! My other concern, is that if I do get it working, the video will be out-of-sync with the audio, which is ABSOLUTELY annoying to people to see/hear that.

Thanks,
Eli D.

View original on FreeLists

Re: OBS to Jitsi

From David Garcia · Apr 15, 2020

Most people who use OBS and any type of this setup in general.. are gamers/streamers etc.. and every one of their setups has one thing in common yours is lacking… they have dedicated audio DACs.. for their MICs to be inputed into and then feed those into a usb port.. if your just trying to “remake” or “cut” some video.. you may be better off just doing some video editing before hand.. rather than trying to stream it all live… because those streamer setups.. aren’t cheap… and that’s where your going to have to look to start seeing what equipment you may need…

 

From: Eliter Awesomeness
Sent: Tuesday, April 14, 2020 10:40 PM
To: cochiselinux@freelists.org
Subject: [cochiselinux] OBS to Jitsi

 

Hello,

 (this is a software question) So as you know, I sell knives. I do virtual demos, which I do a video conference to sell the knives, and am using Jitsi (a video conferencing software that I self-host), and am doing it using Chromium web browser. Firefox works too, so I guess it doesn't matter.

 OBS (Open Broadcast Software - https://obsproject.com/) is a really cool piece of software that allows you to stream and record video/audio. It also allows you to put scenes together, and switch scenes (e.g. video-on-video, switch windows, show "technical difficulties" scene).

 However, Jitsi does not accept streams from OBS, so I have to work around it. I found a modification for OBS, called obs-v4l2sink ( https://github.com/CatxFish/obs-v4l2sink ), which basically creates a fake video device and outputs the OBS video to the fake video device.

 Since Jitsi displays garbage quality for the video device, and also cuts it out, I had to use the "share screen" feature in Chromium/Firerfox, and have VLC play the video from the fake video device, and have the "share screen" share the window of the VLC player.

 

Here are commands to get OBS and the mod installed:

sudo apt-get update
sudo apt-get install ffmpeg git make cmake build-essential
sudo add-apt-repository ppa:obsproject/obs-studio
sudo apt-get update
sudo apt-get install obs-studio
sudo apt install qtbase5-dev
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
sudo modprobe v4l2loopback
sudo modprobe v4l2loopback devices=1
sudo modprobe v4l2loopback exclusive_caps=1

 

Then, I open up OBS, and create a scene. You can create a scene by right-clicking the box under "Scenes", and creating a scene. To add your desktop to the scene, click on a scene, and add a source (right-click on the box under "Sources"), click "Screen Capture", click "OK" select your screen, then click "OK". You should now see your desktop on preview.

 

Then, to output to the fake video device from OBS, on the top of the window, go to "Tools" -> "V4L2 Video Output" select the video device (in my case, "/dev/video0" -- see explanation below on video device numbers), for Video Format, I find that YUY2 is the only one that works. Then, hit "Start", then exit the "V4l2sinkProperties" window.

 

Of course, you will have to install VLC as well. What I did was open the virtual video device via VLC using this: "vlc --intf dummy v4l2:///dev/video0" in command line. This will open VLC, using an interface that won't add unnecessary stuff we don't need. Of course, on this computer, I didn't have any real video devices, so the device number was 0. If you have 1 video device, this would be "video1", if you have 2 video devices, "video2", and so on. Linux starts with "video0" and works its way up (programmers like counting up from 0). You can check what video devices you have by using this: "ls -lah /dev/ |grep video".

 

Then, once you have VLC running, you go to your web browser, making VLC stays not minimized or closed, go to video conferencing software (such as Zoom, Hangouts would probably work too), and select the fake video device (it might be called "Dummy" or something like that). It should work.

 

So the problem is, how do I get audio in this? How do I get OBS to output audio into the video conference? I could try creating a fake microphone, and have OBS output to that, and have Chromium/Firefox but I don't know how I would do that. I have been searching for hours online for solutions! My other concern, is that if I do get it working, the video will be out-of-sync with the audio, which is ABSOLUTELY annoying to people to see/hear that.

 

Thanks,

Eli D.

 

-------------------------------------------------------------------- Cochise Linux Users Group Mailing List - cochiselinux@freelists.org For more information: https://cochiselinuxusergroup.org/ Mailing List Archive: https://www.freelists.org/archive/cochiselinux To unsubscribe: //www.freelists.org/list/cochiselinux

View original on FreeLists


Previous thread · Next thread

Back to April 2020