Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Debug = app.Flag("debug", "Enable debug mode.").Default("false").Bool() Interval = app.Flag("interval", "Interval of query live status").Default("20").Short('t').Int() Output = app.Flag("output", "Output file path.").Short('o').Default("./").String() Input = app.Flag("input", "Live room urls").Short('i').Strings() Conf = app.Flag("config", "Config file.").Short('c').String() RPC = app.Flag("enable-rpc", "Enable RPC server.").Default("false").Bool() RPCBind = app.Flag("rpc-bind", "RPC server bind address").Default(":8080").String() NativeFlvParser = app.Flag("native-flv-parser", "use native flv parser").Default("false").Bool() OutputFileTmpl = app.Flag("output-file-tmpl", "output file name template").Default("").String() SplitStrategies = app.Flag("split-strategies", "video split strategies, support\"on_room_name_changed\", \"max_duration:(duration)\"").Strings() )
Functions ¶
func GenConfigFromFlags ¶
GenConfigFromFlags generates configuration by parsing command line parameters.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.