mpv icon indicating copy to clipboard operation
mpv copied to clipboard

support for secondary subtitle streams not forced to top | Make secondary subtitle track style editable

Open delroth opened this issue 9 years ago • 7 comments

MPV is one of the rare video players on Linux that supports reading several subtitle streams natively. I have some videos with several non-overlapping ASS subtitle tracks, and I would like to be able to display two of these tracks at the same time.

However, --secondary-sid is currently hardcoded to put the second track at the top of the video. Manually commenting out this one line is enough to get rid of that behavior.

Would it be possible to have this be configurable? I'd like to avoid keeping local patches for my software. If you think it's worth it, I can volunteer my time to implement it.

delroth avatar Apr 04 '16 00:04 delroth

This is a very useful feature!

nutinshell avatar Apr 16 '16 17:04 nutinshell

Feel free to attempt to implement it.

ghost avatar Apr 24 '16 17:04 ghost

A workaround which is more flexible and works on other players/platforms is to merge the subtitle files into a single file using any of the available online or offline tools. I've got good results with both https://subtitletools.com/merge-subtitles-online and https://pas-bien.net/2srt2ass/ which had to be manually tweaked for styling and positioning (had to create a post-processing script for that).

But most importantly, you can join more than two subtitles in a player-independent way. For example, in my case I needed to have four sets of subtitles and using the SSA/ASS format turned out to be the best solution, since the subtitles will work with every player that supports the SSA format.

ghost avatar Feb 03 '19 14:02 ghost

Any progress in this? Is there a command option so I can define something like this:

show first selected subtitle at position Y1 and second one at position Y2?

This would be very fine for learning languages by watching movies having several subtitles.

See also this discussion here: https://forum.smplayer.info/viewtopic.php?f=2&t=12830

bufemc avatar Nov 21 '20 12:11 bufemc

nope.

Akemi avatar Nov 21 '20 15:11 Akemi

As a workaround, you can use VLC 4 (currently in beta)

Copied from Askubuntu.com:

When playing a video, you need to "Toggle secondary subtitle control" with the default shortcut Ctrl+Shift+V. (This means that the normal subtitle control shortcuts like v or Alt+v, for cycling between subtitles backwards and forwards, will now apply to the secondary subtitles, rather than the main subtitles. Pressing Ctrl+Shift+V again will toggle back to having these apply to the main subtitles.) Then, press v the right number of times to switch to the (secondary) subtitles that you want.

Tools > Preferences > Subtitles/OSD > Dual Subtitles (at the very bottom) > Align and change it to anything but unset. You may also need to adjust the offset (the adjacent setting).

koynoyno avatar Nov 29 '20 00:11 koynoyno

+1

weiweihuanghuang avatar Oct 22 '22 12:10 weiweihuanghuang

Any progress on implementing custom second subtitle positioning? That and having on the spot translations via SRT files is keeping me from moving away from PotPlayer full time.

thecoachchen avatar Sep 28 '23 13:09 thecoachchen