mpv-player / mpv

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

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

Closed delroth closed 3 months ago

delroth commented 8 years ago

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.

nutinshell commented 8 years ago

This is a very useful feature!

ghost commented 8 years ago

Feel free to attempt to implement it.

ghost commented 5 years ago

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.

bufemc commented 4 years ago

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

Akemi commented 4 years ago

nope.

koynoyno commented 4 years ago

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).

weiweihuanghuang commented 2 years ago

+1

thecoachchen commented 1 year ago

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.

kasper93 commented 3 months ago

Fixed by #13073