From a2aaa605fd55f49d997c4f7ccd3267fa5b65382c Mon Sep 17 00:00:00 2001 From: Alan Noble Date: Thu, 19 Oct 2023 23:11:20 +0000 Subject: [PATCH] Merged in enable-mts-timestamps (pull request #522) Enable MTS timestamps with audio input * Enable MTS timestamps with audio input. Approved-by: Saxon Milton --- revid/revid.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/revid/revid.go b/revid/revid.go index c5684984..2accc2f1 100644 --- a/revid/revid.go +++ b/revid/revid.go @@ -38,6 +38,7 @@ import ( "bitbucket.org/ausocean/av/device" "bitbucket.org/ausocean/av/filter" + "bitbucket.org/ausocean/av/container/mts" "bitbucket.org/ausocean/av/revid/config" "bitbucket.org/ausocean/iot/pi/netsender" "bitbucket.org/ausocean/utils/bitrate" @@ -157,6 +158,7 @@ func (r *Revid) Start() error { d := time.Duration(0) if r.cfg.Input == config.InputAudio { d = time.Duration(r.cfg.RecPeriod * float64(time.Second)) + mts.RealTime.Set(time.Now()) // Enable timestamps in MTS output, if any. } else if r.cfg.FileFPS != 0 { d = time.Duration(1000/r.cfg.FileFPS) * time.Millisecond }