News for hackers. Stuff that matters.
Re:Writing an MP4 Muxer for Fun and Profit by cornstalks on Thursday July 18, 2024 @09:45PM (#41001434)
(context, this is talking about fragmented MP4 downsides)

> 2. They are slow to access on HDD or network drives, as each fragment's header needs to be read to get the complete metadata of the file and start playback

Huh? That's not right. The whole point of fragmented MP4 is that you can access any fragment without having to read the headers of the other fragments. That's why adaptive streaming is built around fragmented MP4.

Re:Writing an MP4 Muxer for Fun and Profit by ogurechny on Thursday July 18, 2024 @09:53PM (#41001465)
To figure out the total length of media streams, you need an external index metadata (web streaming) or a remux of the file that adds an index. The whole point of the article is removing the need to remux the file after recording, otherwise you can use existing solutions just fine.
Re:Writing an MP4 Muxer for Fun and Profit by cornstalks on Thursday July 18, 2024 @10:19PM (#41001570)
You can write a sidx for your index. And it doesn't require a whole remux.
Re:Writing an MP4 Muxer for Fun and Profit by der_rod on Friday July 19, 2024 @01:04AM (#41002124)
Unfortunately, some of the most popular/problematic software (default Windows video player and explorer) does not support `sidx` boxes.