From 7f2d53e77872382c3a0450d0d62bceb8b4792d5b Mon Sep 17 00:00:00 2001 From: Saxon Date: Mon, 25 Feb 2019 16:29:44 +1030 Subject: [PATCH] revid: now checking for Packetization var from netreceiver --- revid/revid.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/revid/revid.go b/revid/revid.go index be02e366..02174da2 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -411,6 +411,17 @@ func (r *Revid) Update(vars map[string]string) error { r.config.Logger.Log(logger.Warning, pkg+"invalid Output1 param", "value", value) continue } + + case "Packetization": + switch value { + case "Mpegts": + r.config.Packetization = Mpegts + case "Flv": + r.config.Packetization = Flv + default: + r.config.Logger.Log(logger.Warning, pkg+"invalid packetization param", "value", value) + continue + } case "FramesPerClip": f, err := strconv.ParseUint(value, 10, 0) if err != nil {