diff --git a/revid/revid.go b/revid/revid.go index 93bcdf38..e883bb45 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -157,7 +157,7 @@ func (p *packer) Write(frame []byte) (int, error) { } p.packetCount++ now = time.Now() - if now.Sub(prevTime) > clipDuration && p.packetCount%7 == 0 { + if (p.owner.config.Output1 != Rtmp && now.Sub(prevTime) > clipDuration && p.packetCount%7 == 0) || p.owner.config.Output1 == Rtmp { p.owner.buffer.Flush() p.packetCount = 0 prevTime = now