Eyevinn / mp4ff

Library and tools for parsing and writing MP4 files including video, audio and subtitles. The focus is on fragmented files. Includes mp4ff-info, mp4ff-encrypt, mp4ff-decrypt and other tools.
MIT License
456 stars 83 forks source link

Can mp4ff create normal mp4, not fragment mp4? #258

Closed prife closed 1 year ago

prife commented 1 year ago

I use mp4ff to create fragment mp4. It works very well, but can mp4ff create normal mp4 video file, and if so, how to?

tobbee commented 1 year ago

@prife Nice that it works for you with fragmented files.

The library supports generating all the boxes of progressive mp4 files, but there is no helper functions for adding samples, generating interleaved chunks etc that are needed to make a progressive mp4 file from scratch.

The closest code is cmd/mp4ff-crop that crops a progressive mp4 file with minimal changes compared to the input progressive mp4 file.

It is not often that I want to make a progressive mp4 file from samples myself. In these cases, I would use use MP4Box.

If you want to contribute code to generate progressive mp4 files, it would be welcome!