occivink / mpv-scripts

Various scripts for mpv
The Unlicense
420 stars 38 forks source link

encode_slice - Possible to 'copy' the container format? #17

Closed joeynotjoe closed 6 years ago

joeynotjoe commented 6 years ago

Hello!

I am wondering how, to get my _slice profile to not use a set container. I had it set to mkv, but I ran into an mp4 source that had incompatible subtitle attachments. It would be great if there was a way to copy the extension/container when copying all streams.

occivink commented 6 years ago

I think a reasonable way to do that would be to merge the variables output_format and container, and expose a variable $x to represent the container of the input file, you could just do

output_format=$f_$n.$x

and forcing a container would be done with

output_format=$f_$n.webm