AV is found not in-sync for some ts files (from the same encoder source)
- [x ] The stream has correct Access-Control-Allow-Origin headers (CORS)
- [x ] There are no network errors such as 404s in the browser console when trying to play the stream
- [x ] The issue observed is not already reported by searching on Github under https://github.com/video-dev/hls.js/issues
- [x ] The issue occurs in the latest reference client on http://video-dev.github.io/hls.js/demo and not just on my page
- Link to playable M3U8 file: (directly in attached file)
- Hls.js version: found in hls.js-0.8.7, hls.js.0.6.10, other version is not tested
- Browser name/version: Chrome 62.0.3202.94
- OS name/version: Windows-7
Steps to reproduce
-
Please provide clear steps to reproduce your problem simply play the index.m3u8 files in attached file, one is in-sync, the other is NOT in-sync.
-
Whenever possible, share a demo/example page which reproduces the problem you are having with the least amount of code possible. The example pages are in the attached file.
-
If the bug is intermittent, give a rough frequency if possible It depends on the ts files.
Expected behavior
What you expected to happen : AV is expected to be in sync, but it is not for some ts files.
Actual behavior
What actually happened : AV is not in sync (for some ts files), these ts files are generated by the same encoder source.
Console output
[Violation] Added non-passive event listener to a scroll-blocking 'mousewheel' event. Consider marking event handler as 'passive' to make the page more responsive. See https://www.chromestatus.com/feature/5745543795965952 logger.js:37 [log] > destroy logger.js:37 [log] > detachMedia logger.js:37 [log] > media source detaching logger.js:37 [log] > main stream:ENDED->STOPPED logger.js:37 [log] > loadSource:http://192.168.56.101:8080/test_m3u8.stg.FBUU-2017_1114_0953_sync_ng/index.m3u8 logger.js:37 [log] > trigger BUFFER_RESET logger.js:37 [log] > set autoLevelCapping:-1 logger.js:37 [log] > attachMedia logger.js:37 [log] > media source opened logger.js:37 [log] > manifest loaded,1 level(s) found, first bitrate:undefined logger.js:37 [log] > startLoad(-1) logger.js:37 [log] > switching to level 0 logger.js:37 [log] > main stream:STOPPED->IDLE logger.js:37 [log] > audio tracks updated logger.js:37 [log] > subtitle tracks updated logger.js:37 [log] > level 0 loaded [0,2],duration:12.809000000000001 logger.js:37 [log] > Loading 0 of [0 ,2],level 0, currentTime:0.000,bufferEnd:0.000 logger.js:37 [log] > demuxing in webworker logger.js:37 [log] > main stream:IDLE->FRAG_LOADING index.html:387 parsing level duration :3705us,count:1 logger.js:37 [log] > Loaded 0 of [0 ,2],level 0 logger.js:37 [log] > main stream:FRAG_LOADING->PARSING logger.js:37 [log] > Parsing 0 of [0 ,2],level 0, cc 0 logger.js:37 [log] > main:discontinuity detected logger.js:37 [log] > main:switch detected blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:516 [log] > manifest codec:undefined,ADTS data:type:2,sampleingIndex:8[16000Hz],channelConfig:1 blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:516 [log] > parsed codec:mp4a.40.5,rate:16000,nb channel:1 blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:516 [log] > audio sampling rate : 16000 logger.js:37 [log] > InitPTS for cc:0 found from video track:138000 logger.js:37 [log] > creating sourceBuffer(audio/mp4;codecs=mp4a.40.5) logger.js:37 [log] > creating sourceBuffer(video/mp4;codecs=avc1.64001f) logger.js:37 [log] > main track:audio,container:audio/mp4,codecs[level/parsed]=[undefined/mp4a.40.5] logger.js:37 [log] > main track:video,container:video/mp4,codecs[level/parsed]=[undefined/avc1.64001f] logger.js:37 [log] > Parsed audio,PTS:[0.133,1.989],DTS:[0.133/1.989],nb:29,dropped:0 logger.js:37 [log] > Parsed video,PTS:[0.133,1.867],DTS:[0.000/1.800],nb:27,dropped:0 logger.js:37 [log] > main stream:PARSING->PARSED logger.js:37 [log] > main buffered : [0.133,1.800] logger.js:37 [log] > latency/loading/parsing/append/kbps:17/0/75/2/1737 logger.js:37 [log] > main stream:PARSED->IDLE logger.js:37 [log] > Loading 1 of [0 ,2],level 0, currentTime:1.800,bufferEnd:1.800 logger.js:37 [log] > main stream:IDLE->FRAG_LOADING logger.js:37 [log] > target start position:0 logger.js:37 [log] > target start position not buffered, seek to buffered.start(0) 0.133312 logger.js:37 [log] > adjust currentTime from 0 to 0.133312 logger.js:37 [log] > Updating mediasource duration to 12.809 logger.js:37 [log] > media seeking to 0.133 logger.js:37 [log] > Loaded 1 of [0 ,2],level 0 logger.js:37 [log] > main stream:FRAG_LOADING->PARSING logger.js:37 [log] > Parsing 1 of [0 ,2],level 0, cc 1 logger.js:37 [log] > main:discontinuity detected blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:516 [log] > manifest codec:undefined,ADTS data:type:2,sampleingIndex:8[16000Hz],channelConfig:1 blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:516 [log] > parsed codec:mp4a.40.5,rate:16000,nb channel:1 logger.js:37 [log] > media seeked to 0.133 blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:516 [log] > audio sampling rate : 16000 logger.js:37 [log] > InitPTS for cc:1 found from video track:-116040 blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:516 [log] > AVC:189 ms hole between fragments detected,filling it logger.js:37 [log] > main track:audio,container:audio/mp4,codecs[level/parsed]=[undefined/mp4a.40.5] blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:516 [log] > Video/PTS/DTS adjusted: 1987/1800,delta:189 ms logger.js:37 [log] > main track:video,container:video/mp4,codecs[level/parsed]=[undefined/avc1.4d0028] logger.js:37 [log] > Parsed audio,PTS:[1.989,12.361],DTS:[1.989/12.361],nb:162,dropped:0 logger.js:37 [log] > Parsed video,PTS:[1.987,12.520],DTS:[1.800/12.520],nb:300,dropped:0 logger.js:37 [log] > main stream:PARSING->PARSED logger.js:37 [log] > main buffered : [0.133,12.361] logger.js:37 [log] > latency/loading/parsing/append/kbps:48/24/70/9/64933 logger.js:37 [log] > main stream:PARSED->IDLE logger.js:37 [log] > Loading 2 of [0 ,2],level 0, currentTime:0.153,bufferEnd:12.361 logger.js:37 [log] > main stream:IDLE->FRAG_LOADING logger.js:37 [log] > Loaded 2 of [0 ,2],level 0 logger.js:37 [log] > main stream:FRAG_LOADING->PARSING logger.js:37 [log] > Parsing 2 of [0 ,2],level 0, cc 2 logger.js:37 [log] > main:discontinuity detected blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:516 [log] > manifest codec:undefined,ADTS data:type:2,sampleingIndex:8[16000Hz],channelConfig:1 blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:516 [log] > parsed codec:mp4a.40.5,rate:16000,nb channel:1 blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:516 [log] > audio sampling rate : 16000 blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:516 [warn] > Injecting 2 audio frame @ 12.361s due to 159 ms gap. (anonymous) @ blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:516 remuxAudio @ blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:4123 remux @ blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:3672 append @ blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:2207 pushDecrypted @ blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:4558 push @ blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:4512 (anonymous) @ blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:127 blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:516 [log] > AVC:172 ms hole between fragments detected,filling it blob:http://192.168.56.101:8080/ec4561a2-c9b7-4d87-a03f-602a56c126bc:516 [log] > Video/PTS/DTS adjusted: 12690/12520,delta:172 ms logger.js:37 [log] > InitPTS for cc:2 found from video track:-129630 logger.js:37 [log] > main track:audio,container:audio/mp4,codecs[level/parsed]=[undefined/mp4a.40.5] logger.js:37 [log] > main track:video,container:video/mp4,codecs[level/parsed]=[undefined/avc1.4d0028] logger.js:37 [log] > Parsed audio,PTS:[12.361,13.065],DTS:[12.361/13.065],nb:11,dropped:0 logger.js:37 [log] > Parsed video,PTS:[12.690,13.194],DTS:[12.520/13.194],nb:14,dropped:0 logger.js:37 [log] > main stream:PARSING->PARSED logger.js:37 [log] > main buffered : [0.133,13.065] logger.js:37 [log] > latency/loading/parsing/append/kbps:18/1/23/3/8085 logger.js:37 [log] > main stream:PARSED->IDLE logger.js:37 [log] > audio sourceBuffer now EOS logger.js:37 [log] > video sourceBuffer now EOS logger.js:37 [log] > all media data available, signal endOfStream() to MediaSource and stop loading fragment logger.js:37 [log] > main stream:IDLE->ENDED logger.js:37 [log] > media source ended logger.js:37 [log] > media ended
For media errors reported on Chrome browser, please also paste the output of chrome://media-internals
Sorry, I did not know how to attach sample file directly here. I put the sample file in https://drive.google.com/file/d/1Qyg6EU4JvCzV3hq2z23KSCkkHMEGT9ez/view?usp=sharing
we have limited time to investigate issue, could u please host your stream somewhere on the internet so that we could have a quick look thanks
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.