start.sh 949 B

12345678910111213141516171819202122232425
  1. #!/bin/bash
  2. FILE_DIR=/home/nvidia/newdisk/hkpc
  3. sleep 20
  4. cd ${FILE_DIR}
  5. node ./pingServer.js &
  6. sleep 60
  7. cd ${FILE_DIR}/videoPro/build
  8. ./videoPro &
  9. sleep 20
  10. # 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 &
  11. 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 &
  12. #chromium-browser 127.0.0.1
  13. # /usr/bin/chromium-browser --start --disable-session-crashed-bubble --disable-infobars 127.0.0.1