iso_base_media 6.3.0 copy "iso_base_media: ^6.3.0" to clipboard
iso_base_media: ^6.3.0 copied to clipboard

A dart package to parse ISO Base Media File Format.

iso_base_media #

pub package Build Status

A dart package to parse ISO Base Media File Format.

Usage #

Extract hvcC boxes from an HEIC file #

Future<void> main() async {
  final src = await FileRASource.openPath('./test/test_files/a.heic');
  final fileBox = ISOBox.createRootBox();
  final ipcoBox = await fileBox.getChildByTypePath(src, ['meta', 'iprp', 'ipco']);
  if (ipcoBox == null) {
    print('ipco box not found');
    return;
  }
  final hvcCBoxList = await ipcoBox.getDirectChildrenByTypes(src, {'hvcC'});
  if (hvcCBoxList.isEmpty) {
    print('hvcC box not found');
    return;
  }
  for (final hvcCBox in hvcCBoxList) {
    print('hvcC: start: ${hvcCBox.headerOffset}, size: ${hvcCBox.boxSize}');
  }
  /**
    * Output:
    hvcC: start: 253, size: 108
    hvcC: start: 381, size: 107
   */
}

1
likes
160
points
1.8k
downloads

Publisher

verified publishermgenware.com

Weekly Downloads

A dart package to parse ISO Base Media File Format.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

random_access_source, web

More

Packages that depend on iso_base_media