isobmff- A parser and generator for the ISO-14496-12/14 base media file format

Safe HaskellNone



A list of sample offsets and sizes of a track. This tells the decoder where stuff inside an mdat box is, and also where the mdat box starts, which is the reason why currently there are several TODOs concercning the offset calculation.



trackRunIso5 :: Int32 -> [(Word32, ByteString)] -> Box TrackRun Source #

Create a track run box. First parameter is the accumulated offset to the moof box. This is needed for data offset calculation. Then follows a list of sample-duration and sample-sizes. All samples are flagged independent.