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 }