mux.js icon indicating copy to clipboard operation
mux.js copied to clipboard

When upgrading from 5.1.2 to 5.8 directly, the video.buffered.length> 1 problem occurred, causing the video to freeze

Open talentmail opened this issue 4 years ago • 2 comments

Upgrade from 5.1.2 to 5.8 directly, the same sample code runs normally under version 5.1.2, but video freezes in 5.8, Tracking found that under version 5.8, video.buffered.length> 1, but under version 5.1 There is no such problem video.buffered.length == 1 The same problem exists when upgrading 5.1.2 directly to 5.2.1. Is there anything that needs special attention when upgrading from 5.1.2 to a higher version?

talentmail avatar Jan 20 '21 08:01 talentmail

Can you provide a reduced test case?

gkatsev avatar Jan 21 '21 17:01 gkatsev

Can you provide a reduced test case?

Thank you for your reply

Question reproduction demo: https://jsfiddle.net/bdyrjaxh/ Version: 5.9.1 Sometimes freezes at :64.680388, the video status is: video.buffered.length : 1 video.buffered.start(0) : 0.022721 video.buffered.end(0) : 596.495 video.currentTime : 64.680388

Sometimes freezes at : 68.240524, the video status is: video.buffered.length : 1 video.buffered.start(0) : 0.022721 video.buffered.end(0) : 596.495 video.currentTime : 68.240524

And so on, not always at a certain point in time

For some other m3u8 sources, there will be video.buffered.length > 1 For example, the m3u8 source output by the following ffmpeg command will appear: video.buffered.length=2 ffmpeg -threads 2 -i src.mp4 -force_key_frames "expr:gte(t,n_forced*2)" -sc_threshold 0 -c:v copy -c:a copy -f hls -hls_list_size 65 -hls_time 10 test.m3u8

But there will be no problems in 5.1.2

========================================= Behaving normally demo: https://jsfiddle.net/3jfq2hu5/ Version: 5.1.2

talentmail avatar Jan 27 '21 07:01 talentmail