Video Capture Device (v4l2) plugin

mtnorbeach

New Member
Hello, I'm trying to use two Android devices as web cams for live streaming with OBS on my Linux Ubuntu 16.10 laptop. I'm using the IP Webcam app, from the Android Play Store, on both Android devices and this Linux script, on my laptop, to allow OBS to use the web cam video streams: https://github.com/bluezio/ipwebcam-gst/

Each Android device works separately with OBS.

My problem is that I can't get both Android devices to work with OBS at the same time - either USB wired or wireless.

I have read the script - linked to above - in detail and I have tried making changes to the CONFIG section as suggested within the script.

I have given up trying to get them to both work over wireless at the same time and I'm now trying to get them to work while plugged in via USB.

I have made two copies of the script and tried changing the CONFIG section in each, including each devices adb device id as suggested within the script:...

# 3. Are you plugging several devices into your PC?
#
# By default, the script assumes you're only plugging one device into
# your computer. If you're plugging in several Android devices to your
# computer, you will first need to tell this script which one should
# be used. Run 'adb devices' with only the desired device plugged in,
# and note down the identifer.
#
# Then, uncomment the line that adds the -s flag to ADB_FLAGS below,
# replacing 'deviceid' with the ID you just found, and run the script
# normally.

...and I have uncommented and made changes to the # DEVICE=/dev/video1 line i.e. I have tried uncommenting the line in both scripts and making one device DEVICE=/dev/video1 and the other DEVICE=/dev/video2 - as suggested in the section from the script, included below...

# Loopback device to be used. This only needs to be uncommented if you
# want to skip autodetection (e.g. for multiple webcams):
# DEVICE=/dev/video1

When I uncomment the DEVICE=/dev/video1 it seems to stop the device working at all!

Any help with this would be much appreciated.

Thanks, Mike
 

Yagisama

New Member
Hello, I'm trying to get my Hauppauge HD PVR 1212 to work with OBS.
I am able to add Video Capture Device (V4L2) and see the Hauppauge HD PVR in the list but the screen is just grey.
The HD PVR works with other softwares so I know it's working.

I can record with it by using:
Code:
$ cat /dev/video0 > test_clip.ts
and I can use it together with MPV and see that it's working that way also:
Code:
$ mpv /dev/video0
Here is some other information that might be helpful:
Code:
$ v4l2-ctl --list-formats
ioctl: VIDIOC_ENUM_FMT
    Index       : 0
    Type        : Video Capture
    Pixel Format: 'MPEG' (compressed)
    Name        : MPEG-1/2/4
Code:
03:47:09 PM.879: Processor: 4 logical cores
03:47:09 PM.879: Processor: AMD Phenom(tm) II X4 965 Processor
03:47:09 PM.880: Physical Memory: 7963MB Total
03:47:09 PM.880: Kernel Version: Linux 4.8.15-300.fc25.x86_64
03:47:09 PM.880: Distribution: Fedora 25
03:47:09 PM.880: Portable mode: false
03:47:09 PM.916: OBS 0.16.6 (linux)
03:47:09 PM.916: ---------------------------------
03:47:09 PM.916: ---------------------------------
03:47:09 PM.916: audio settings reset:
03:47:09 PM.916:     samples per sec: 44100
03:47:09 PM.916:     speakers:        2
03:47:10 PM.076: OpenGL version: 3.2.0 NVIDIA 375.26
03:47:10 PM.076:
03:47:10 PM.102: ---------------------------------
03:47:10 PM.102: video settings reset:
03:47:10 PM.102:     base resolution:   1920x1080
03:47:10 PM.102:     output resolution: 1280x720
03:47:10 PM.102:     downscale filter:  Bicubic
03:47:10 PM.102:     fps:               30/1
03:47:10 PM.102:     format:            NV12
03:47:10 PM.102: ---------------------------------
03:47:10 PM.122: No blackmagic support
03:47:10 PM.140: NVENC supported
03:47:10 PM.157: os_dlopen(libvlc.so.5->libvlc.so.5): libvlc.so.5: cannot open shared object file: No such file or directory
03:47:10 PM.157:
03:47:10 PM.157: Couldn't find VLC installation, VLC video source disabled
03:47:10 PM.157: ---------------------------------
03:47:10 PM.157:   Loaded Modules:
03:47:10 PM.157:     vlc-video.so
03:47:10 PM.157:     text-freetype2.so
03:47:10 PM.157:     rtmp-services.so
03:47:10 PM.157:     obs-x264.so
03:47:10 PM.157:     obs-transitions.so
03:47:10 PM.157:     obs-outputs.so
03:47:10 PM.157:     obs-filters.so
03:47:10 PM.157:     obs-ffmpeg.so
03:47:10 PM.157:     linux-v4l2.so
03:47:10 PM.157:     linux-pulseaudio.so
03:47:10 PM.157:     linux-jack.so
03:47:10 PM.157:     linux-decklink.so
03:47:10 PM.157:     linux-capture.so
03:47:10 PM.157:     linux-alsa.so
03:47:10 PM.157:     image-source.so
03:47:10 PM.157:     frontend-tools.so
03:47:10 PM.157: ==== Startup complete ===============================================
03:47:10 PM.158: Service '' not found
03:47:10 PM.166: All scene data cleared
03:47:10 PM.166: ------------------------------------------------
03:47:10 PM.174: pulse-input: Server name: 'pulseaudio 9.0'
03:47:10 PM.174: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
03:47:10 PM.175: pulse-input: Started recording from 'alsa_output.pci-0000_00_14.2.analog-stereo.monitor'
03:47:10 PM.178: pulse-input: Server name: 'pulseaudio 9.0'
03:47:10 PM.178: pulse-input: Audio format: s16le, 44100 Hz, 2 channels
03:47:10 PM.179: pulse-input: Started recording from 'alsa_input.usb-BLUE_MICROPHONE_Blue_Snowball_201011-00.analog-stereo'
03:47:10 PM.179: v4l2-input: Start capture from /dev/video0
03:47:10 PM.181: v4l2-input: Unable to open device
03:47:10 PM.181: v4l2-input: Initialization failed
03:47:10 PM.183: Switched to scene 'Scene'
03:47:10 PM.183: ------------------------------------------------
03:47:10 PM.183: Loaded scenes:
03:47:10 PM.183: - scene 'Scene':
03:47:10 PM.183:     - source: 'Video Capture Device (V4L2)' (v4l2_input)
03:47:10 PM.183: ------------------------------------------------
03:47:10 PM.681: adding 23 milliseconds of audio buffering, total audio buffering is now 23 milliseconds
03:47:10 PM.885: Update check: last known remote version is 0.4.0
03:47:12 PM.130: adding 23 milliseconds of audio buffering, total audio buffering is now 46 milliseconds
03:47:16 PM.038: ==== Shutting down ==================================================
03:47:16 PM.042: Switched to scene '(null)'
03:47:16 PM.191: pulse-input: Stopped recording from 'alsa_output.pci-0000_00_14.2.analog-stereo.monitor'
03:47:16 PM.191: pulse-input: Got 1271 packets with 353215 frames
03:47:16 PM.192: pulse-input: Stopped recording from 'alsa_input.usb-BLUE_MICROPHONE_Blue_Snowball_201011-00.analog-stereo'
03:47:16 PM.192: pulse-input: Got 595 packets with 263771 frames
03:47:16 PM.193: All scene data cleared
03:47:16 PM.193: ------------------------------------------------
03:47:16 PM.269: Freeing OBS context data
03:47:16 PM.279: == Profiler Results =============================
03:47:16 PM.279: run_program_init: 708.106 ms
03:47:16 PM.279:  ┣OBSApp::AppInit: 5.785 ms
03:47:16 PM.279:  ┃ ┗OBSApp::InitLocale: 1.956 ms
03:47:16 PM.279:  ┗OBSApp::OBSInit: 391.304 ms
03:47:16 PM.280:    ┣obs_startup: 1.086 ms
03:47:16 PM.280:    ┗OBSBasic::OBSInit: 317.459 ms
03:47:16 PM.280:      ┣OBSBasic::InitBasicConfig: 0.105 ms
03:47:16 PM.280:      ┣OBSBasic::ResetAudio: 0.114 ms
03:47:16 PM.280:      ┣OBSBasic::ResetVideo: 186.375 ms
03:47:16 PM.280:      ┣OBSBasic::InitOBSCallbacks: 0.005 ms
03:47:16 PM.280:      ┣OBSBasic::InitHotkeys: 0.043 ms
03:47:16 PM.280:      ┣obs_load_all_modules: 54.484 ms
03:47:16 PM.280:      ┃ ┣obs_init_module(frontend-tools.so): 1.608 ms
03:47:16 PM.280:      ┃ ┣obs_init_module(image-source.so): 0.004 ms
03:47:16 PM.280:      ┃ ┣obs_init_module(linux-alsa.so): 0.002 ms
03:47:16 PM.280:      ┃ ┣obs_init_module(linux-capture.so): 0.488 ms
03:47:16 PM.280:      ┃ ┣obs_init_module(linux-decklink.so): 0.178 ms
03:47:16 PM.280:      ┃ ┣obs_init_module(linux-jack.so): 0.003 ms
03:47:16 PM.280:      ┃ ┣obs_init_module(linux-pulseaudio.so): 0.004 ms
03:47:16 PM.280:      ┃ ┣obs_init_module(linux-v4l2.so): 0.005 ms
03:47:16 PM.280:      ┃ ┣obs_init_module(obs-ffmpeg.so): 8.918 ms
03:47:16 PM.280:      ┃ ┣obs_init_module(obs-filters.so): 0.019 ms
03:47:16 PM.280:      ┃ ┣obs_init_module(obs-outputs.so): 0.002 ms
03:47:16 PM.280:      ┃ ┣obs_init_module(obs-transitions.so): 0.011 ms
03:47:16 PM.280:      ┃ ┣obs_init_module(obs-x264.so): 0.001 ms
03:47:16 PM.280:      ┃ ┣obs_init_module(rtmp-services.so): 0.714 ms
03:47:16 PM.280:      ┃ ┣obs_init_module(text-freetype2.so): 0.019 ms
03:47:16 PM.280:      ┃ ┗obs_init_module(vlc-video.so): 1.122 ms
03:47:16 PM.280:      ┣OBSBasic::ResetOutputs: 0.567 ms
03:47:16 PM.280:      ┣OBSBasic::CreateHotkeys: 0.026 ms
03:47:16 PM.280:      ┣OBSBasic::InitService: 0.049 ms
03:47:16 PM.280:      ┣OBSBasic::InitPrimitives: 6.014 ms
03:47:16 PM.280:      ┗OBSBasic::Load: 19.061 ms
03:47:16 PM.280: obs_hotkey_thread(25 ms): min=0.054 ms, median=0.277 ms, max=28.513 ms, 99th percentile=17.447 ms, 99.5935% below 25 ms
03:47:16 PM.280: audio_thread(Audio): min=0 ms, median=0.149 ms, max=0.491 ms, 99th percentile=0.344 ms
03:47:16 PM.280: obs_video_thread(33.3333 ms): min=1.377 ms, median=3.492 ms, max=30.431 ms, 99th percentile=29.68 ms, 100% below 33.333 ms
03:47:16 PM.280:  ┣tick_sources: min=0 ms, median=0.014 ms, max=0.055 ms, 99th percentile=0.02 ms
03:47:16 PM.280:  ┣render_displays: min=0.198 ms, median=1.049 ms, max=27.429 ms, 99th percentile=26.78 ms
03:47:16 PM.280:  ┗output_frame: min=0.753 ms, median=2.333 ms, max=7.707 ms, 99th percentile=6.511 ms
03:47:16 PM.280:    ┣gs_context(video->graphics): min=0.359 ms, median=1.031 ms, max=5.275 ms, 99th percentile=3.93 ms
03:47:16 PM.280:    ┃ ┣render_video: min=0.215 ms, median=0.682 ms, max=4.624 ms, 99th percentile=3.725 ms
03:47:16 PM.280:    ┃ ┃ ┣render_main_texture: min=0.05 ms, median=0.149 ms, max=1.548 ms, 99th percentile=0.914 ms
03:47:16 PM.280:    ┃ ┃ ┣render_output_texture: min=0.003 ms, median=0.193 ms, max=3.094 ms, 99th percentile=1.603 ms
03:47:16 PM.280:    ┃ ┃ ┣render_convert_texture: min=0.002 ms, median=0.158 ms, max=1.034 ms, 99th percentile=0.944 ms
03:47:16 PM.280:    ┃ ┃ ┗stage_output_texture: min=0 ms, median=0.093 ms, max=3.869 ms, 99th percentile=3.193 ms
03:47:16 PM.280:    ┃ ┣download_frame: min=0 ms, median=0.006 ms, max=0.252 ms, 99th percentile=0.09 ms
03:47:16 PM.280:    ┃ ┗gs_flush: min=0.005 ms, median=0.018 ms, max=0.258 ms, 99th percentile=0.104 ms
03:47:16 PM.280:    ┗output_video_data: min=0.52 ms, median=1.281 ms, max=7.166 ms, 99th percentile=2.993 ms
03:47:16 PM.280: video_thread(video): min=0.001 ms, median=0.002 ms, max=0.893 ms, 99th percentile=0.12 ms
03:47:16 PM.280: =================================================
03:47:16 PM.280: == Profiler Time Between Calls ==================
03:47:16 PM.280: obs_hotkey_thread(25 ms): min=25.128 ms, median=25.379 ms, max=53.597 ms, 85.7143% within ±2% of 25 ms (0% lower, 14.2857% higher)
03:47:16 PM.280: obs_video_thread(33.3333 ms): min=32.794 ms, median=33.331 ms, max=33.87 ms, 100% within ±2% of 33.333 ms (0% lower, 0% higher)
03:47:16 PM.280: =================================================
03:47:16 PM.286: Number of memory leaks: 0
 

cRaZy-bisCuiT

New Member
Dear Leonhard,

it seems like settings of the Webcams are still hard coded, right? With guvcview I have access to all settings of the Logitech C920. With OBS this (as well as all cameras) are almost unusable, since higher resolutions with higher framerates are not possible since there's a lack of MJPG and h.264. Could you please implement either a non-hard-coded-way or another possiblity to adjust the output?

Code:
v4l2-ctl --list-formats
ioctl: VIDIOC_ENUM_FMT
    Index       : 0
    Type        : Video Capture
    Pixel Format: 'YUYV'
    Name        : YUYV 4:2:2

    Index       : 1
    Type        : Video Capture
    Pixel Format: 'H264' (compressed)
    Name        : H.264

    Index       : 2
    Type        : Video Capture
    Pixel Format: 'MJPG' (compressed)
    Name        : Motion-JPEG
Please also have a look in my thread [0] for details about the OBS settings and missing settings. If you need some kind of log, please do let me know!

[0] https://obsproject.com/forum/threads/missing-webcam-settings-for-obs-linux.62671/
 
Last edited:

Take Vos

New Member
I have multiple cameras: a C922 via USB, and a Magewell Pro HDMI, and in the future I am adding another Magewell Pro HDMI 4k.

My issue is that OBS v4l2 plugin stores /dev/video* devices in the preferences file. But at least on my computer the two devices are enumerated in a different order on each reboot.

It is not possible to change the enumeration of /dev/video* devices using udev. It is only possible to add symbolic links to new names in /dev with udev. Neither will OBS work correctly after manually renaming the /dev/video* devices and recreating them in a different order using mknod.

In the end I had to blacklist the USB driver and manually modprobe it from /etc/rc.local. So that the Magewell Pro was recognised first and always be /dev/video0. I am a little bit scared about having two Magewell cards and the order they will be enumerated though.

In any case storing the /dev/video* device names in the preference files is probably not the best way to consistently point to the same actual device.

I am not sure what is better, for me the description strings are different, I have not checked if those can be modified from within udev though. Or maybe a way for people to actually enter a device filename, one which can be created from within udev.
 

Take Vos

New Member
Is it possible to add a few 21:9 resolution options to the v4l2 plugin. I compiled OBS myself and added 2560x1080, which is the resolution of my LG monitor I capture. LG also has another 21:9 monitor with this resolution: 3440x1440.

I have created a pull request for this issue: https://github.com/jp9000/obs-studio/pull/1117
 
Last edited:

Kyle1974

New Member
Hi
So I have been happily using OBS for a week and have been using different cameras I had laying around. I have just bought two identical webcams for streaming. Now I find that both the 2 new HD cameras work but my old existing webcam cannot be added as a third option? I have tried or I cannot see a preview from it in OBS.

I can use the two new cameras only but it would be nice if I could have my third shot back? Is this a linux issue or my configuration rather than an OBS problem?

This is what I got when I used the v4l2-ctl --list-formats command.

ioctl: VIDIOC_ENUM_FMT
Index : 0
Type : Video Capture
Pixel Format: 'MJPG' (compressed)
Name : Motion-JPEG

Do I need to include the OBS log file as well? Sorry, I am new to this aspect.

Thanks
Kyle
 

nunks

New Member
Hi, comparing video input options on OBS running both on Windows 8 and Ubuntu Linux 18.04, I noticed the Windows version has a lot more configuration options, like image correction, auto white balance, power line frequency, auto focus etc. Is there any way to incorporate this settings on OBS for Linux as well? My camera supports these settings through v4l2, and I can set them from the command line, but it would be awesome to see them on OBS GUI as well:

I'm using a Logitech C925e camera and OBS versions 21.1.0 (from the official PPA) and 21.1.1-208-g88ee9a0c (I built it to use to try out GloriousEgroll's VAAPI plugin).

Code:
nunks@konata:~$ uname -a
Linux konata 4.15.0-24-generic #26-Ubuntu SMP Wed Jun 13 08:44:47 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux

nunks@konata:~$ v4l2-ctl --list-devices
Logitech Webcam C925e (usb-0000:00:14.0-4):
        /dev/video1

WebCam SC-13HDL11939N: WebCam S (usb-0000:00:1a.0-1.4):
        /dev/video0

nunks@konata:~$ v4l2-ctl -d /dev/video1 --list-ctrls
                     brightness 0x00980900 (int)    : min=0 max=255 step=1 default=128 value=128
                       contrast 0x00980901 (int)    : min=0 max=255 step=1 default=128 value=128
                     saturation 0x00980902 (int)    : min=0 max=255 step=1 default=128 value=128
 white_balance_temperature_auto 0x0098090c (bool)   : default=1 value=1
                           gain 0x00980913 (int)    : min=0 max=255 step=1 default=0 value=0
           power_line_frequency 0x00980918 (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature 0x0098091a (int)    : min=2000 max=6500 step=1 default=4000 value=4000 flags=inactive
                      sharpness 0x0098091b (int)    : min=0 max=255 step=1 default=128 value=128
         backlight_compensation 0x0098091c (int)    : min=0 max=1 step=1 default=0 value=0
                  exposure_auto 0x009a0901 (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute 0x009a0902 (int)    : min=3 max=2047 step=1 default=250 value=250 flags=inactive
         exposure_auto_priority 0x009a0903 (bool)   : default=0 value=1
                   pan_absolute 0x009a0908 (int)    : min=-36000 max=36000 step=3600 default=0 value=0
                  tilt_absolute 0x009a0909 (int)    : min=-36000 max=36000 step=3600 default=0 value=0
                 focus_absolute 0x009a090a (int)    : min=0 max=250 step=5 default=0 value=0 flags=inactive
                     focus_auto 0x009a090c (bool)   : default=1 value=1
                  zoom_absolute 0x009a090d (int)    : min=100 max=500 step=1 default=100 value=100
 

YaLTeR

New Member
Hello!

The cam support works great, however I've the following issue: I have two USB webcams, I'm using both in OBS, but it seems that their order is random every boot, so occasionally the first source starts showing the second webcam and the second source starts showing the first webcam (and I need to manually go into their settings and fix them).

Is there any way of dealing with this? Perhaps storing webcam sources by device name? (I've no idea how it currently works)

Thanks in advance!
 

majenko

New Member
Is there a way of "fixing" cameras to specific sources? I have a couple of USB cameras, but they're not always connected at bootup. Thus, the order they appear in /dev/ changes. OBS seems to store /dev/videoX in the source settings, so the cameras keep switching around and i have to reconfigure my scenes every time to get the right cameras showing in the right places.

It would be much nicer if instead you could select the /dev/v4l/by-id/usb-046d_HD_Pro_Webcam_C920_4CF27C6F-video-index0 (for example) links so that no matter what order your video devices are detected in (or connected in) you get the same setup. It would make life so much better...

Or is there already a way of "bending" the system to do that by editing some configuration files somewhere?

----

Edit: I found .config/obs-studio/basic/scenes/Untitled.json which contains the selected devices. I changed those to the links instead and it *appears* to work. Is this the generally accepted method, or is there a better one?
 

sancT

New Member
Is there a way of "fixing" cameras to specific sources? I have a couple of USB cameras, but they're not always connected at bootup. Thus, the order they appear in /dev/ changes. OBS seems to store /dev/videoX in the source settings, so the cameras keep switching around and i have to reconfigure my scenes every time to get the right cameras showing in the right places.

It would be much nicer if instead you could select the /dev/v4l/by-id/usb-046d_HD_Pro_Webcam_C920_4CF27C6F-video-index0 (for example) links so that no matter what order your video devices are detected in (or connected in) you get the same setup. It would make life so much better...

Or is there already a way of "bending" the system to do that by editing some configuration files somewhere?

----

Edit: I found .config/obs-studio/basic/scenes/Untitled.json which contains the selected devices. I changed those to the links instead and it *appears* to work. Is this the generally accepted method, or is there a better one?
Thankyou kissanime gamekiller vivavideo. As i experienced, both are easy and good.
 
Last edited:

retanicus

New Member
Hey all!
So I have an Hauppauge WinTV PVR-150 that doesn't seem to be capturing, I made a post here: https://obsproject.com/forum/threads/hauppauge-wintv-pvr-150-and-ubuntu-16-04.97515/ (however I've been waiting on the mods to make it public since Friday...).

I have details in the post including a dmesg output as well as v4l2-ctl output. I thought the PVR-150 worked in OBS? I get audio output from the card, but no matter what I do, I can't seem to get video output. /dev/video32 is the output for the card.
 
Last edited:

THG

New Member
Colorspace/Range is currently handled incorrectly (not at all)
Any update on this? It would be great to be able to capture with full range. I'm faffing around with ffmpeg itself trying to get that sorted out and would rather be using OBS for ease of use.
 

DMJC

New Member
I've got a Logitech Brio 1080p@60fps/4K@30fps webcam.
When I run guvcview I can use 1080p@30/60fps and when I use USB-C I can get 4K. I can also get 1080p/60 in qv4l2. In both cases I get an option for MJPEG. The emulated modes do NOT work with this camera, they deliver only 5 FPS speed in OBS. Only the mode that has MJPEG works at 30/60FPS. In OBS MJPEG is not a selectable option.

Output of Camera formats:
v4l2-ctl --list-formats -d /dev/video2
ioctl: VIDIOC_ENUM_FMT
Type: Video Capture

[0]: 'YUYV' (YUYV 4:2:2)
[1]: 'MJPG' (Motion-JPEG, compressed)
[2]: 'NV12' (Y/CbCr 4:2:0)

When I run this camera in OBS I can't select any resolutions above 800x600, despite my canvas being set to 1920x1080. I want to have my camera footage running at 1920x1080 taking up the full canvas area as I intend to use OBS to record videos for Youtube. (I've just tested and found that 1920x1080 runs at 5FPS in OBS).
 
Last edited:

vu2tve

New Member
Is there a way of "fixing" cameras to specific sources? I have a couple of USB cameras, but they're not always connected at bootup. Thus, the order they appear in /dev/ changes. OBS seems to store /dev/videoX in the source settings, so the cameras keep switching around and i have to reconfigure my scenes every time to get the right cameras showing in the right places.

It would be much nicer if instead you could select the /dev/v4l/by-id/usb-046d_HD_Pro_Webcam_C920_4CF27C6F-video-index0 (for example) links so that no matter what order your video devices are detected in (or connected in) you get the same setup. It would make life so much better...

Or is there already a way of "bending" the system to do that by editing some configuration files somewhere?

----

Edit: I found .config/obs-studio/basic/scenes/Untitled.json which contains the selected devices. I changed those to the links instead and it *appears* to work. Is this the generally accepted method, or is there a better one?

I would also love to know if there is a "proper" way for this?
 

AlexDarkTech

New Member
I have h.264 1080p vebcam. In OBS It works 720p max. In VLC, ffmpeg and Qt V4L2 test Utility1080p work fine.

Code:
v4l2-ctl --list-formats
ioctl: VIDIOC_ENUM_FMT
    Index       : 0
    Type        : Video Capture
    Pixel Format: 'MJPG' (compressed)
    Name        : Motion-JPEG

    Index       : 1
    Type        : Video Capture
    Pixel Format: 'YUYV'
    Name        : YUYV 4:2:2
Code:
v4l2-ctl -d /dev/video1 --list-formats
ioctl: VIDIOC_ENUM_FMT
    Index       : 0
    Type        : Video Capture
    Pixel Format: 'H264' (compressed)
    Name        : H.264
 

Attachments

Top