Skip to content

Is there a way unseekable segmented Webm chunks to seekable single file. #110

Description

@je3f0o

Hello.

I have N number of chunks recorded from Brower's MediaRecorder API. As you know Brower's MediaRecorder API has bug with missing metadata and media is unseekable. I wrote some simple script to concat chunks into a single webm file and use ebml to create a seekable webm. I just wondering is there a way to create seekable webm without concatenating. Idea is something like this:

const output  = fs.createWriteStream("seekable.webm");
const decoder = new (require("ebml").Decoder)();

const chunks = ['1.webm', '2.webm', '3.webm', /*...*/];

for (chunk of chunks) {
  fs.createReadStream(chunk).pipe(decoder).pipe(output, { end : false });
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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