Skip to content
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

Please update ts-ebml ver to latest #11

Open
xuzhong998 opened this issue Jun 26, 2024 · 1 comment
Open

Please update ts-ebml ver to latest #11

xuzhong998 opened this issue Jun 26, 2024 · 1 comment

Comments

@xuzhong998
Copy link

现使用的ts-ebm在read elm时对于时间戳的字符串判断错误, 应 Timecode -> Timestamp, 导致duration计算为0不起作用,最新的ts-ebml已经修复了
或者直接修改 node_modules\fix-webm-metainfo\node_modules\ts-ebml\lib\EBMLReader.js 内大概
190行和193行的
elm.type === "u" && elm.name === "Timecode"

elm.type === "u" && elm.name === "TimecodeScale"

(elm.type === "u" && (elm.name === "Timecode" || elm.name === "Timestamp"))

(elm.type === "u" && (elm.name === "TimecodeScale" || elm.name === "TimestampScale"))
重新编译即可

@StaZhu
Copy link
Owner

StaZhu commented Jun 26, 2024

欢迎提pr

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

No branches or pull requests

2 participants