Skip to content

Commit 88db408

Browse files
author
digdog・📒📗📘
committed
Comments updated, adding untested mjpeg 1080p config
1 parent 6e0e9bd commit 88db408

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

configfs.sh

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,14 +38,22 @@ mkdir -p functions/uvc.0/control/header/h
3838
ln -s functions/uvc.0/control/header/h functions/uvc.0/control/class/fs # fullspeed
3939
ln -s functions/uvc.0/control/header/h functions/uvc.0/control/class/ss # superspeed
4040

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+
4150
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)
4352
echo 1280 > functions/uvc.0/streaming/mjpeg/m/720p/wWidth
4453
echo 720 > functions/uvc.0/streaming/mjpeg/m/720p/wHeight
4554
echo 17825792 > functions/uvc.0/streaming/mjpeg/m/720p/dwMinBitRate # default is 17000000 (17Mbps, 17*1024*1024)
4655
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?)
4957

5058
# Create headers
5159
mkdir -p functions/uvc.0/streaming/header/h

0 commit comments

Comments
 (0)