delcourtfl / stream-play-server

Remote Gaming Application in Go using WebRTC for low latency
MIT License
17 stars 2 forks source link

Fixing audio latency #5

Open Sean-Zeo opened 8 months ago

Sean-Zeo commented 8 months ago

Hi, to fix audio latency.. I was thinking perhaps have the audio stream running a separate ffmpeg program rather than combined?

delcourtfl commented 7 months ago

Hello,

I tried multiple approaches such as manually running two instances of ffmpeg (one for the video and one for the audio), but I was not able to fix the issue (and I don't believe that the Golang exec.Command function is affecting this). Additionally, I'm not entirely sure if it's directly related to the ffmpeg configuration or if it's due to some buffering in the WebRTC communication, or maybe both (and I'm still quite inexperienced when it comes to debugging this kind of issue).