-
Notifications
You must be signed in to change notification settings - Fork 160
Skewed Output #160
Comments
Insert this command into Terminal.app: |
Have you rebooted your mac? |
Yes I tried that. |
Could you attach an OBS log of when the problem occurred? That would help understand the problem |
Yeah sure. Here it is: |
I tried changing the resolution as well. Here's what I got: Thanks for your help by the way. |
Hmm. I also see
Could you try using a different format (I think this is in the advanced settings page iirc. |
Very interesting I wonder if this is an obs bug or if I'm doing something wrong with converting pixel formats. @dodgepong have you seen anything like this in other issues on OBS? Seems like @tejasftc had the format set to NV12 even though his computer reported that it wasn't supported. This then seemed to break the pixel format conversion to yuv422 that my plugin does |
I've never heard of any issue like this before, no. |
The For format conversion, we usually use FFmpeg. So that shouldn't be in our territory either. When the base and output resolutions don't match, it uses the GPU to scale, but there isn't any known issue with that either, otherwise it would affect all outputs and not just virtualcam. Without having a full grasp on all your code I can't really say anything substantive, but I don't think OBS would be giving bad NV12 data, because NV12 is a very high frequency code path (it's the default). It would also produce on Windows in that case. Personally, I'd just check the memory of the data at all parts of the pipeline after you download it from the GPU to figure out where it's coming from. I'd recommend using a test image that would make comparing scanlines of the image more simple when checking for errors. It looks like a bad linesize/pitch value somewhere. |
Do the other formats cause the output use more CPU Power? It really slowed down my computer so I couldn’t really use it. |
OBS takes a lot of power in general, I'm afraid a dual core i5 processor (according to your log file) may not be enough to do lot of things simultaneously. |
NV12 probably uses the least amount of CPU processing. It uses the least data. |
Ok. Thanks
Tejas Thiyagarajan
[email protected]
…On Sat, Jun 6, 2020 at 3:40 PM Jim ***@***.***> wrote:
NV12 probably uses the least amount of CPU processing. It uses the least
data.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#160 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AKI6YGSI43FVFBWGQ6SWMZTRVLAUXANCNFSM4NR52XYA>
.
|
@jp9000 thank you for chiming in! This is the whole of my pixel format conversion code in the plugin:
That should make it so that the output's |
Are you able to reproduce this @johnboiles? |
Unfortunately no, so im flying blind |
Hm, I wonder what's going on. At some point I'll test this myself and try to debug. My guess is that the client application itself is using the wrong format or seeing it as the wrong format. I'm just kind of overburdened with my own stuff at the moment (and let's not forget the 115 pull requests on main) so I don't really feel comfortable spending time on this right at the moment. By the way, is there a reason why you're converting to UYVY rather than just using NV12? |
@jp9000 to my knowledge UYVY is used because it worked and others didn't, but that was back when this was just a proof of concept and it just stayed. |
@jp9000 yes not urgent at all; this doesn't seem to be a widespread problem. Your time is probably best spent working on main! Feel free to drop off the conversation here and we won't be offended :) What @gxalpha says is correct, UYVY was the first thing I was able to make work and I just ran with it. I spent a little bit of time investigating further in #102 and I don't think Apple's Core Media APIs support NV12 as a camera format. I also tried to get I444 to work (using |
I'm on v1.2.1 and had this issue - reboot didn't help, and changing the Video->Base Resolution & Output Resolution to be the same didn't help. After reviewing comments and settings in this thread, the thing that fixed it was changing the setting: Advanced -> Video : Color Format from NV12 to something else (RGB) fixed it. Then I changed it back to NV12 and it was fine. |
@mikehatch thanks for the data point! Did you see the issue both in the test card and the video from OBS, or just one of those? |
Yes, both the output and the test card were showing the skewed output as shown in this thread. |
So futzing around with the colour space might be another factor in triggering it? Will give it a whirl this weekend.. |
Yeah potentially anything that could change or recreate the pixel buffers on OBS or in the DAL plugin seems like a likely candidate. |
What I still try to wrap my head around is how even the test card will appear skewed, as reported by some people. The test card is created/rendered entirely within the DAL plugin with no input from OBS (where a different colour space would be set-up) and iirc only resolution and frame rate are stored in |
Yeah it's very mysterious. It's a good point about the test card -- that's probably the place to start. It will be a more self contained problem to understand why the test card is skewed. And once we understand that maybe we can reason about why changing settings in OBS sometimes fixes it. |
I'd start with looking at the creation of the |
I'm having the same issue with OBS 1.2.1 on rockoutloud.live |
I am having the same issues for some time now - anything I could provide to help you better understand the issue? |
There's not much to understand right now. Nobody really seems to know why this happens. Your best bet would be to follow the suggestions and if you notice a step that solved it for you, then mention it here so contributors can check for reproducibility. |
Not sure why but updating to Chrome 87.0.4280.66 (Official Build) (x86_64) fixed it for me in Google Meet. it's been working great in Zoom so must have been a Chrome issue. Not sure if anything in the update log helps with the detective work? https://chromereleases.googleblog.com/ |
@worst-Ness |
I also have this issue. Switching to Colour Format RGB does resolve the tearing but the frame rate drop makes it unusable. With NV12 color format the frame rate is fine (though of course there's the tearing..) I am reproing in Firefox/Chrome. I'm just googling webcam tests and picking from the top sites. Don't have Zoom or other meeting applications installed so haven't tested there. Plugin Version 1.2.1, used Package installer Firefox - 83.0 (64-bit) Specs (Yes I know): Please let me know if I can provide any additional information. I don't really need this for anything, it's just for fun, but happy to help if I can! |
I'm having the same problem. Tried every suggestion in the thread but nothing works. I still get the skewed image. |
The data card is also skewed. |
I installed this release obs-mac-virtualcam-4bd5852-v1.2.1.pkg |
@medwingADMIN what are your resolution + color space + color format settings (see @capital-G's post above) |
I wonder if this could be the same underlying cause as #228 and #233 (attempted fix in #241). It seems that something goes wrong with sending and/or saving the FPS value from the OBS plugin to the DAL plugin. Totally possible the same thing could be happening for the width / height, which could potentially cause this issue. |
The "current" values for the plugin should be stored in the |
If this is a similar issue as #228 and #233, I added some logs in You're looking for the logs that start with:
|
@PatTheMav that's super helpful! Anyone who is experiencing this issue could you post your |
Posting my case too: Describe the bug But after a restart of Chrome, the stream is full blurred, skewed. To Reproduce Expected behavior Screenshots Desktop (please complete the following information):
|
Having the same issue with: Base Resolution: 1792 x 1120 OS: 10.15.7 Solved it by: (Don't forget to restart Google Chrome after changing the settings in OBS!) Scaled output resolution seems not to be working. |
Describe the issue
When I run the OBS Virtual Camera for Mac, I get some weird output.
To Reproduce
Steps to reproduce the behavior:
Behavior
The virtual camera is showing a weird image in Google Meet.
Screenshots
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: