video latency should be less
This commit is contained in:
parent
07d3ae3717
commit
935d5ade76
@ -119,7 +119,7 @@ func setupCodec(videoBPS int) (*mediadevices.CodecSelector, error) {
|
||||
return nil, err
|
||||
}
|
||||
x264Prarm.BitRate = videoBPS
|
||||
x264Prarm.Preset = x264.PresetMedium
|
||||
x264Prarm.Preset = x264.PresetFaster
|
||||
|
||||
opusParam, err := opus.NewParams()
|
||||
if err != nil {
|
||||
|
@ -39,7 +39,7 @@ func NewServer(o *Options) (*Server, error) {
|
||||
options: o,
|
||||
audioHeader: make(chan *audio.WavHeader, 1),
|
||||
pcm: make(chan []byte),
|
||||
ppm: make(chan io.ReadCloser, int(o.Video.FPS)), // to be configured
|
||||
ppm: make(chan io.ReadCloser), // to be configured
|
||||
}
|
||||
|
||||
u, err := url.Parse(o.QmpAddress)
|
||||
@ -130,7 +130,7 @@ func (s *Server) Run() error {
|
||||
case <-ticker.C:
|
||||
continue
|
||||
}
|
||||
//<-ticker.C
|
||||
<-ticker.C
|
||||
}
|
||||
}()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user