Yahweasel / libav.js

This is a compilation of the libraries associated with handling audio and video in ffmpeg—libavformat, libavcodec, libavfilter, libavutil, libswresample, and libswscale—for emscripten, and thus the web.
288 stars 18 forks source link

parse mkv #53

Closed iptvsmartws closed 1 month ago

iptvsmartws commented 1 month ago

Hello ,

any demo for parsing metadata from mkv video . i want to get the subtitles . any help ?

Yahweasel commented 1 month ago

I've never done subtitles in libav.js. It's possible/likely that you'd need a decoder that's not currently in any configuration, and/or some function that's not currently exposed. Regardless, the general answer is: libav.js is just a port of FFmpeg's libav libraries to C. The way you do it in libav.js is to learn how to do it in libav, and then do the same thing. I didn't make libav, so I don't know all the ins and outs, only the ones I use.