https://github.com/DevilForDevs/YtMuxerKt/blob/master/src/main/kotlin/webm/WebMParser.kt
This is tiny webm parser can give you 6 2 or any sample count auto switching clusters. Each sample will have abs offset that you can copy using sample size.