mpv-player / mpv

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

select.lua: Support for DVD/Blu-ray title selection #14586

Open stax76 opened 1 month ago

stax76 commented 1 month ago

Expected behavior of the wanted feature

Allow selection of DVD/Blu-ray titles with select.lua.

The context menu of mpv.net implements Blu-ray titles by reading log messages, I wasn't able to find a way to support DVD titles. It supports MKV edition selection.

Alternative behavior of the wanted feature

No response

Log File

Desktop> mpvnet --quiet 'E:\Video\Samples\The Glass House - 2001 - BD.iso'
[bd] List of available titles:
[bd] idx:   0 duration: 01:46:14 (playlist: 00000.mpls)
[bd] idx:   1 duration: 00:05:10 (playlist: 00001.mpls)
[bd] idx:   2 duration: 00:02:56 (playlist: 00003.mpls)
[bd] idx:   3 duration: 00:00:12 (playlist: 00006.mpls)
[bd] idx:   4 duration: 00:00:17 (playlist: 00011.mpls)
● Video  --vid=1               (h264 1920x1080 23.976 fps)
● Audio  --aid=1  --alang=deu  (dts 6ch 48000 Hz)
○ Audio  --aid=2  --alang=eng  (dts 6ch 48000 Hz)
○ Subs   --sid=1  --slang=deu  (hdmv_pgs_subtitle)
○ Subs   --sid=2  --slang=eng  (hdmv_pgs_subtitle)
AO: [wasapi] 48000Hz 5.1(side) 6ch float
VO: [gpu] 1920x1080 yuv420p

Sample Files

No response

stax76 commented 1 month ago

command_palette.lua supports BD title selection. It has new features, some ported from select.lua.