Skip to content

flv.js update#2

Open
linuxsch wants to merge 24 commits into
linuxsch:masterfrom
bilibili:master
Open

flv.js update#2
linuxsch wants to merge 24 commits into
linuxsch:masterfrom
bilibili:master

Conversation

@linuxsch

Copy link
Copy Markdown
Owner

2019-09-25 by sch.

xqq and others added 24 commits December 14, 2018 10:11
* Using AbortController in fetch-stream-loader.js

* create pull-request
* Update fetch-stream-loader.js

修复在进入请求_pump前调用abort请求没中断的问题

* Update fetch-stream-loader.js

修复在进入请求_pump前调用abort请求没中断的问题
* use a new silent frame insert algorithm for audio remux.
the old algorithm cannot cover some common situation, like:
1. audio frame dts does not increase by a standard duration, sometimes it increase for a large duration(more than 1.5 * refSampleDuration), sometimes it increase for a small duration. But the average duration is more or less to refSampleDuration. the old algorithm would insert silent frames which result into video/audio unsync.
2. for network living stream, because of network jitter or frame lost, the encoder would generate the audio frames whose dts is not correct. but if the gap between two adjacent frame is not over 1.5 * refSampleDuration and the accumulate gap would become larger and larger. the old algorithm never insert silent frames for this case.

* initialize _audioNextRefDts when seeking

* fix: lint error

* test

* fix a curRefDts update mistake

* reuse some original variable which has the same meaning

* fix some variable mistake

* bug fix: incorrect byte length

Co-authored-by: xiaosong <kunkkaco@gmail.com>
Co-authored-by: wangjiankai <wangjiankai@cmhi.chinamobile.com>
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

Successfully merging this pull request may close these issues.

5 participants