Please update ts-ebml ver to latest
xuzhong998 opened this issue · 1 comments
xuzhong998 commented
现使用的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 commented
欢迎提pr