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

Playback pauses due to buffer level going to zero #66

Open
scottveirs opened this issue Nov 11, 2022 · 5 comments
Open

Playback pauses due to buffer level going to zero #66

scottveirs opened this issue Nov 11, 2022 · 5 comments
Assignees

Comments

@scottveirs
Copy link
Member

Describe the bug
As a live listening app user monitoring Bush Point hydrophone after troubleshooting a power loss, I experienced pauses or silent gaps in the playback on my Macbook within the Chrome browser.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Bitmovin player aimed at Bush Point data from today
  2. Click on 'Play' (and you may need to unmute the player)
  3. Listen for a few minutes and monitor the buffer level plot
  4. Notice that the audio playback pauses for a few seconds whenever the buffer level decreases to zero.

Expected behavior
Continuous playback (assuming that the audio data is continuous!)

Screenshots
Here's a shot of the buffer level time series:

Screen Shot 2022-11-10 at 4 01 20 PM

And here are two shots showing that when I'm experiencing the pauses within the live app (as oppose to the Bitmovin test player), the HLS segments seem to be available in S3 and downloaded with less than 1 min latency by my browser.

Screen Shot 2022-11-10 at 3 57 47 PM

Screen Shot 2022-11-10 at 3 57 09 PM

Desktop (please complete the following information):

  • Hardware: MacBook Pro (16-inch, 2019)
  • OS: OSX v.12.6
  • Browser Chrome Version 107.0.5304.87 (Official Build) (x86_64)

Additional context
I think this has been going on for a while (6 months off and on?), and maybe mostly for Bush Point -- but why that would be I do not know! It may be related to a lurking, hard-to-reproduce behavior of the the live app UI... possible playback performance differences based on which feed you load first, or perhaps the sequence of feeds you visit, i.e. if you load Orcasound Lab first sometimes, it seems the playback button does not function.

@scottveirs
Copy link
Member Author

scottveirs commented Nov 21, 2022

A weird, novel performance issue this morning: listening to Bush Point had pretty good playback -- just intermittent skips or silent periods of 0.5-2s -- but then player stopped. Network tab showed first a live000.ts and then a seemingly random, much earlier segment being loaded over and over again (live028.ts):

Screen Shot 2022-11-21 at 9 50 10 AM

Previously, the player had been working on segments up around live1900.ts ...

Screen Shot 2022-11-21 at 9 52 51 AM

@scottveirs
Copy link
Member Author

Noticed via Quilt that some of the .ts segments are much smaller than the others. This suggests a bug or other issue on the Raspberry Pi causing data drops. The player may be responding in unpredictable ways to these shortened, possibly corrupt files...

Normal size seems to be about 198kB --
Screen Shot 2022-11-21 at 10 02 17 AM

Here are a few shorter ones (<1kB and 74kB) --
Screen Shot 2022-11-21 at 10 02 54 AM

@scottveirs
Copy link
Member Author

Last notes, looking briefly at htop on the Bush Point node via Dataplicity, it seems that ffmpeg is pushing one core pretty hard. Why doesn't threading work to spread load?

Screen Shot 2022-11-21 at 11 07 49 AM

Screen Shot 2022-11-21 at 11 08 12 AM

@paulcretu
Copy link
Member

Noticed via Quilt that some of the .ts segments are much smaller than the others. This suggests a bug or other issue on the Raspberry Pi causing data drops. The player may be responding in unpredictable ways to these shortened, possibly corrupt files...

This issue might be a candidate for moving over to orcanode… seems like it's unclear if the problem is how the stream is generated or how the player is handling it. Will leave the issue here for now until we can investigate (and see if it's still happening in v3)

@paulcretu paulcretu self-assigned this Aug 31, 2023
@paulcretu
Copy link
Member

paulcretu commented Nov 10, 2023

No reports of anything similar happening lately, moving this issue to orcanode for now. If it doesn't happen anymore, we should close it out as stale (though there are some good orcanode questions in here to investigate)

@paulcretu paulcretu transferred this issue from orcasound/orcasite Nov 10, 2023
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