This commit is contained in:
jiacai_wang 2018-08-09 17:02:11 +08:00
parent d3d88e6df7
commit 2fa107d5d4
2 changed files with 10 additions and 0 deletions

5
closeCam.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
pkill ffmpeg
pkill livego

5
openCam.sh Executable file
View File

@ -0,0 +1,5 @@
#!/bin/bash
/home/pi/livego >>livego.log 2>&1 &
ffmpeg -re -f s16le -i /dev/zero -f v4l2 -framerate 8 -codec:v h264 -s 1280x720 -i /dev/video0 -codec:v copy -codec:a aac -ab 0.1k -f flv -rtmp_live live -rtmp_buffer 200 rtmp:localhost/live/movie >>ffmpeg.log 2>&1 &