Archived
2
0

broadcast pipeline -> optional arguments.

This commit is contained in:
m1k1o
2021-04-03 15:17:26 +02:00
parent 5805cbdda5
commit ce52331d68
3 changed files with 12 additions and 2 deletions

View File

@ -10,7 +10,7 @@ type Broadcast struct {
}
func (Broadcast) Init(cmd *cobra.Command) error {
cmd.PersistentFlags().String("broadcast_pipeline", "", "audio codec parameters to use for broadcasting")
cmd.PersistentFlags().String("broadcast_pipeline", "", "custom gst pipeline used for broadcasting, strings {url} {device} {display} will be replaced")
if err := viper.BindPFlag("broadcast_pipeline", cmd.PersistentFlags().Lookup("broadcast_pipeline")); err != nil {
return err
}