S16rtmp 511 B

1234567891011121314
  1. #!/bin/sh
  2. source /opt/wz_mini/wz_mini.conf
  3. if ([[ "$RTSP_LOW_RES_ENABLED" == "true" ]] || [[ "$RTSP_HI_RES_ENABLED" == "true" ]]) && [[ "$RTMP_STREAM_ENABLED" == "true" ]] && ([[ "$RTSP_LOW_RES_ENABLE_AUDIO" == "true" ]] || [[ "$RTSP_HI_RES_ENABLE_AUDIO" == "true" ]]); then
  4. if [[ "$RTMP_STREAM_DISABLE_AUDIO" == "true" ]]; then
  5. RTMP_AUDIO="no_audio"
  6. fi
  7. echo "delay RTMP server"
  8. #Follow the delay from the RTSP server
  9. sleep 5
  10. /opt/wz_mini/bin/rtmp-stream.sh "$RMTP_STREAM_SERVICE" "$RTMP_AUDIO" &
  11. fi