increasing webcam resolution

wrathkeg

New Member
Hello,

I have a USB webcam. I can use OBS to record video from it up to 640x480. If I select any of the higher resolution options (1280x720, 1920x1080, 2592x1944) the webcam feed is basically static in the preview, and in any recording. Can I fix this in some way, or is it just the limitation of my system? I've put what looks like the relevant bit of the log file below, while the webcam was set on 640x480.

Thanks,

wrathkeg


11:31:10.741: CPU Name: Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz
11:31:10.741: CPU Speed: 800.024MHz
11:31:10.742: Physical Cores: 4, Logical Cores: 8
11:31:10.742: Physical Memory: 7826MB Total, 3480MB Free
11:31:10.742: Kernel Version: Linux 5.4.0-48-generic
11:31:10.743: Distribution: "Ubuntu" "20.04"
11:31:10.744: Window System: X11.0, Vendor: The X.Org Foundation, Version: 1.20.8
11:31:10.747: Portable mode: false
11:31:10.837: OBS 26.0.0 (linux)
11:31:10.837: ---------------------------------
11:31:10.838: ---------------------------------
11:31:10.838: audio settings reset:
11:31:10.838: samples per sec: 48000
11:31:10.838: speakers: 2
11:31:10.844: ---------------------------------
11:31:10.844: Initializing OpenGL...
11:31:10.897: Loading up OpenGL on adapter Intel Mesa Intel(R) UHD Graphics 620 (KBL GT2)
11:31:10.898: OpenGL loaded successfully, version 4.6 (Core Profile) Mesa 20.0.8, shading language 4.60
11:31:10.909: ---------------------------------
11:31:10.910: video settings reset:
11:31:10.910: base resolution: 1280x720
11:31:10.910: output resolution: 1280x720
11:31:10.910: downscale filter: Bicubic
11:31:10.910: fps: 30/1
11:31:10.910: format: NV12
11:31:10.910: YUV mode: 709/Partial
11:31:10.910: NV12 texture support not available
11:31:10.910: Audio monitoring device:
11:31:10.910: name: Default
11:31:10.910: id: default
11:31:10.910: ---------------------------------
11:31:10.912: Failed to load 'en-US' text for module: 'decklink-ouput-ui.so'
11:31:10.988: A DeckLink iterator could not be created. The DeckLink drivers may not be installed
11:31:10.988: No blackmagic support
11:31:10.992: [obs-browser]: Version 2.8.7
11:31:11.007: os_dlopen(libnvidia-encode.so.1->libnvidia-encode.so.1): libnvidia-encode.so.1: cannot open shared object file: No such file or directory
11:31:11.007:
11:31:11.007: FFMPEG VAAPI supported
11:31:11.017: VLC found, VLC video source enabled
11:31:11.017: ---------------------------------
11:31:11.017: Loaded Modules:
11:31:11.017: vlc-video.so
11:31:11.017: text-freetype2.so
11:31:11.017: rtmp-services.so
11:31:11.017: obs-x264.so
11:31:11.017: obs-vst.so
11:31:11.017: obs-transitions.so
11:31:11.017: obs-outputs.so
11:31:11.017: obs-libfdk.so
11:31:11.017: obs-filters.so
11:31:11.017: obs-ffmpeg.so
11:31:11.017: obs-browser.so
11:31:11.017: linux-v4l2.so
11:31:11.017: linux-pulseaudio.so
11:31:11.017: linux-jack.so
11:31:11.017: linux-decklink.so
11:31:11.017: linux-capture.so
11:31:11.017: linux-alsa.so
11:31:11.017: image-source.so
11:31:11.017: frontend-tools.so
11:31:11.017: decklink-ouput-ui.so
11:31:11.017: ---------------------------------
11:31:11.017: os_dlopen(../obs-plugins/obs-browser->../obs-plugins/obs-browser.so): ../obs-plugins/obs-browser.so: cannot open shared object file: No such file or directory
11:31:11.017:
11:31:11.017: ==== Startup complete ===============================================
11:31:11.021: All scene data cleared
11:31:11.021: ------------------------------------------------
11:31:11.026: pulse-input: Server name: 'pulseaudio 13.99.1'
11:31:11.026: pulse-input: Audio format: s16le, 48000 Hz, 2 channels
11:31:11.026: pulse-input: Started recording from 'alsa_output.pci-0000_00_1f.3.analog-stereo.monitor'
11:31:11.026: [Loaded global audio device]: 'system sounds'
11:31:11.346: pulse-input: Server name: 'pulseaudio 13.99.1'
11:31:11.349: pulse-input: An error occurred while getting the source info!
11:31:11.352: [Loaded global audio device]: 'usb mic'
11:31:11.352: - filter: 'Noise Suppression' (noise_suppress_filter)
11:31:11.352: - filter: 'Compressor' (compressor_filter)
11:31:11.359: pulse-input: Server name: 'pulseaudio 13.99.1'
11:31:11.359: pulse-input: An error occurred while getting the source info!
11:31:11.363: v4l2-input: Start capture from /dev/video2
11:31:11.499: v4l2-input: Input: 0
11:31:11.558: v4l2-input: Resolution: 640x480
11:31:11.558: v4l2-input: Pixelformat: YUYV
11:31:11.558: v4l2-input: Linesize: 1280 Bytes
11:31:11.559: v4l2-input: Framerate: 30.00 fps
11:31:11.565: xshm-input: Geometry 1920x1080 @ 0,0
11:31:11.568: xshm-input: Geometry 1920x1080 @ 0,0
 

wrathkeg

New Member
Through trial and error I have found that in the properties for the webcam source, if I change "Video format" to anything other than YUYV 4:2:2 (so "BGR3 (Emulated)", YU12 (Emulated)" or "BGR3 (Emulated)") then all of the displayed resolutions work fine up to (and including 1920x1080). I have no idea what those video format options refer to but at least it seems to work.

wrathkeg
 
Top