deepch / vdk

A set of libraries for building streaming services. RTSP RTMP MP4 WS TS DASH WEBRTC MP4f
MIT License
398 stars 164 forks source link

mkv support ? #84

Open hasnhasan opened 1 year ago

hasnhasan commented 1 year ago

Hello, I am getting error in demuxer.

demuxer := mkv.NewDemuxer(reader)

` panic: runtime error: slice bounds out of range [6:4]

goroutine 66 [running]: format/mkv.(Demuxer).probe(0xc0000a6000) format/mkv/demuxer.go:63 +0x45a format/mkv.(Demuxer).Streams(0xc0000a6000) format/mkv/demuxer.go:36 +0x33`

ffmpeg ; "-c:v", "prores", "-pix_fmt", "yuva444p10le", "-f", "matroska",

ikaio commented 8 months ago

having the same

panic: runtime error: slice bounds out of range [:63777] with capacity 42

goroutine 1 [running]: github.com/deepch/vdk/format/mkv.(Demuxer).probe(0xc00012a090) /workspace/go/pkg/mod/github.com/deepch/vdk@v0.0.25/format/mkv/demuxer.go:67 +0x410 github.com/deepch/vdk/format/mkv.(Demuxer).Streams(0xc00012a090) /workspace/go/pkg/mod/github.com/deepch/vdk@v0.0.25/format/mkv/demuxer.go:36 +0x1f main.main() /workspace/tailmplx/stream/stream.go:47 +0x305 exit status 2