mirror of https://bitbucket.org/ausocean/av.git
Merged in enable-mts-timestamps (pull request #522)
Enable MTS timestamps with audio input * Enable MTS timestamps with audio input. Approved-by: Saxon Milton
This commit is contained in:
parent
3bb8d0bde2
commit
a2aaa605fd
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue