-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add option for 720p (lower resolution) #3
Comments
I've been thinking through it a bit wrong. It looks like the more important bits are in the actual uvc-gadget.c code. I'm going to have to do some more digging. |
Well now... It looks like if I default to 720p for the stream, it shows fine in 'High' but blacks out in 'Maximum'. And I can only choose one or the other. I tried adding Here's when I started the camera in 'High':
And maximum:
And back to 'High':
What I don't understand is how QuickTime Player's High/Maximum link up to the external device in any way. I thought it was just a toggle for whether to use H.264 (or 265?) or ProRes formats... but it seems to consistently only work with one of the formats. |
So for 1080p:
And for 720p:
I wish I could figure out what the 'High' vs. 'Maximum' selection did on QuickTime, because:
I'm thinking that the device caps are being sent across due to the settings pushed out in multi-gadget.sh here: https://github.com/geerlingguy/uvc-gadget/blob/master/multi-gadget.sh#L28-L68 Those dirs, once created and in use, seem to not be able to be removed. So I might have to re-flash the Pi to switch to 720p-only mode... |
So, basically... if the device advertises 1080p and 720p (or I guess any lower res) via the files modified by the If you only have 1080p, or only 720p, then QuickTime will keep the same resolution when switching between High/Maximum. Good to know, though I would really like to be able to have the gadget switch from 720p on High to 1080p on Maximum—however, for now, I'm happy enough to just be able to set my Pi to 720p, which seems to have a lot fewer dropped frames on a Pi Zero, and is more than adequate for video conferencing or as a small camera overlay on a stream. So I'll leave 720p as the default, but I'll leave this issue open as someday I might get some time to explore supporting the automatic resolution switching. That'd be nice. |
I ran this command and now the webcam no longer shows up on my Mac. Any ideas? |
okay I rebuilt my raspi (overkill I know) How do you shut off the video streaming so that I can adjust the resolution? |
Strangely, when I try getting 720p I just get a black screen:
See config: e7a9850#diff-21c8dfbe329c77cb4e51518964c0f09a
The way it's set up it would allow 720p at the 'High' res on QuickTime Player's selection, and 1080p at the 'Maximum' res on the selection... but if I choose 720, it just shows a black frame :(
The text was updated successfully, but these errors were encountered: