revid,revid-cli: remove non-functional RTP mention and add MPEGTS config option

This commit is contained in:
Dan Kortschak 2018-06-30 21:50:55 +09:30
parent 3990482ac4
commit 353d2cfcc7
2 changed files with 2 additions and 6 deletions

View File

@ -129,8 +129,6 @@ func main() {
switch *configFlags[inputPtr] { switch *configFlags[inputPtr] {
case "Raspivid": case "Raspivid":
config.Input = revid.Raspivid config.Input = revid.Raspivid
case "Rtp":
config.Input = revid.Rtp
case "File": case "File":
config.Input = revid.File config.Input = revid.File
case "": case "":
@ -173,8 +171,8 @@ func main() {
switch *configFlags[packetizationPtr] { switch *configFlags[packetizationPtr] {
case "None": case "None":
config.Packetization = revid.None config.Packetization = revid.None
case "Rtp": case "Mpegts":
config.Packetization = revid.Rtp config.Packetization = revid.Mpegts
case "Flv": case "Flv":
config.Packetization = revid.Flv config.Packetization = revid.Flv
case "": case "":

View File

@ -65,7 +65,6 @@ type Config struct {
const ( const (
NothingDefined = iota NothingDefined = iota
Raspivid Raspivid
Rtp
H264Codec H264Codec
File File
Http Http
@ -126,7 +125,6 @@ func (c *Config) Validate(r *Revid) error {
} }
switch c.Input { switch c.Input {
case Rtp:
case Raspivid: case Raspivid:
case File: case File:
case NothingDefined: case NothingDefined: