mirror of https://bitbucket.org/ausocean/av.git
fixing some more errors
This commit is contained in:
parent
2b025b82aa
commit
748dad2a91
32
RevidCLI.go
32
RevidCLI.go
|
@ -113,55 +113,55 @@ func main() {
|
|||
|
||||
switch *configFlags[inputPtr] {
|
||||
case "Raspivid":
|
||||
config.Input = Raspivid
|
||||
config.Input = revid.Raspivid
|
||||
case "Rtp":
|
||||
config.Input = Rtp
|
||||
config.Input = revid.Rtp
|
||||
case "File":
|
||||
config.Input = File
|
||||
config.Input = revid.File
|
||||
}
|
||||
|
||||
switch *configFlags[inputCodecPtr] {
|
||||
case "H264Codec":
|
||||
config.InputCodec = H264Codec
|
||||
config.InputCodec = revid.H264Codec
|
||||
}
|
||||
|
||||
switch *configFlags[outputPtr] {
|
||||
case "File":
|
||||
config.Output = File
|
||||
config.Output = revid.File
|
||||
case "Http":
|
||||
config.Output = Http
|
||||
config.Output = revid.Http
|
||||
case "Rtmp":
|
||||
config.Output = Rtmp
|
||||
config.Output = revid.Rtmp
|
||||
}
|
||||
|
||||
switch *configFlags[rtmpMethodPtr] {
|
||||
case "Ffmpeg":
|
||||
config.RtmpMethod = Ffmpeg
|
||||
config.RtmpMethod = revid.Ffmpeg
|
||||
case "LibRtmp":
|
||||
config.RtmpMethod = LibRtmp
|
||||
config.RtmpMethod = revid.LibRtmp
|
||||
}
|
||||
|
||||
switch *configFlags[packetisationPtr] {
|
||||
case "None":
|
||||
config.Packetisation = None
|
||||
config.Packetisation = revid.None
|
||||
case "Rtp":
|
||||
config.Packetisation = Rtp
|
||||
config.Packetisation = revid.Rtp
|
||||
case "Flv":
|
||||
config.Packetisation = Flv
|
||||
config.Packetisation = revid.Flv
|
||||
}
|
||||
|
||||
switch *configFlags[quantisationModePtr] {
|
||||
case "QuantizationOn":
|
||||
config.Quantization = QuantizationOn
|
||||
config.Quantization = revid.QuantizationOn
|
||||
case "QuantizationOff":
|
||||
config.Quantization = QuantizationOff
|
||||
config.Quantization = revid.QuantizationOff
|
||||
}
|
||||
|
||||
switch *configFlags[verbosityPtr] {
|
||||
case "No":
|
||||
config.Verbosity = No
|
||||
config.Verbosity = revid.No
|
||||
case "Yes":
|
||||
config.Verbosity = Yes
|
||||
config.Verbosity = revid.Yes
|
||||
}
|
||||
|
||||
config.FramesPerClip = *configFlags[framesPerClipPtr]
|
||||
|
|
Loading…
Reference in New Issue