From edb4ffd8265a5ed469df19a541fca90774f1bf8c Mon Sep 17 00:00:00 2001 From: Unknown Date: Wed, 7 Feb 2018 17:05:34 +1030 Subject: [PATCH] Getting started on rtmp output --- revid/RevidInstance.go | 3 ++- revid/output/TestFileAsInput.ts | 0 revid/output/TestRaspividMjpegOutput.mjpeg | 0 3 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 revid/output/TestFileAsInput.ts create mode 100644 revid/output/TestRaspividMjpegOutput.mjpeg 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