delcourtfl / stream-play-server

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

Fixing audio latency #5

Open Sean-Zeo opened 4 months ago

Sean-Zeo commented 4 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 3 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).