Skip to content

Commit

Permalink
refactor: change __hardware_gstreamer_test_picture to automatic stop
Browse files Browse the repository at this point in the history
Set num-buffers=30 instead of 1 is because the first frame exposure parameters of some cameras are not ideal, you need to wait for the exposure algorithm to run.

* fixes #79
  • Loading branch information
CodeChenL authored and RadxaYuntian committed Oct 28, 2024
1 parent ae2b5dd commit ba31ad8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/usr/lib/rsetup/tui/hardware/hardware.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ __hardware_gstreamer_test_picture() {
local temp
temp="$(mktemp "${TEMPDIR:-/tmp}/tmp.XXXXXXXXXX.jpg")"

if gst-launch-1.0 v4l2src "device=/dev/$RSETUP_GSTREAMER_DEVICE" io-mode=4 ! \
if gst-launch-1.0 v4l2src "device=/dev/$RSETUP_GSTREAMER_DEVICE" io-mode=4 num-buffers=30 ! \
autovideoconvert ! \
video/x-raw,format=UYVY,width=1920,height=1080 ! \
jpegenc ! \
Expand Down

0 comments on commit ba31ad8

Please sign in to comment.