mpv-player / mpv

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

Load external subtitles when playing blurays #10443

Open tleydxdy opened 2 years ago

tleydxdy commented 2 years ago

When playing back a bluray it would be nice to have a way to autoload external subtitles. I'm thinking something like this, say I have subtitle corresponding to the main episode m2ts files 00001-00005

.
├── 00001.ass
├── 00002.ass
├── 00003.ass
├── 00004.ass
├── 00005.ass
├── BDMV
...
│   └── STREAM
│       ├── 00000.m2ts
│       ├── 00001.m2ts
│       ├── 00002.m2ts
│       ├── 00003.m2ts
│       ├── 00004.m2ts
│       ├── 00005.m2ts
│       ├── 00006.m2ts
│       └── 00007.m2ts
...

When I play back the bluray with mpv bd://first/./ mpv could autoload the files according to the name and it would function as if the subtitles are built-in, it would also be great to integrate with --sub-files= so playing back from drive/iso would work too.

hooke007 commented 2 years ago

sth like https://github.com/mpv-player/mpv/issues/9767

tleydxdy commented 2 years ago

I don't think that is enough, I tried putting the sub files alongside m2ts and mpv isn't loading it.