diff --git a/revid/RevidInstance.go b/revid/RevidInstance.go index 6df881c3..adcd3b97 100644 --- a/revid/RevidInstance.go +++ b/revid/RevidInstance.go @@ -107,6 +107,7 @@ const ( Mjpeg = 7 None = 8 Mpegts = 9 + Rtmp = 10 ) // Default config settings @@ -226,7 +227,7 @@ func (r *revidInst) ChangeState(config Config) error { } case Mjpeg: if config.Quantization != "" { - quantization, _ := strconv.Atoi(config.Quantization) + quantization, _ := strconv.Atoi(config.Quantization) if quantization > 0 || config.Bitrate == "" { return errors.New("Bad bitrate or quantization for mjpeg input!") } diff --git a/revid/output/TestFileAsInput.ts b/revid/output/TestFileAsInput.ts new file mode 100644 index 00000000..e69de29b diff --git a/revid/output/TestRaspividMjpegOutput.mjpeg b/revid/output/TestRaspividMjpegOutput.mjpeg new file mode 100644 index 00000000..e69de29b