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

[BUG] Audio Recieved Delay Getting Bigger. #2054

Open
liquanqing opened this issue Sep 11, 2024 · 2 comments
Open

[BUG] Audio Recieved Delay Getting Bigger. #2054

liquanqing opened this issue Sep 11, 2024 · 2 comments
Labels
needs-triage question Further information is requested

Comments

@liquanqing
Copy link

liquanqing commented Sep 11, 2024

In webRTC to play audio , i found that The Voice playback delay is getting bigger and bigger.
I test this in PC to WebSite, PC's audio to WebSite is Normal, and WebSite's audio to PC's has big delay after a moment.
I print the log and found that, real timestamp is 10ms, but print times go 20ms. so i think this is why delay delay is getting bigger.
This is my print format :
DLOGI("[%" PRIu64 "]Audio Frame received. TrackId: %" PRIu64 ", Size: %u, Flags %u",pFrame->presentationTs, pFrame->trackId, pFrame->size, pFrame->flags);

how can i solved this?

** Logging **

2024-09-11 08:48:38.171 INFO sampleSenderBandwidthEstimationHandler(): Adjustment made: average packet loss = 0.00%, timediff: 10317856 ms
2024-09-11 08:48:38.172 INFO sampleSenderBandwidthEstimationHandler(): Suggested video bitrate 0 kbps, suggested audio bitrate: 0 bps, sent: 38001 bytes 173 packets received: 38001 bytes 173 packets in 994 msec
2024-09-11 08:48:38.173 VERBOSE rtcpReportsCallback(): sender report 9040 16900839410226619125 327049 : 474 packets 103534 bytes
2024-09-11 08:48:38.174 INFO sampleAudioFrameHandler(): [34614539130000]Audio Frame received. TrackId: 80671792, Size: 84, Flags 2514072763
2024-09-11 08:48:38.193 INFO sampleAudioFrameHandler(): [34614548730000]Audio Frame received. TrackId: 80671792, Size: 81, Flags 2514072763
2024-09-11 08:48:38.213 INFO sampleAudioFrameHandler(): [34614558330000]Audio Frame received. TrackId: 80671792, Size: 80, Flags 2514072763
2024-09-11 08:48:38.233 INFO sampleAudioFrameHandler(): [34614567930000]Audio Frame received. TrackId: 80671792, Size: 82, Flags 2514072763
2024-09-11 08:48:38.254 INFO sampleAudioFrameHandler(): [34614577530000]Audio Frame received. TrackId: 80671792, Size: 74, Flags 2514072763
2024-09-11 08:48:38.274 INFO sampleAudioFrameHandler(): [34614587130000]Audio Frame received. TrackId: 80671792, Size: 72, Flags 2514072763
2024-09-11 08:48:38.294 INFO sampleAudioFrameHandler(): [34614596730000]Audio Frame received. TrackId: 80671792, Size: 77, Flags 2514072763
2024-09-11 08:48:38.313 INFO sampleAudioFrameHandler(): [34614606330000]Audio Frame received. TrackId: 80671792, Size: 80, Flags 2514072763
2024-09-11 08:48:38.333 INFO sampleAudioFrameHandler(): [34614615930000]Audio Frame received. TrackId: 80671792, Size: 77, Flags 2514072763
2024-09-11 08:48:38.350 VERBOSE rtcpReportsCallback(): sender report 19264 16900839410985904059 183007 : 156 packets 26520 bytes
2024-09-11 08:48:38.355 INFO sampleAudioFrameHandler(): [34614625530000]Audio Frame received. TrackId: 80671792, Size: 81, Flags 2514072763
2024-09-11 08:48:38.375 INFO sampleAudioFrameHandler(): [34614635130000]Audio Frame received. TrackId: 80671792, Size: 87, Flags 2514072763
2024-09-11 08:48:38.395 INFO sampleAudioFrameHandler(): [34614644730000]Audio Frame received. TrackId: 80671792, Size: 96, Flags 2514072763
2024-09-11 08:48:38.415 INFO sampleAudioFrameHandler(): [34614654330000]Audio Frame received. TrackId: 80671792, Size: 88, Flags 2514072763

@liquanqing liquanqing added needs-triage question Further information is requested labels Sep 11, 2024
@liquanqing
Copy link
Author

image
Different time interval for audio Frame received.
Frame presentationTs has 10ms.
But Log print Time has 20ms.

@liquanqing
Copy link
Author

liquanqing commented Sep 12, 2024

i found that there has packet loss, the audio delay will increase, but can not recover after the packet loss decrease.
and i modify the DEFAULT_ROLLING_BUFFER_DURATION_IN_SECONDS and JITTER_BUFFER_HASH_TABLE_BUCKET_COUNT to less of bigger but could not help except restart Peer connection. DEFAULT_ROLLING_BUFFER_DURATION_IN_SECONDS is 1.

@liquanqing liquanqing changed the title [QUESTION] Audio Recieved Delay Getting Bigger. [BUGBUG] Audio Recieved Delay Getting Bigger. Sep 26, 2024
@liquanqing liquanqing changed the title [BUGBUG] Audio Recieved Delay Getting Bigger. [BUG] Audio Recieved Delay Getting Bigger. Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant