Hacker News new | ask | show | jobs
by repelsteeltje 967 days ago
memcpy is ±99%. The 1% involves bit shifting (nal unit reshuffling, avc3/avc1 fixups).

So indeed, repackaging mp4 <-> mp2 containers is pretty trivial. Nevertheless, Apple initially choose mpeg2TS because it conveniently allowed them to shove the reassembled media segments straight into the dedicated AV chip.