Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

audio lags behind behind after short time ("diff" heavily increase [10+ times]) and never "recovers" #154

Open
DLLDev opened this issue Apr 10, 2022 · 1 comment

Comments

@DLLDev
Copy link

DLLDev commented Apr 10, 2022

after a short time of playing the audio starts lagging behind an do not recover.

diff shortly after start playing the stream:
https://ibb.co/LRTR4rf

diff shortly after a minute:
https://ibb.co/37SBkgH

diff when muting and unmute:
https://ibb.co/DgwrXvg

im streaming flv over http and ws. the results are the basically the same.
watching the stream with ffplay works fine.

@leviance
Copy link

You can see AUDIO_SYNC_VIDEO_DIFF variable is set with a value is 1000, so only when the audio delay is larger than 1000 jessibuca will start drop frame, but jessibuca does not drop audio until no delay between the audio and video it will drop the audio frame until delay smaller than 1000 and stop (ex: 990) so you still receive audio delay. You can reduce the value of AUDIO_SYNC_VIDEO_DIFF for a smaller delay between audio and video.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants