Skip to content

How to extract samples from fragmented MP4 file? #360

Open
@Avijobo

Description

@Avijobo

Hi,

I am using MP4Box.js extraction and the WebCodecs api to decode and display individual MP4 frames. All works well with non-fragmented MP4 files.

However when I pass the uri of a fragmented MP4 file, extract samples, create encodedVideoChunks from the samples and decode them, after about 10 frames I get a decoder error from the WebCodecs VideoDecoder.

Any idea why this happens? Is there a different approach needed to extract samples from a fragmented MP4 file?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions