Open
Description
When I try to generate the mp4 file by use mux.js, I got wrong duration time in generated mp4 file, the result time is aways 0xffffffff
=> 13:15:24
。 It's a default value:
mux.js/lib/mp4/mp4-generator.js
Line 613 in 55c1d56
How to calculate the correct duration according the MPEG2-TS packets by use mux.js? Or How I change the correct duration before call the method mp4.initSegment(this.pendingTracks);
in lib/mp4/transmuxer.js#L835-L842 or earlier
i added an event listener with some code like this:
transmuxer.on('data', (event) => {
if (!remuxedInitSegment) {
remuxedInitSegment = event.initSegment;
// I also want to change the duration time by use remuxedInitSegment.set([xxxx], index)
// But i don't know how to find the right index.... :'(
}
})