Skip to content

Error creating esds and dOps boxes from AudioEncoder description #502

@danrossi

Description

@danrossi

Attempting to integrate the current api into an encoder project. I discovered attempting to create the required esds and dOps boxes for aac and opus audio codecs. Parsing the description from the encoder decoderConfig causes errors for both. Is there a specific way to parse the description into the boxes ?

https://electroteque.org/dev/mp4box/mp4boxopus.html
https://electroteque.org/dev/mp4box/mp4boxaac.html

DataStream.ts:485 Uncaught RangeError: Offset is outside the bounds of the DataView
    at DataView.prototype.getUint8 (<anonymous>)
    at m.readUint8 (DataStream.ts:485:30)
    at li.parse (dOps.ts:30:41)
    at createBoxFromDescription (mp4boxopus.html:36:9)
    at output (mp4boxopus.html:86:37)
DataStream.ts:485 Uncaught RangeError: Offset is outside the bounds of the DataView
    at DataView.prototype.getUint8 (<anonymous>)
    at m.readUint8 (DataStream.ts:485:30)
    at m.readUint24 (DataStream.ts:648:45)
    at Jt.parseFullHeader (box.ts:232:25)
    at Jt.parse (esds.ts:14:10)
    at createBoxFromDescription (mp4boxaac.html:36:9)
    at output (mp4boxaac.html:86:37)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions