# \[SOLVED\] Camera configuration in OBS (Ubuntu)

**URL:** <https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065>\
**Category:** Linux\
**Created:** [October 25, 2022, 5:58am UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065 "2022-10-25T05:58:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iann\_C](https://avatars.discourse-cdn.com/v4/letter/i/c5a1d2/32.png) [@Iann\_C](https://community.frame.work/u/Iann_C)\
**Post date:** [October 25, 2022, 5:58am UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/1 "2022-10-25T05:58:15Z")

</div>

I am trying to set OBS studio for some time on Ubuntu 22.04 / kernel 5.15. / intel 12th gen.  
Basically I have 2 options and none of them are usable for video conferencing :

1. **YUYV 4:2:2** : light is OK but there is 1 second lag + tearing in 1080P! If I go to 240P its still half a second lagg.
2. **Motion Jpeg** : image quality is awfull with a lot of compression. No light. But the FPS are OK.

Other options are without light so no usefull at all.  
All screenshots at 2min interval with same bad lighting conditions (to demonstrat), I am moving slightely :

 ![Scr_43_1](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/2X/2/2fd333c8372962401f31d66826cb996d43a2a1a5.jpeg)

 ![Scr_43_2](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/2X/8/867e74075b1a5dc2540ef70ed1d53677ee085c55.jpeg)

MEH

 ![Scr_43_3](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/2X/c/ceff8667d06eef75cd4b2d8f9b26e68e0f9e8447.jpeg)

In cheese its what I d like to have, I am too moving slightely with same bad light (for testing) = light OK + quality OK:

 ![image](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/2X/3/33dc1d41e2a00a8e312feffb1e58358fb72b99f9.jpeg)

---

<div class="post-metadata">

**Author:** ![2disbetter](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/2disbetter/32/1176_2.png) [@2disbetter](https://community.frame.work/u/2disbetter)\
**Post date:** [October 25, 2022, 12:40pm UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/2 "2022-10-25T12:40:03Z")

</div>

I noticed that camera performance was better under a newer kernel (5.18, 5.19). I am back on the LTS kernel which now supports hibernation, etc., but have not tested the webcam performance.

To me the issues you are speaking about here are related to drivers, which are part of the kernel you are using. There is a GUI based app on Ubuntu that will let you select a newer kernel and will install it for you. It is easy to go back to the LTS kernel if needed. When I’m done with work, I’ll look it up on my Framework and edit this post with that information.

Edit: Ubuntu Kernel Mainline Installer is the name of the application I’m talking about.

---

<div class="post-metadata">

**Author:** ![Iann\_C](https://avatars.discourse-cdn.com/v4/letter/i/c5a1d2/32.png) [@Iann\_C](https://community.frame.work/u/Iann_C)\
**Post date:** [October 26, 2022, 6:37am UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/3 "2022-10-26T06:37:03Z")

</div>

Thanks @2disbetter for your precise answer.  
For now I am discouraged using OBS on my FW, it was working on my thinkpad E590 (cloned the SSD).  
I have tried already with kernel 5.15 and 5.18 with OBS the past 2 monthes.  
The thing is that it also works better with cheese the basic cam app in Ubuntu Mate (no setups in there)…  
For now I will put it on hold until someone has a solution…I feel I tried pretty much everything.  
And I am **not** talking about activating the “virtual camera” and the “loop back thing” that don t work with some mainline kernels…

---

<div class="post-metadata">

**Author:** ![Matt\_Hartley](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/matt_hartley/32/13623_2.png) [@Matt\_Hartley](https://community.frame.work/u/Matt_Hartley)\
**Post date:** [November 9, 2022, 2:21am UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/4 "2022-11-09T02:21:05Z")

</div>

Hi @Iann_C,

I just installed OBS 28.1.2 Flatpak on my 11th gen Framework.

Video format: Motion-JPEG (plus tested all the emulated formats)  
Resolution: Default  
Frame Rate: Default  
Color Range: Default

Kernel in question is 5.19.16 and everything looks fantastic. Now this is on Fedora, so I’d echo @2disbetter in that you’ll want to run at least 5.18 for the best experience possible.

This video will walk you through the process:

[![](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/2X/7/7adad153822100a850498c1aaedc4c9ea3b45464.jpeg "How to Install Linux Kernel 5.18 on Ubuntu 22.04 LTS") ](https://www.youtube.com/watch?v=rvET-aFNFTQ)

---

<div class="post-metadata">

**Author:** ![Matt\_Hartley](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/matt_hartley/32/13623_2.png) [@Matt\_Hartley](https://community.frame.work/u/Matt_Hartley)\
**Post date:** [November 9, 2022, 2:25am UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/5 "2022-11-09T02:25:31Z")

</div>

Also, hiya @2disbetter. 🙂

---

<div class="post-metadata">

**Author:** ![2disbetter](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/2disbetter/32/1176_2.png) [@2disbetter](https://community.frame.work/u/2disbetter)\
**Post date:** [November 9, 2022, 11:45am UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/6 "2022-11-09T11:45:45Z")

</div>

Hi Matt, really great having you here with us! Framework, which is already awesome, just got a little awesomer (real word right?) with your addition!

---

<div class="post-metadata">

**Author:** ![Matt\_Hartley](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/matt_hartley/32/13623_2.png) [@Matt\_Hartley](https://community.frame.work/u/Matt_Hartley)\
**Post date:** [November 9, 2022, 9:29pm UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/8 "2022-11-09T21:29:45Z")

</div>

> [@anon81945988](#):
>
> got a little :: awesomer  
> more :: awesome

🤣

---

<div class="post-metadata">

**Author:** ![Matt\_Hartley](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/matt_hartley/32/13623_2.png) [@Matt\_Hartley](https://community.frame.work/u/Matt_Hartley)\
**Post date:** [November 9, 2022, 9:29pm UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/9 "2022-11-09T21:29:58Z")

</div>

> [@2disbetter](#):
>
> Hi Matt, really great having you here with us! Framework, which is already awesome, just got a little awesomer (real word right?) with your addition!

Thank you!

---

<div class="post-metadata">

**Author:** ![Iann\_C](https://avatars.discourse-cdn.com/v4/letter/i/c5a1d2/32.png) [@Iann\_C](https://community.frame.work/u/Iann_C)\
**Post date:** [November 10, 2022, 7:20am UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/10 "2022-11-10T07:20:11Z")

</div>

> [@Matt\_Hartley](#):
>
> I just installed OBS 28.1.2 Flatpak on my 11th gen Framework.
> 
> Video format: Motion-JPEG (plus tested all the emulated formats)  
> Resolution: Default  
> Frame Rate: Default  
> Color Range: Default
> 
> Kernel in question is 5.19.16 and everything looks fantastic. Now this is on Fedora, so I’d echo @2disbetter in that you’ll want to run at least 5.18 for the best experience possible.

Hi @Matt_Hartley  
Thanks a lot for the testing and the answer.  
Motion Jpeg decrease a LOT the image quality then its getting worse in OBS and worse again when sent via internet on google meet. Its looks to the guy watching me more like a 1990 test of a webcam in 320X240 😃  
So NO thks for jpeg.

Concerning the main line linux that s what I use for testing BUT there is not video for linux on 5.18 .19 and 6.x module on Ubuntu mainline ) NO OBS LIVE ☹  
I did put a comment on OBS directely but it as been close because it seems the ubuntu related bug ☹

> <https://github.com/obsproject/obs-studio/issues/7124>
>
> \### Operating System Info
> 
> Ubuntu Mate 22.04
> 
> \### Other OS
> 
> Kernel 5.18 ub…untu Mainline instead of 5.15 LTS
> 
> \### OBS Studio Version
> 
> 27.2.4
> 
> \### OBS Studio Log URL
> 
> https://obsproject.com/logs/yC2CzGdLvd0D0czO
> 
> \### OBS Studio Crash Log URL
> 
> https://obsproject.com/logs/yC2CzGdLvd0D0czO
> 
> \### Expected Behavior
> 
> The Virtual Camera button should be present.
> 
> 
> \### Current Behavior
> 
> The video is showing and everything seems to work.
> BUT the button "start virtual camera is not there".
> 
> WIth kernel 5.15
> !\[Scr\_33\_3\](https://user-images.githubusercontent.com/26340942/185366136-37ae6420-a2dc-4b1d-8aa4-348f53494874.png)
> 
> 
> \### Steps to Reproduce
> 
> 1.Install ubuntu 22.04 (mate)
> 2.Switsh to the 5.18 kernel manline from Ubuntu (instead of the default 5.15)
> 3.Launch OBS using this script :
> sudo modprobe -r v4l2loopback
> obs
> 
> 4 see that there is no button
> 5 switsh back to 5.15 kernel =\> the button is back
> 
> With kernel 5.19 : no button :
> !\[Scr\_33\_2\](https://user-images.githubusercontent.com/26340942/185366209-128ff9bf-726c-4d75-be9f-0cb1e8340dd1.png)
> 
> 
> \### Anything else we should know?
> 
> This is anoying because on my upcoming intel 12th gen , I need to switsh to kernel 5.18.
> For now using intel i3 8145U

So game over 😃

---

<div class="post-metadata">

**Author:** ![Matt\_Hartley](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/matt_hartley/32/13623_2.png) [@Matt\_Hartley](https://community.frame.work/u/Matt_Hartley)\
**Post date:** [November 11, 2022, 1:26am UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/11 "2022-11-11T01:26:48Z")

</div>

> [@Iann\_C](#):
>
> Motion Jpeg decrease a LOT the image quality then its getting worse in OBS and worse again when sent via internet on google meet. Its looks to the guy watching me more like a 1990 test of a webcam in 320X240 😃  
> So NO thks for jpeg.

Hmm, that is odd. I know that webcams do really poorly in Linux if the lighting isn’t set up a specific way. Can you take a screen capture with the good lighting you had in one of the above images and these settings?

Video format: Whatever you prefer  
Resolution: Default  
Frame Rate: Default  
Color Range: Default

I will have hands on a 12th gen configuration Monday or Tues, so I can restest this on that system as on the 11th Gen system I have it has been just fine with the above settings.

In the meantime, it would be worth installing and testing out guvcview and seeing if that gives you a different result. Using the guvcview application allows you to make changes to your webcam settings that will also carry over to WebRTC stuff like Jitsi, Google Meet, etc.

`sudo apt install guvcview -y`

Test out that application, see if this changes any of the behavior you’re seeing.

---

<div class="post-metadata">

**Author:** ![Iann\_C](https://avatars.discourse-cdn.com/v4/letter/i/c5a1d2/32.png) [@Iann\_C](https://community.frame.work/u/Iann_C)\
**Post date:** [January 19, 2023, 10:20am UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/12 "2023-01-19T10:20:41Z")

</div>

Update 19 January  
Tried it today with my uptodate ubuntu mate 22.04 . OBS 28.1.2 and the lagg in camera using YUV seems gone for now.  
So it becomes usable, will test it more and confirme if solved.

The experience seems to have stabilized allround.  
I can even start the virtual camera without any specific script on shipped kernel 5.15

---

<div class="post-metadata">

**Author:** ![Matt\_Hartley](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/matt_hartley/32/13623_2.png) [@Matt\_Hartley](https://community.frame.work/u/Matt_Hartley)\
**Post date:** [January 19, 2023, 7:22pm UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/13 "2023-01-19T19:22:03Z")

</div>

> [@Iann\_C](#):
>
> The experience seems to have stabilized allround.  
> I can even start the virtual camera without any specific script on shipped kernel 5.15

Excellent news, marking resolved.

---

<div class="post-metadata">

**Author:** ![Iann\_C](https://avatars.discourse-cdn.com/v4/letter/i/c5a1d2/32.png) [@Iann\_C](https://community.frame.work/u/Iann_C)\
**Post date:** [January 23, 2023, 11:56am UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/14 "2023-01-23T11:56:29Z")

</div>

Here is the kind of quality I get now with light from a window in front.

 ![YT-image](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/2X/0/08f1181c1e607c3e6f4b69cd548c380ec59be61c.png)

_(Mod edit, removed embeds)_

---

<div class="post-metadata">

**Author:** ![Matt\_Hartley](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/matt_hartley/32/13623_2.png) [@Matt\_Hartley](https://community.frame.work/u/Matt_Hartley)\
**Post date:** [January 25, 2023, 7:23pm UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/15 "2023-01-25T19:23:23Z")

</div>

Looks great! I did have to remove the links as while your videos were fine, we try not to set a precedent for video sharing. 🙂

---

<div class="post-metadata">

**Author:** ![Iann\_C](https://avatars.discourse-cdn.com/v4/letter/i/c5a1d2/32.png) [@Iann\_C](https://community.frame.work/u/Iann_C)\
**Post date:** [February 7, 2023, 6:00pm UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/16 "2023-02-07T18:00:21Z")

</div>

Hi @Matt_Hartley  
I have been recording several videos now, and I can confirme I am stuck at 640X480 **IN OBS.**  
If I go up I start getting a veeeery important lag. About 1second log between sound and image. It is not usable in HD for me.  
I have ordered an external HD cam … ☹  
I hope next UBUNTU 22.04.3 and kernel 5.19 will solve those laggs…  
Will see next month

tried with guckview as recommanded same thing in YUV cannot go over 640 without lagg ☹

 ![image](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/2X/9/958f8a30b21a4a6d3cf3d4ca317c09b06677e3d6.jpeg)

it says 3OFPS but thats wit 1sec lag.

---

<div class="post-metadata">

**Author:** ![Matt\_Hartley](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/matt_hartley/32/13623_2.png) [@Matt\_Hartley](https://community.frame.work/u/Matt_Hartley)\
**Post date:** [February 8, 2023, 7:55pm UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/17 "2023-02-08T19:55:03Z")

</div>

Oh yeah, YU12 is going to be unusable.I recommend matching these settings (saying hi in the image). YU12 (Emulated) will give you super smooth video, you can even do 60 FPS.

 ![OBS-fixed](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/2X/a/a9121b495b9b669bb5a2a5b9586c572f38081952.jpeg)

What I did:

Verify I installed the recommended OEM kernel noted on the [Ubuntu guide](https://guides.frame.work/Guide/Ubuntu+22.04+LTS+Installation+on+the+Framework+Laptop/109?lang=en).

`sudo apt install linux-oem-22.04`

Reboot, then.

`sudo snap install obs-studio`

Added my v4l2 source. Noted that it defaulted to YU12 which was like 5 FPS or something awful.

Controls were not immediately presented until I switched to YU12 (Emulated) (Test both entries as there may be two). Closed the properties box, reopened the proprieties box.

At the bottom of the image in the video preview, grabbed the little line that appears at the bottom of the image of me, and push up using my mouse to bring forward all of the v4l2 source settings.

Now for guvcview, it will differ here and the OSB settings will have different options.

For guvcview, these are the recommended settings:

MJGP Motion Jpeg  
60FPS  
1920x1080

 ![gu-video](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/2X/c/c276db2f0db1f46847d9231bd78f53576305479b.jpeg)

In terms of the FPS it indicates in the window, it will usually be at like 28 to 29 or 58 to 59 FPS.

---

<div class="post-metadata">

**Author:** ![Iann\_C](https://avatars.discourse-cdn.com/v4/letter/i/c5a1d2/32.png) [@Iann\_C](https://community.frame.work/u/Iann_C)\
**Post date:** [February 14, 2023, 6:57am UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/18 "2023-02-14T06:57:31Z")

</div>

> [@Matt\_Hartley](#):
>
> sudo apt install linux-oem-22.04

VERY intersting.  
Did not installed it.  
But when doing it it ask me to install kernel 5.17 ???  
I am worried it will copletely mess up my system which is LTS on 5.15 …  
Maye better to wait for upcoming 5.19 end of the month on Ubuntu .3

 ![image](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/2X/f/fb01831bbaf2f451e7e5ec9a6e52e7fc669ced67.png)

---

<div class="post-metadata">

**Author:** ![Matt\_Hartley](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/matt_hartley/32/13623_2.png) [@Matt\_Hartley](https://community.frame.work/u/Matt_Hartley)\
**Post date:** [February 14, 2023, 6:41pm UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/19 "2023-02-14T18:41:33Z")

</div>

I think you need to use the kernel your comfortable with.

Using linux-oem-22.04 is a metapackage for the recommended kernel, at this time, that’s 5.17.0.1027.25.

5.15 is totally fine though, it’s really a matter of using what works for you. We test Framework using the linux-oem-22.04 meta package. There are also linux-oem-22.04b and linux-oem-22.04c metapackages with even newer kernels.

Looks like linux-oem-22.04b has moved from 5.19 to 6.0.0 for example.

You can explore the oem kernels we use by running:

`apt search linux-oem-22.04`

My above results are with the specific adjustments I recommended and the oem kernel indicated in the guide.

For guvcview, these are the recommended settings:

guvcview, video tab:  
MJGP Motion Jpeg  
60FPS  
1920x1080

---

<div class="post-metadata">

**Author:** ![Iann\_C](https://avatars.discourse-cdn.com/v4/letter/i/c5a1d2/32.png) [@Iann\_C](https://community.frame.work/u/Iann_C)\
**Post date:** [April 7, 2023, 9:32am UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/20 "2023-04-07T09:32:55Z")

</div>

Now I need two camera so I have the logitech that works like a charm and the Framework camera.  
On this live video you can see

- the logitech in sync with the sound = reality 😉  
My heaset is not in my hand anymore
- The framework laptop camera, in the smal window, is half a second before that ! The headset is in my hand

I am on Ubuntu 22.04.02 LTS with kernel 5.15 up to date  
5.15.0-69-generic

The framework camera is in 1920X 1080 in this test. It usually gets better in 640.  
I don t undestand why anyone is having this …maybe no one uses OBS with the FW camera ? x)

 ![image](https://us1.discourse-cdn.com/flex001/uploads/framework3/original/2X/b/b319de1883aa240f90c774616030d51fd090e550.jpeg)

---

<div class="post-metadata">

**Author:** ![Matt\_Hartley](https://sea1.discourse-cdn.com/flex001/user_avatar/community.frame.work/matt_hartley/32/13623_2.png) [@Matt\_Hartley](https://community.frame.work/u/Matt_Hartley)\
**Post date:** [April 10, 2023, 5:16pm UTC](https://community.frame.work/t/solved-camera-configuration-in-obs-ubuntu/24065/21 "2023-04-10T17:16:44Z")

</div>

Duplicate, locking this and will assist here:

> [@\[RESPONDED\] Camera not usable with latest Ubuntu 22.04 update](http://community.frame.work/t/responded-camera-not-usable-with-latest-ubuntu-22-04-update/27226/10):
>
> Posting this for others reading this, I acknowledge that the op has moved on and is using their external camera instead. But I want to be crystal clear, with the correct settings, it works just fine unless there is a bad setting or a camera issue in a one off instance. slight_smile [obs]
