File tree Expand file tree Collapse file tree 4 files changed +11
-15
lines changed
Expand file tree Collapse file tree 4 files changed +11
-15
lines changed Original file line number Diff line number Diff line change 1414 steps :
1515 - name : Checkout
1616 uses : actions/checkout@v3
17+ with :
18+ fetch-depth : 0
19+ submodules : recursive
1720
1821 - name : Load values vars.mk
1922 run : cat vars.mk >> "$GITHUB_ENV"
Original file line number Diff line number Diff line change @@ -8,8 +8,8 @@ CMD_CAPTURE_ARGS="--device /dev/video11 --format nv12 --jpeg-quality 7 --jpeg-so
88CMD_HTTP=/usr/local/bin/stream-http.py
99CMD_HTTP_ARGS=" --jpeg-sock /tmp/capture-mipi-jpeg.sock --mjpeg-sock /tmp/capture-mipi-mjpeg.sock --h264-sock /tmp/capture-mipi-h264.sock --bind 127.0.0.1"
1010
11- CMD_MQTT =/usr/local/bin/stream-mqtt.py
12- CMD_MQTT_ARGS =" --jpeg-sock /tmp/capture-mipi-jpeg.sock --publish-dir /home/lava/printer_data/camera"
11+ CMD_SNAP_MQTT =/usr/local/bin/stream-snap -mqtt.py
12+ CMD_SNAP_MQTT_ARGS =" --jpeg-sock /tmp/capture-mipi-jpeg.sock --publish-dir /home/lava/printer_data/camera"
1313
1414start () {
1515 if [ ! -e /dev/video11 ]; then
@@ -25,14 +25,14 @@ start() {
2525 start-stop-daemon -S -b -q -m -p /var/run/stream-mipi-http.pid -c lava -x /usr/bin/python3 -- $CMD_HTTP $CMD_HTTP_ARGS
2626 echo " OK"
2727
28- printf " Starting stream-mqtt: "
29- start-stop-daemon -S -b -q -m -p /var/run/stream-mipi-mqtt.pid -c lava -x /usr/bin/python3 -- $CMD_MQTT $CMD_MQTT_ARGS
28+ printf " Starting stream-snap- mqtt: "
29+ start-stop-daemon -S -b -q -m -p /var/run/stream-mipi-snap- mqtt.pid -c lava -x /usr/bin/python3 -- $CMD_SNAP_MQTT $CMD_SNAP_MQTT_ARGS
3030 echo " OK"
3131}
3232
3333stop () {
34- printf " Stopping stream-mqtt: "
35- start-stop-daemon -K -q -p /var/run/stream-mipi-mqtt.pid
34+ printf " Stopping stream-snap- mqtt: "
35+ start-stop-daemon -K -q -p /var/run/stream-mipi-snap- mqtt.pid
3636 echo " OK"
3737
3838 printf " Stopping stream-http: "
Original file line number Diff line number Diff line change @@ -21,17 +21,9 @@ start() {
2121 printf " Starting stream-http: "
2222 start-stop-daemon -S -b -q -m -p /var/run/stream-usb-http.pid -c lava -x /usr/bin/python3 -- $CMD_HTTP $CMD_HTTP_ARGS
2323 echo " OK"
24-
25- printf " Starting stream-mqtt: "
26- start-stop-daemon -S -b -q -m -p /var/run/stream-usb-mqtt.pid -c lava -x /usr/bin/python3 -- $CMD_MQTT $CMD_MQTT_ARGS
27- echo " OK"
2824}
2925
3026stop () {
31- printf " Stopping stream-mqtt: "
32- start-stop-daemon -K -q -p /var/run/stream-usb-mqtt.pid
33- echo " OK"
34-
3527 printf " Stopping stream-http: "
3628 start-stop-daemon -K -q -p /var/run/stream-usb-http.pid
3729 echo " OK"
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ set -eo pipefail
1212TARGET_DIR=" $ROOT_DIR /tmp/v4l2-mpp"
1313
1414if [[ ! -d " $TARGET_DIR " ]]; then
15- git clone https://github.com/paxx12/v4l2-mpp.git " $TARGET_DIR "
15+ git clone https://github.com/paxx12/v4l2-mpp.git " $TARGET_DIR " --recursive
16+ git -C " $TARGET_DIR " checkout 3ab6a4b1933496f52ff883301de1b34371881538
1617fi
1718
1819echo " >> Compiling MPP library..."
You can’t perform that action at this time.
0 commit comments