tsMuxer icon indicating copy to clipboard operation
tsMuxer copied to clipboard

Importing mp4 with several mdat atom boxes

Open bairradino opened this issue 5 years ago • 5 comments

It seems that tsMuxer is not able to read 5.1 ac3 encoded audio... I tried to demux several mp4 files with 5.1 ac3 audio and tsMuxer did note open them, but no errors.

bairradino avatar Jan 04 '21 11:01 bairradino

Bizarre... No problems on my side. Please provide a link to a problematic mp4 (sample < 50 MB).

jcdr428 avatar Jan 04 '21 19:01 jcdr428

It's really strange... The original clip has 299MB corresponding to 2' 29". For give you a part with aprox. 40MB I used MP4Box and splitted the clip. When importing any of the splitted clips all were read by tsMuxer. I observed that MP4Box altered the splitted clips because the bitrate became smaller... I leave here the link to the original clip (299MB) that I can't open. If you can download it...

https://1drv.ms/v/s!AuYcZ0yHv3Dt5jQbgvK55jzqb9Fs?e=TuHvxl

Thanks for you collaboration to all of us.

bairradino avatar Jan 05 '21 18:01 bairradino

@bairradino thanks for the link: it is an interesting mp4 with several mdat (media data) boxes, which is allowed by the ISO standard but rather unusual for non-fragmented mp4. tsMuxer does not cope yet with these kinds of mp4, I'll try to see if I can make it work when I have time.

jcdr428 avatar Jan 11 '21 17:01 jcdr428

Thanks for your effort. I'll wait for your correction.

bairradino avatar Jan 11 '21 18:01 bairradino

@bairradino Unfortunately too complicated for me. tsMuxer currently processes mp4 having a single mdat with interleaved track chunks/samples, however your mp4 has a separate mdat box for each track (audio and video). The changes to be made to tsMuxer are above my coding capabilities... Until somebody pushes a fix, you can simply remux the mp4 with ffmpeg or mp4box before processing with tsMuxer.

Could you please rename the title to "Importing mp4 with several mdat atom boxes".

jcdr428 avatar Jan 27 '21 19:01 jcdr428