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

Actually mux video and audio fmp4s

Open anonghuser opened this issue 2 years ago • 1 comments

I need to mux two separate fmp4s, one with just video and one with just audio. I expected to just need to generate a new init segment combining both tracks info from the separate files (i.e. initSegment([...probe.tracks(video), ...probe.tracks(audio)])) and then interleave the moof/mdat boxes from the two files unchanged, but the resulting file didn't work. Can you give me some ideas what's actually needed for this task?

As a side note, the audio codec is mp4a.40.2 according to both mpc-hc and the js call to addSourceBuffer that loads it but when i call probe on it the result says mp4a.40.5, could that be an issue?

anonghuser avatar Sep 26 '22 11:09 anonghuser

Any update ?

JuanMorenoS avatar Sep 14 '23 21:09 JuanMorenoS