mirror of
https://github.com/DrHo1y/orangepi-build.git
synced 2026-03-25 01:56:43 +07:00
external: rk3588: Update test_camera.sh
This commit is contained in:
@@ -23,3 +23,16 @@ for device_id in "${devices_id[@]}"; do
|
|||||||
video/x-raw,format=NV12,width=720,height=576,framerate=15/1 ! xvimagesink > /dev/null 2>&1 &
|
video/x-raw,format=NV12,width=720,height=576,framerate=15/1 ! xvimagesink > /dev/null 2>&1 &
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
echo "[Ctrl + C] exit"
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
sleep 10
|
||||||
|
done
|
||||||
|
|
||||||
|
trap 'onCtrlC' INT
|
||||||
|
function onCtrlC () {
|
||||||
|
echo 'Ctrl+C is captured'
|
||||||
|
killall gst-launch-1.0
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user