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
Load .ts frag duration negative #2905
Comments
@Narduril can you please provide a sample stream and/or ts segment that produces this issue? |
Also please point out the issue in the logs that points to a negative duration. This bit stands out:
But this is not enough for me to address the issue. I will need a page with a stream where this can be reproduced or a small sample with just a few segments that reproduces the issue. |
This suggests your stream is missing a |
@Narduril see if this test build helps the issue. It should update the end DTS time value to be at least the same as the first, but for there to be such a large overlap in timestamps suggests that your stream has issues (missing https://deploy-preview-2908--hls-js-dev.netlify.app/demo/ | #2908 |
I'm sorry but I can't put the stream (legal matters). I test the build and detect two problems.
[log] > Loading 1679222 of [1678980 ,1680116],level 0, currentTime:224.867,bufferEnd:480.000
[log] > media seeking to 5744.000 |
@Narduril what happens in previous builds (v0.14.2)? |
I test with the latest v0.13 and get the same issue |
@Narduril your stream is definitely missing a In that case, while the currentTime is at 0, it will keep trying to reload the first and second segment, I'm looking into fixes for this, the reason the buffer got this way is because of a bad stream. Setting If you can post a screenshot of what the timeline looks like with your stream, that would help. Thanks! |
I tested maxBufferHole option to large time but it still fails. I'm trying to create a timeline to check the results. |
* upstream/master: (37 commits) Bump karma from 5.1.0 to 5.1.1 Bump webpack from 4.43.0 to 4.44.0 Bump @types/chai from 4.2.11 to 4.2.12 Bump chromedriver from 84.0.0 to 84.0.1 Highlight selected demo tab, and auto-select first tab (Playback) Improve test logging Fix JavaScript functions executed in IE11 by Selenium Update Safari version used in functional tests Fix demo timeline event buffer reset event handler Drop waiting fragment if videoTrackCC has changed since waitingFragment was set and initPTS was not found Change "CC" and "continuity counter" to "cc" in log messages for consistency Fix stalling on discontinuity with audio track #2913 Prevent immediate level switch from performing unnecessary pause and seeks as this can interfere with 3rd party application state Timeline chart fixes Fix av desync by forcing audio demuxing to wait for main initPTS Update lastDTS after realigning samples in case firstDTS set to a higher value #2905 Seek into buffer start when starting a live stream to avoid video rendering bug in IE11 #2498 Move test-stream with Access-Control-Allow-Headers "Range" errors Fix PTS based remuxer time-offset Improve PTS < DTS fix so that it works in Safari Show current and loading level in timeline Fix Safari playback by removing Safari workarounds in mp4-remuxer (Only this video buffers/playback back with issues https://playertest.longtailvideo.com/adaptive/captions/playlist.m3u8) Safari 9 may have some issues with gaps and decode errors, but without removing this code video will not buffer at all ... # Conflicts: # demo/main.js # package-lock.json # package.json # src/controller/audio-stream-controller.js # src/controller/base-stream-controller.js # src/controller/level-helper.ts # src/controller/stream-controller.js # src/demux/demuxer-inline.js # src/polyfills/number-isFinite.js # src/polyfills/number.js # src/polyfills/number.ts # src/remux/mp4-remuxer.js # tests/functional/auto/setup.js # tests/test-streams.js
* upstream_hls.js/master: Bump webpack from 4.44.0 to 4.44.1 Compare set sort and shift flags after PTSNormalize is applied to both samples video-dev#1796 Bump karma from 5.1.0 to 5.1.1 Bump webpack from 4.43.0 to 4.44.0 Bump @types/chai from 4.2.11 to 4.2.12 Bump chromedriver from 84.0.0 to 84.0.1 Update lastDTS after realigning samples in case firstDTS set to a higher value video-dev#2905
This issue has been automatically closed because it has not had recent activity. If this issue is still valid, please ping a maintainer and ask them to label it accordingly. |
What version of Hls.js are you using?
What browser and OS are you using?
Test stream:
NONE
Checklist
Steps to reproduce
This issue depended on VOD content, because it not occurs in all contents.
Expected behavior
Load next .ts and continue
Actual behavior
Load last .ts frag
[log] > Video: First PTS/DTS adjusted: 480000/480000, delta: -28739129 ms
[log] > Parsed video,PTS:[480.000,480.000],DTS:[480.000/-28253.169],nb:150,dropped:0
Console output
The text was updated successfully, but these errors were encountered: