mirror of
https://github.com/bluenviron/mediamtx.git
synced 2025-12-20 02:00:05 -08:00
estimate absolute timestamp more precisely (#5078)
When the absolute timestamp of incoming frames was not available, it was filled with the current timestamp, which is influenced by latency over time. This mechanism is replaced by an algorithm that detects when latency is the lowest, stores the current timestamp and uses it as reference throughout the rest of the stream.
This commit is contained in:
parent
f5f03562d3
commit
0cdae40fe3
30 changed files with 296 additions and 178 deletions
|
|
@ -120,6 +120,7 @@ func (s *Source) runReader(nc net.Conn) error {
|
|||
res := s.Parent.SetReady(defs.PathSourceStaticSetReadyReq{
|
||||
Desc: &description.Session{Medias: medias},
|
||||
GenerateRTPPackets: true,
|
||||
FillNTP: true,
|
||||
})
|
||||
if res.Err != nil {
|
||||
return res.Err
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue