#!/bin/bash FILE_DIR=/home/nvidia/newdisk/hkpc sleep 20 cd ${FILE_DIR} node ./pingServer.js & sleep 60 cd ${FILE_DIR}/videoPro/build ./videoPro & sleep 20 # sudo -u nvidia gst-launch-1.0 v4l2src device=/dev/video8 ! videoconvert ! video/x-raw,format=NV12 ! nvvidconv ! 'video/x-raw(memory:NVMM),format=I420' ! nvv4l2h264enc bitrate=8000000 idrinterval=10 ! h264parse ! rtph264pay name=pay0 config-interval=1 pt=96 ! udpsink host=192.168.131.21 port=5001 & sudo -u nvidia gst-launch-1.0 v4l2src device=/dev/video8 ! videoconvert ! video/x-raw,format=NV12,framerate=30/1 ! queue ! nvvidconv ! 'video/x-raw(memory:NVMM),format=I420' ! nvv4l2h264enc bitrate=8000000 idrinterval=10 ! h264parse ! rtph264pay name=pay0 config-interval=1 pt=103 ! udpsink host=192.168.131.21 port=56003 buffer-size=1048576 sync=false & #chromium-browser 127.0.0.1 # /usr/bin/chromium-browser --start --disable-session-crashed-bubble --disable-infobars 127.0.0.1