Skip to content
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

how to change the frame rate of camera #25

Open
imharish63 opened this issue Aug 24, 2021 · 2 comments
Open

how to change the frame rate of camera #25

imharish63 opened this issue Aug 24, 2021 · 2 comments

Comments

@imharish63
Copy link

while transmitting over network , i could see the frame rate is 109. but when the following command is used: v4l2-ctl -L
i am not able to set the frame rate as i can't see any option. check the parameters below:

User Controls

                 brightness 0x00980900 (int)    : min=0 max=63 step=1 default=0 value=0 flags=slider
                 saturation 0x00980902 (int)    : min=0 max=200 step=1 default=100 value=100 flags=slider
                        hue 0x00980903 (int)    : min=-4000 max=4000 step=1 default=0 value=0 flags=slider
         auto_white_balance 0x0098090c (bool)   : default=0 value=0
              white_balance 0x0098090d (button) : flags=write-only, execute-on-write
                red_balance 0x0098090e (int)    : min=0 max=8000 step=1 default=1930 value=1930 flags=slider
               blue_balance 0x0098090f (int)    : min=0 max=8000 step=1 default=1500 value=1500 flags=slider
                      gamma 0x00980910 (int)    : min=40 max=240 step=5 default=100 value=100 flags=slider
                   exposure 0x00980911 (int)    : min=63912 max=2147483647 step=15 default=5000000 value=5000007 flags=slider
                  auto_gain 0x00980912 (bool)   : default=0 value=0
                       gain 0x00980913 (int)    : min=0 max=1138 step=10 default=0 value=0 flags=slider
                  reverse_x 0x00980914 (bool)   : default=0 value=0
                  reverse_y 0x00980915 (bool)   : default=0 value=0
      frame_timeout_enabled 0x009809c8 (bool)   : default=1 value=1
              frame_timeout 0x009809c9 (int)    : min=100 max=12000 step=1 default=12000 value=12000
   stride_alignment_enabled 0x009809ca (bool)   : default=1 value=1
     crop_alignment_enabled 0x009809cb (bool)   : default=1 value=1

Camera Controls

              exposure_auto 0x009a0901 (menu)   : min=0 max=1 default=1 value=1
			0: Auto Mode
			1: Manual Mode
          exposure_absolute 0x009a0902 (int64)  : min=1 max=100000 step=1 default=1 value=50
          exposure_auto_min 0x009a0928 (int)    : min=63912 max=2147483647 step=15 default=63912 value=63912 flags=slider
          exposure_auto_max 0x009a0929 (int)    : min=63912 max=2147483647 step=15 default=2147483647 value=2147483647 flags=slider
              auto_gain_min 0x009a092a (int)    : min=0 max=1138 step=10 default=0 value=0 flags=slider
              auto_gain_max 0x009a092b (int)    : min=0 max=1138 step=10 default=1138 value=1138 flags=slider
                bypass_mode 0x009a2064 (intmenu): min=0 max=1 default=0 value=0
			0: 0 (0x0)
			1: 1 (0x1)
            override_enable 0x009a2065 (intmenu): min=0 max=1 default=0 value=0
			0: 0 (0x0)
			1: 1 (0x1)
               height_align 0x009a2066 (int)    : min=1 max=16 step=1 default=1 value=1
                 size_align 0x009a2067 (intmenu): min=0 max=2 default=0 value=0
			0: 1 (0x1)
			1: 65536 (0x10000)
			2: 131072 (0x20000)
           write_isp_format 0x009a2068 (bool)   : default=0 value=0
   sensor_signal_properties 0x009a2069 (u32)    : min=0 max=4294967295 step=1 default=0 [30][18] flags=read-only, has-payload
    sensor_image_properties 0x009a206a (u32)    : min=0 max=4294967295 step=1 default=0 [30][16] flags=read-only, has-payload
  sensor_control_properties 0x009a206b (u32)    : min=0 max=4294967295 step=1 default=0 [30][36] flags=read-only, has-payload
          sensor_dv_timings 0x009a206c (u32)    : min=0 max=4294967295 step=1 default=0 [30][16] flags=read-only, has-payload
           low_latency_mode 0x009a206d (bool)   : default=0 value=0
           preferred_stride 0x009a206e (int)    : min=0 max=65535 step=1 default=0 value=0
               sensor_modes 0x009a2082 (int)    : min=0 max=30 step=1 default=30 value=1 flags=read-only
@arunprakash-avt
Copy link

For setting the FPS using V4L2-CTL use the below command
v4l2-ctl --set-parm=50
But this will not work if the exposure time is to high. For example, in order to have 50fps, then the exposure time has to be lower than 1/50 = 20ms.

@imharish63
Copy link
Author

Does the change is reflected in any parameter. so that i can monitor for example. that the systems is now 50 fps.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants