diff --git a/revid/config/variables.go b/revid/config/variables.go index 726faf16..b66ffc26 100644 --- a/revid/config/variables.go +++ b/revid/config/variables.go @@ -297,7 +297,7 @@ var Variables = []struct { }, { Name: KeyInputCodec, - Type_: "enum:H264,H265,MJPEG,JPEG,PCM,ADPCM", + Type_: "enum:h264,h265,mjpeg,jpeg,pcm,adpcm", Update: func(c *Config, v string) { c.InputCodec = v }, diff --git a/revid/pipeline.go b/revid/pipeline.go index 097978e4..575516c5 100644 --- a/revid/pipeline.go +++ b/revid/pipeline.go @@ -227,7 +227,10 @@ func (r *Revid) setupPipeline(mtsEnc func(dst io.WriteCloser, rate float64) (io. // as a destination. if len(mtsSenders) != 0 { mw := multiWriter(mtsSenders...) - e, _ := mtsEnc(mw, float64(r.cfg.FrameRate)) + e, err := mtsEnc(mw, float64(r.cfg.FrameRate)) + if err != nil { + return fmt.Errorf("error from setting up MTS encoder: %w", err) + } encoders = append(encoders, e) } @@ -238,7 +241,7 @@ func (r *Revid) setupPipeline(mtsEnc func(dst io.WriteCloser, rate float64) (io. mw := multiWriter(flvSenders...) e, err := flvEnc(mw, int(r.cfg.FrameRate)) if err != nil { - return err + return fmt.Errorf("error from setting up FLV encoder: %w", err) } encoders = append(encoders, e) }