Skip to content

Commit

Permalink
v4l2camera: MJPGH264: limit the MJPG resolution
Browse files Browse the repository at this point in the history
fix for 1080p streams
  • Loading branch information
soyersoyer committed Jul 19, 2022
1 parent bc85855 commit fec1867
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion v4l2camera.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ def __init__(self, device, pipe, config):
params['uvcx_h264_stream_mux'] = 'H264'
params['uvcx_h264_width'] = width
params['uvcx_h264_height'] = height

# limit the MJPG stream resolution to spare with the USB bandwidth
capture_width = 640
capture_height = 480

self.ctrls = V4L2Ctrls(self.device, self.fd)
self.ctrls.setup_v4l2_ctrls(params)
Expand Down

0 comments on commit fec1867

Please sign in to comment.