https://github.com/332065255/flv2fmp4
程式碼程式庫
軟編碼Flv 到Mp4 容器(一)
軟編碼Flv 到Mp4 容器(二) flv tag拆解
軟編碼Flv 到Mp4 容器(三) flv metadata tag解析
軟編碼Flv 到Mp4 容器(四) fmp4 總覽和基礎講解
軟編碼Flv 到Mp4 容器(五) fmp4 ftyp box 和moov>mvhd box詳解
軟編碼Flv 到Mp4 容器(六) fmp4 moov>trak>tkhd box 和 moov>trak>mdia>mdhd box講解
軟編碼Flv 到Mp4 容器(七) fmp4 mdia>hdlr box 和 mdia>minf> smhd 和dinf box講解
軟編碼Flv 到Mp4 容器(八) fmp4 mdia>stbl>stsd box 講解
軟編碼Flv 到Mp4 容器(九) fmp4 stts stsc stsz stco box 講解
軟編碼Flv 到Mp4 容器(十) fmp4 mvex box 講解
軟編碼Flv 到Mp4 容器(十一) fmp4 moof box詳解
軟編碼Flv 到Mp4 容器(十二) fmp4 mdat box詳解
軟編碼Flv 到Mp4 容器(十三) fmp4 產生ftyp和moov所必要的 flv資料
- ftyp - moov - mvhd - trak - tkhd - mdia - mdhd - hdlr - minf - smhd - dinf - dref - url - stbl - stsd - mp4a(avc1) - esds(avcC) - stts - stsc - stsz - stco - mvex -trex - moof - mfhd - traf -tfhd -tfdt -sdtp -trun - mdat
首先對應標題的box在 fmp4容器中的位置 mdat box
Box Type: ‘mdat’
Container: File
Mandatory: No
Quantity: Any number
定義
aligned(8) class MediaDataBox extends Box(‘mdat’) { bit(8) data[];}
data is the contained media data