Skip to content

Instantly share code, notes, and snippets.

@tnishinaga
Last active June 12, 2018 17:19
Show Gist options
  • Save tnishinaga/66733cb040c3bd6cb5fbe5a3f52a4458 to your computer and use it in GitHub Desktop.
Save tnishinaga/66733cb040c3bd6cb5fbe5a3f52a4458 to your computer and use it in GitHub Desktop.
tnishinaga@tx230> v4l2-ctl --list-formats-ext -d 2                                                                                                                                                                                           ~
ioctl: VIDIOC_ENUM_FMT
        Index       : 0
        Type        : Video Capture
        Pixel Format: 'MJPG' (compressed)
        Name        : Motion-JPEG
                Size: Discrete 640x480
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 1280x720
                        Interval: Discrete 0.067s (15.000 fps)
                Size: Discrete 1600x1200
                        Interval: Discrete 0.067s (15.000 fps)
                Size: Discrete 1920x1080
                        Interval: Discrete 0.067s (15.000 fps)
                Size: Discrete 2048x1536
                        Interval: Discrete 0.067s (15.000 fps)

        Index       : 1
        Type        : Video Capture
        Pixel Format: 'YUYV'
        Name        : YUYV 4:2:2
                Size: Discrete 640x480
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 320x240
                        Interval: Discrete 0.033s (30.000 fps)
                Size: Discrete 1280x720
                        Interval: Discrete 0.133s (7.500 fps)
                Size: Discrete 1600x1200
                        Interval: Discrete 0.200s (5.000 fps)
                Size: Discrete 1920x1080
                        Interval: Discrete 0.200s (5.000 fps)
                Size: Discrete 2048x1536
                        Interval: Discrete 0.250s (4.000 fps)

tnishinaga@tx230> v4l2-ctl -d 2 --set-fmt-video=width=640,height=480,pixelformat=0                                                                                                                                                           ~
tnishinaga@tx230> v4l2-ctl -d 2 --stream-mmap=3 --stream-count=300                                                                                                                                                                           ~
<<<<<<<<<<<<<<<<< 15.68 fps
<<<<<<<<< 11.79 fps
<<<<<< 10.13 fps
<<<<<< 9.22 fps
<<<<<<< 8.61 fps
<<<<<< 8.26 fps
<<<<<< 8.00 fps
<<<< 7.26 fps
<<< 6.84 fps
<<< 6.50 fps
<<< 6.22 fps
<<< 5.98 fps
<<<< 5.71 fps
<<< 5.55 fps
<<< 5.40 fps

[130] tnishinaga@tx230> v4l2-ctl -d 2 --set-fmt-video=width=640,height=480,pixelformat=1                                                                                                                                                     ~
tnishinaga@tx230> v4l2-ctl -d 2 --stream-mmap=3 --stream-count=300                                                                                                                                                                           ~
<<<<<<<<<<<<<<<<< 14.54 fps
<<<<<<<< 11.53 fps
<<<<<< 9.93 fps
<<<<<<< 8.95 fps
<<<<<< 8.48 fps
<<<<<< 8.15 fps
<<<<<<< 7.70 fps
<<< 7.18 fps
<<< 6.76 fps
<<< 6.43 fps
<<< 6.15 fps
<<<< 5.84 fps
<<< 5.66 fps
<<< 5.49 fps
<<< 5.35 fps
<<< 5.22 fps
<<< 5.10 fps
<<<< 4.97 fps
<<< 4.88 fps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment