ekisu / mpv-webm

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

Output as same filetype as input? #22

Closed frozenpandaman closed 6 years ago

frozenpandaman commented 6 years ago

Hi,

Would it be possible to add an option to output to the same format as the input file, e.g. if playing an mp4, the crop, timestamp, and selected mute/subtitle/etc. filters would still be applied, but the video wouldn't be changed into a webm or avi? This would be super helpful (and possibly easy to do – similar to the webm option just without the passing the -c:v filter?) Thanks!

ekisu commented 6 years ago

Possibly a duplicate of #8. Unfournately, mpv doesn't support copying codecs (and even if it did, it doesn't always give the desired effect).

Unless you mean mirroring the input's audio and video codec, which should be doable...

frozenpandaman commented 6 years ago

I see. That'd be similar, though I think would snap to keyframes, so the output clip wouldn't get cut at the exact times, right?

How about an option to convert to mp4, then?

ekisu commented 6 years ago

I'll probably do it when I get a bit of free time, shouldn't be too hard.

frozenpandaman commented 6 years ago

Sounds great, thank you! I'll look forward to it. I tried fooling with myself it but I'm super familiar with Lua, otherwise I'd make a PR.

ekisu commented 6 years ago

I've added it, however, on the mpv build I use, the embedded libx264 has no 10-bit support, so I couldn't test it.

frozenpandaman commented 6 years ago

@ElegantMonkey Seems to work for me! Thank you so much! Super appreciated.