@@ -38,14 +38,22 @@ mkdir -p functions/uvc.0/control/header/h
38
38
ln -s functions/uvc.0/control/header/h functions/uvc.0/control/class/fs # fullspeed
39
39
ln -s functions/uvc.0/control/header/h functions/uvc.0/control/class/ss # superspeed
40
40
41
+ # V2 module hardware spec can be found at the bottom of this page, section 6.3: https://picamera.readthedocs.io/en/latest/fov.html
42
+ # mkdir -p functions/uvc.0/streaming/mjpeg/m/1080p
43
+ # echo 333333 > functions/uvc.0/streaming/mjpeg/m/1080p/dwFrameInterval # 1/30fps*1000*1000*10 (not sure why needs *10)
44
+ # echo 1920 > functions/uvc.0/streaming/mjpeg/m/1080p/wWidth
45
+ # echo 1080 > functions/uvc.0/streaming/mjpeg/m/1080p/wHeight
46
+ # echo 17825792 > functions/uvc.0/streaming/mjpeg/m/1080p/dwMinBitRate # default is 17000000 (17Mbps, 17*1024*1024)
47
+ # echo 26214400 > functions/uvc.0/streaming/mjpeg/m/1080p/dwMaxBitRate # max is 25000000 (25Mbps, 25*1024*1024)
48
+ # echo 4147200 > functions/uvc.0/streaming/mjpeg/m/1080p/dwMaxVideoFrameBufferSize # 1920*1080*2 (not sure why is 2, maybe YUV420?)
49
+
41
50
mkdir -p functions/uvc.0/streaming/mjpeg/m/720p
42
- echo 166666 > functions/uvc.0/streaming/mjpeg/m/720p/dwFrameInterval # 1/60fps*1000*1000
51
+ echo 166666 > functions/uvc.0/streaming/mjpeg/m/720p/dwFrameInterval # 1/60fps*1000*1000*10 (not sure why needs *10)
43
52
echo 1280 > functions/uvc.0/streaming/mjpeg/m/720p/wWidth
44
53
echo 720 > functions/uvc.0/streaming/mjpeg/m/720p/wHeight
45
54
echo 17825792 > functions/uvc.0/streaming/mjpeg/m/720p/dwMinBitRate # default is 17000000 (17Mbps, 17*1024*1024)
46
55
echo 26214400 > functions/uvc.0/streaming/mjpeg/m/720p/dwMaxBitRate # max is 25000000 (25Mbps, 25*1024*1024)
47
- echo 1843200 > functions/uvc.0/streaming/mjpeg/m/720p/dwMaxVideoFrameBufferSize # 1280*720*2 (not sure why is 2)
48
- # V2 module hardware spec can be found here: https://picamera.readthedocs.io/en/latest/fov.html
56
+ echo 1843200 > functions/uvc.0/streaming/mjpeg/m/720p/dwMaxVideoFrameBufferSize # 1280*720*2 (not sure why is 2, maybe YUV420?)
49
57
50
58
# Create headers
51
59
mkdir -p functions/uvc.0/streaming/header/h
0 commit comments