ekisu / mpv-webm

Simple WebM maker for mpv, with no external dependencies.
MIT License
555 stars 32 forks source link

Add support for encoding HLS livestreams #100

Closed ekisu closed 3 years ago

ekisu commented 3 years ago

Thanks to @Igetin for the implementation (I really didn't know dump-cache was a thing). For now I'll keep it only on HLS streams, as I guess other ones might work with the original implementation (?). Might change this later tho. The code for this became a bit ugly too, but eh

return nil, nil, nil, nil, nil isn't supposed to be a joke too

Closes #28

iiiGerardoiii commented 2 years ago

Does this work for mpegts streams?

I'm trying to encode a webm out of a mpegts stream, but it always encodes a different and longer portion of the stream (e.g. I select 00:02.871 to 00:05.488, and it ends up encoding a portion from way after those times, and it's 30 seconds long).

My guess is it has to do with the seekbar that keeps getting longer as the stream plays maybe?