question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Long wait time for Stalled Playback: Reference Issue https://github.com/google/shaka-player/issues/2131

See original GitHub issue

Have you read the Tutorials? Yes

Have you read the FAQ and checked for duplicate open issues? Yes I am refering to a closed issue that I am still having some issue with.

What version of Shaka Player are you using? Shaka 3.0.6

Please ask your question A long while ago I raised a support ticket that got quite a bit of attention. It seems this has been fixed and i can confirm that on the device I reported the issue from (2017 Tizen 3 TV) that playback is working.

Unfortunately it can take anywhere for between 30seconds to more than a minute for playback to start though.

I can see in the logs that stalls are detected and attempts to move the playhead are done but there are some reports of this not being possible:

Jumping forward 0.046 seconds because of gap before start time of 0.046
streaming_engine.js:635 (all): seeked: buffered seek: presentationTime=0.046
streaming_engine.js:977 (video:5) buffered to end of presentation
streaming_engine.js:977 (audio:1) buffered to end of presentation
18streaming_engine.js:635 (all): seeked: buffered seek: presentationTime=0.046
playhead.js:501 Stall detected at 0.046 for 1.2030000686645508 seconds.
playhead.js:504 Seeking forward 2 seconds to break stall.
2streaming_engine.js:635 (all): seeked: buffered seek: presentationTime=2.045999
Failed to move playhead from 0.046 to 0.046

We have detected an issue where our manifest segments have a negative start time. We discovered this with FFPROBE. Unfortunately re-transcoding everything is not an option for us and this only seems to affect Tizen2.4 & Tizen 3 with Shaka. The Tizen player handles the start time without a long stall. Essentially we would like to use the same player where possible though so I am asking if you have any tips on how we can prompt the playback to begin more quickly. It seems that the 0.046 seconds is the gap start time in each playback attempt too. I am not sure if this helps.

From FFPROBE the Audio track always starts at: -0.0464400

// inspect audio track
$ ffprobe before_fixed~~audio-en~~mpegdash.mp4
...
Duration: 00:00:20.06, start: -0.046440, bitrate: 136 kb/s

But the video track starts at 0

// inpsect the video track
$ ffprobe before_fixed~~iview-180-clean~~220k~~mpegdash.mp4
...
Duration: 00:00:20.00, start: 0.000000, bitrate: 172 kb/s

It seems that Shaka is not taking the negative segment start into account as the playhead move is from positive 0.046.

At present we are using this config to get playback occurring:

this.player.configure('streaming.stallSkip', 2);

But it can still take much longer than 2 seconds for playback to begin. Approximately 30-40 seconds

Any help you could provide for config options that might help speed the stall up would be great.

Kind regards,

Stuart

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
joeyparrishcommented, Oct 7, 2021

Sorry for losing track of this issue.

If the problem is caused by the negative timestamps, you could offset them by modifying the manifest. The presentationTimeOffset attribute in DASH is used to adjust how timestamps are interpreted by the browser. Could you try adjusting that in lieu of re-encoding the content?

0reactions
joeyparrishcommented, Oct 26, 2021

It’s an attribute on certain elements in the DASH manifest. If you can control the generation of the MPD or edit it after the fact, you can try adding/manipulating presentationTimeOffset.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Issues - GitHub
Long wait time for Stalled Playback: Reference Issue https://github.com/google/shaka-player/issues/2131 #3076.
Read more >
Re-think gap-jumping and stall-detection · Issue #3673 - GitHub
I believe gap-jumping and stall-detection could use a redesign. ... Long wait time for Stalled Playback: Reference Issue ...
Read more >
Playback Stalls For Few Seconds When Playback Initiated
I'm seeing a load latency of about 2-3 seconds as measured by Shaka Player. You can measure this state yourself by turning setting...
Read more >
Shaka stalls when we either seek or trigger play/pause slightly ...
I'm out of idea's about what exactly causes the endless stall. Have you read the FAQ and checked for duplicate open issues? Yes....
Read more >
Live stream stalls with "playback stalling in low buffer" #1172
In the case of the log it was roughly a two minute delay, however as mentioned this can go on for hours. There...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found