mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.8k stars 2.93k forks source link

Option to keep soft subs when encoding from mkv #32

Closed Bilalh closed 11 years ago

Bilalh commented 11 years ago

When encoding from a mkv it would be useful to able to keep the soft subs e.g if I do

mpv anime.mkv -o opening.mkv --start 6 --end 130

and the mkv has soft subs they would be converted to hard subs.

ghost commented 11 years ago

I'd like this too...

According to divVerent this is not quite easy, so unfortunately I don't think it will happen any time soon.

qyot27 commented 11 years ago

To be more descriptive, the problem seems to be with the use of --start and --end, not the container of the source file.

Reason being, I do softsubbed MKV->hardsubbed AVI conversion with mpv all the time (so I'm certain that part's okay), and I just verified that it doesn't have issues with softsubbed MKV->hardsubbed MKV either (because I couldn't remember if the last time I did this for real was with mpv or the old vo-lavc branch), even if logically there shouldn't be any difference between the way subtitles are handled with output containers anyway.

EDIT: wait, never mind, I mis-read it as wanting hardsubs, not a request for direct stream copy+trimming the sub timecodes/lines down so that the soft subs still match up with the audio.

mathstuf commented 11 years ago

mkvmerge should be able to do this, so looking there for pointers would be a start.

ghost commented 11 years ago

I actually would like this feature too. However, it's perhaps a bit involved, and it seems nobody wanted to work for it (the issue has been open for almost a year...). Closing because apparently it doesn't go anywhere and just clutters the issue list.

If someone wants to try it, that would still be welcome.