lieff / minimp4

Minimalistic MP4 mux/demux single header library
Creative Commons Zero v1.0 Universal
345 stars 59 forks source link

is This lib supporting mux fragment mp4? #3

Closed myseemylife closed 5 years ago

lieff commented 5 years ago

If you mean moof atom, which contains small part of the index to allow streaming then no. But if you are using one mdat per frame mode and there only one stream - then you can demux each mdat and assume it as frame without reading the index.

myseemylife commented 5 years ago

If you mean moof atom, which contains small part of the index to allow streaming then no. But if you are using one mdat per frame mode and there only one stream - then you can demux each mdat and assume it as frame without reading the index.

in my use case,i have raw h264 frames packed with self define header,and i try to find a c or c++ lib to do mux things, i'm not familiar with fragment MP4 format and mp4. finally,fMP4 frames will be send to Html5 web pages to decoding and rendering

lieff commented 5 years ago

Yeah, for HTML5 we need fMP4/moof atom support. Hack only possible in own demux code. I think it's not so hard to add such support.

myseemylife commented 5 years ago

aha!! After long time searching,i have got libmov ~this lib can mux annex-b h264 or hevc bytes into Fragment Mp4!

lieff commented 5 years ago

Good catch) I've add this lib in readme links too.