mirror of https://bitbucket.org/ausocean/av.git
fixing some more errors
This commit is contained in:
parent
2abcc6fb76
commit
c01e10901d
10
RevidCLI.go
10
RevidCLI.go
|
@ -45,7 +45,7 @@ const (
|
||||||
packetizationPtr = 4
|
packetizationPtr = 4
|
||||||
quantizationModePtr = 5
|
quantizationModePtr = 5
|
||||||
verbosityPtr = 6
|
verbosityPtr = 6
|
||||||
framesPerClipPrt = 7
|
framesPerClipPtr = 7
|
||||||
rtmpUrlPtr = 8
|
rtmpUrlPtr = 8
|
||||||
bitratePtr = 9
|
bitratePtr = 9
|
||||||
outputFileNamePtr = 10
|
outputFileNamePtr = 10
|
||||||
|
@ -142,7 +142,7 @@ func main() {
|
||||||
config.RtmpMethod = revid.LibRtmp
|
config.RtmpMethod = revid.LibRtmp
|
||||||
}
|
}
|
||||||
|
|
||||||
switch *configFlags[packetisationPtr] {
|
switch *configFlags[packetizationPtr] {
|
||||||
case "None":
|
case "None":
|
||||||
config.Packetization = revid.None
|
config.Packetization = revid.None
|
||||||
case "Rtp":
|
case "Rtp":
|
||||||
|
@ -153,9 +153,9 @@ func main() {
|
||||||
|
|
||||||
switch *configFlags[quantizationModePtr] {
|
switch *configFlags[quantizationModePtr] {
|
||||||
case "QuantizationOn":
|
case "QuantizationOn":
|
||||||
config.Quantization = revid.QuantizationOn
|
config.QuantizationMode = revid.QuantizationOn
|
||||||
case "QuantizationOff":
|
case "QuantizationOff":
|
||||||
config.Quantization = revid.QuantizationOff
|
config.QuantizationMode = revid.QuantizationOff
|
||||||
}
|
}
|
||||||
|
|
||||||
switch *configFlags[verbosityPtr] {
|
switch *configFlags[verbosityPtr] {
|
||||||
|
@ -191,7 +191,7 @@ func main() {
|
||||||
// If we're not running a netsender session then we run revid for the amount
|
// If we're not running a netsender session then we run revid for the amount
|
||||||
// of time the user defined or the default 2 days
|
// of time the user defined or the default 2 days
|
||||||
time.Sleep( time.Duration(*runDurationPtr) * time.Second )
|
time.Sleep( time.Duration(*runDurationPtr) * time.Second )
|
||||||
revid.Stop()
|
revidInst.Stop()
|
||||||
}
|
}
|
||||||
|
|
||||||
func netsenderInit() {
|
func netsenderInit() {
|
||||||
|
|
Loading…
Reference in New Issue