cut.sh 279 B

12345678
  1. #!/usr/bin/env bash
  2. # bash shell filePath Start end rtmp
  3. rtspUrl=$1
  4. videoName=$2
  5. # echo 'videoFilePath:'$videoFilePath
  6. ffmpeg -y -re -stream_loop -1 -f concat -safe 0 -i tt.txt -c:v libx264 -preset fast -profile:v baseline -g 30 -sc_threshold 0 -b:v 1500k -f flv "$rtspUrl"