Skip to content

Conversation

@bisqet
Copy link

@bisqet bisqet commented Nov 21, 2022

Here are two fixes which allows demuxer to demux more .webm files
Here are fixes:

  • Fix unknown IDs wasn't skipped in a few situations so demuxer lost order of bytes

  • Fix Element(Segment and Cluster) size unknown error.
    Since https://w3c.github.io/mse-byte-stream-format-webm/#webm-init-segments Cluster and Segment can have undefined size.
    It is not a full fix It's just a hack for videos which have one Segment and one Cluster. For full fix we need to rewrite this.dataInterface.offset < this.end to waiting for next element to be next Segment(0x18538067) or Cluster(0x1F43B675)

It is not a full fix It's just a hack for one Segment and one Cluster videos. For full fix we need to (for Segment and Cluster) rewrite element.end to waiting for next element to be next Segment(0x18538067) or Cluster(0x1F43B675)
@bisqet
Copy link
Author

bisqet commented Nov 22, 2022

I checked and it works with multiple clusters video.
One case it didn't work for now - multiple Track elements like in video below
big-buck-bunny_trailer.webm

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants