forked from climberhunt/uvc-gadget
-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e7a9850
commit f2a2538
Showing
2 changed files
with
11 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
#!/bin/bash | ||
|
||
# Run multi-gadget setup script. | ||
sudo /home/pi/uvc-gadget/multi-gadget.sh | ||
|
||
# Set some camera control options. | ||
/usr/bin/v4l2-ctl -c auto_exposure=0 | ||
/usr/bin/v4l2-ctl -c auto_exposure_bias=8 | ||
/usr/bin/v4l2-ctl -c contrast=20 | ||
/usr/bin/v4l2-ctl -c video_bitrate=25000000 | ||
sudo /home/pi/uvc-gadget/uvc-gadget -f1 -s2 -r1 -u /dev/video1 -v /dev/video0 | ||
|
||
# Configure the stream with uvc-gadget. | ||
sudo /home/pi/uvc-gadget/uvc-gadget -f1 -s1 -r0 -u /dev/video1 -v /dev/video0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters