Sagnac / streamsave

mpv script aimed at saving live streams and clipping online videos without encoding.
94 stars 4 forks source link

Is webm still supported? #9

Closed AnimatorTao closed 1 year ago

AnimatorTao commented 1 year ago

force_extension=.webm gives me a "Cache dumping stopped due to a error" message with the output being a 1kb webm file.

Sagnac commented 1 year ago

Yes, keep in mind only VP8, VP9, and AV1 are part of the WebM spec. Can you share the format information of the stream you're trying to save?

AnimatorTao commented 1 year ago

Yeah that was the problem, thought was still vp9 but they've apparently changed it. Another thing, since there's not encoding involved I guess the "keeping active tracks" option like muteda audio/hidden subs is not available and I'm better off just ffmpeg the outputs?

Sagnac commented 1 year ago

Sorry, could you rephrase your question? I'm not sure I understand. Whether the audio is muted or not makes no difference, only which track is selected. If the stream has other tracks you want written you could switch to them and when they're properly cached you could write them to file.

Although if that's your objective (including multiple tracks) it's probably better to automate this using yt-dlp directly and using a tool like mkvmerge without having to encode.

AnimatorTao commented 1 year ago

Nothing to do with multiple tracks, poor choice of words on my part sorry.

Whether the audio is muted or not makes no difference

This was my question, if I mute the player or not before dumping the output will still have audio?

Sagnac commented 1 year ago

Yes, as long as that track is selected and cached it will be present in the output.

AnimatorTao commented 1 year ago

Ok thanks for the answer.