diff --git a/cmd/revid-cli/main.go b/cmd/revid-cli/main.go index fc90dbcc..e41fc657 100644 --- a/cmd/revid-cli/main.go +++ b/cmd/revid-cli/main.go @@ -105,7 +105,10 @@ func handleFlags() revid.Config { var ( cpuprofile = flag.String("cpuprofile", "", "write cpu profile to `file`") - inputPtr = flag.String("Input", "", "The input type: Raspivid, File, Webcam") + inputPtr = flag.String("Input", "", "The input type: Raspivid, File, Webcam, RTSPCamera") + rtspURLPtr = flag.String("RTSPURL", "", "The URL for an RTSP server.") + rtpRecvAddrPtr = flag.String("RTPRecvAddr", "", "The RTP address we would like to receive RTP from.") + rtcpAddrPtr = flag.String("RTCPAddr", "", "The address for RTCP communication.") inputCodecPtr = flag.String("InputCodec", "", "The codec of the input: H264, Mjpeg") rtmpMethodPtr = flag.String("RtmpMethod", "", "The method used to send over rtmp: Ffmpeg, Librtmp") quantizePtr = flag.Bool("Quantize", false, "Quantize input (non-variable bitrate)") @@ -223,6 +226,9 @@ func handleFlags() revid.Config { netsender.ConfigFile = *configFilePtr } + cfg.RTSPURL = *rtspURLPtr + cfg.RTPRecvAddr = *rtpRecvAddrPtr + cfg.RTCPAddr = *rtcpAddrPtr cfg.Quantize = *quantizePtr cfg.Rotation = *rotationPtr cfg.FlipHorizontal = *horizontalFlipPtr