edde746
e67bf996c5
fix(player): keep subtitles on the picture when ambient lighting is on
...
With ambient lighting enabled, ASS subtitles anchored to a corner (and PGS
bitmaps) rendered against the whole screen instead of the video: the effect
stretches mpv's frame to the window with video-aspect-override and lets the
shader composite the real picture inside it, and mpv places subtitles against
that stretched frame.
The pinned libmpv now carries --sub-video-rect-aspect (edde746/mpv-build
ec08018), which makes mpv derive its subtitle margins from the picture's real
aspect inside the displayed rect. AmbientLightingService hands it the video
aspect before overriding the frame, so a libmpv without the option refuses
cleanly with the frame untouched, and resets it on disable.
Verified on a Pixel 7 (2400x1080) with a 16:9 file whose OP credits are
\pos-anchored: subtitle extents are pixel-identical with ambient lighting on
and off, and mpv reports OSD borders l=240 r=240 for the overridden frame.
close #2120
2026-09-03 21:28:10 +02:00
..
2026-08-21 19:23:42 +02:00
2026-09-03 11:36:29 +02:00
2026-09-03 11:36:29 +02:00
2026-09-03 07:35:34 +02:00
2026-08-29 19:11:58 +02:00
2026-09-03 11:36:29 +02:00
2026-09-03 16:46:27 +02:00
2026-09-03 11:36:29 +02:00
2026-09-03 11:36:56 +02:00
2026-09-03 11:36:56 +02:00
2026-09-03 21:28:10 +02:00
2026-08-17 20:47:40 +02:00
2026-07-30 11:55:13 +02:00
2026-08-24 13:41:44 +02:00
2026-09-02 22:38:11 +02:00
2026-07-26 04:24:55 +02:00
2026-05-04 22:40:18 +02:00
2026-08-27 14:14:01 +02:00
2026-08-14 13:36:29 +02:00
2026-08-27 10:16:05 +02:00
2026-08-06 03:45:09 +02:00
2026-08-23 18:13:39 +02:00
2026-08-21 19:23:40 +02:00
2026-08-31 06:43:47 +02:00
2026-08-19 13:16:36 +02:00
2026-08-21 19:23:40 +02:00
2026-07-24 03:56:40 +02:00
2026-07-30 20:03:04 +02:00
2026-05-01 01:20:36 +02:00
2026-07-26 06:09:47 +02:00
2026-09-03 11:36:29 +02:00
2026-08-27 16:58:52 +02:00
2026-08-24 19:27:20 +02:00
2026-08-06 03:45:09 +02:00
2026-08-17 19:02:19 +02:00
2026-08-08 09:09:48 +02:00
2026-05-01 01:20:36 +02:00
2026-08-17 19:02:25 +02:00
2026-07-24 03:56:40 +02:00
2026-08-17 19:02:25 +02:00
2026-08-21 19:23:40 +02:00
2026-08-27 09:21:48 +02:00
2026-08-17 19:02:23 +02:00
2026-08-05 06:09:26 +02:00
2026-08-24 05:23:05 +02:00
2026-09-03 11:36:29 +02:00
2026-09-03 11:36:56 +02:00
2026-07-12 08:42:25 +02:00
2026-08-25 03:07:14 +02:00
2026-08-05 06:09:26 +02:00
2026-09-03 13:08:46 +02:00
2026-08-14 13:36:29 +02:00
2026-07-31 21:45:33 +02:00
2026-07-05 15:55:52 +02:00
2026-08-17 19:02:19 +02:00
2026-08-23 17:51:27 +02:00
2026-09-02 12:31:27 +02:00
2026-09-03 11:36:29 +02:00
2026-07-18 20:04:09 +02:00
2026-08-17 19:02:25 +02:00
2026-08-24 12:32:05 +02:00
2026-07-31 21:45:32 +02:00
2026-07-26 06:09:48 +02:00
2026-08-25 08:42:48 +02:00
2026-08-25 08:42:48 +02:00
2026-07-26 06:09:48 +02:00
2026-08-18 04:06:11 +02:00
2026-08-17 13:47:00 +02:00
2026-07-17 23:09:07 +02:00
2026-09-03 18:13:28 +02:00
2026-04-16 23:13:15 +02:00
2026-04-21 12:04:48 +02:00
2026-08-08 09:09:48 +02:00
2026-08-24 05:23:05 +02:00
2026-08-27 16:59:08 +02:00
2026-08-17 19:02:25 +02:00
2026-07-05 19:26:28 +02:00
2026-08-10 21:23:55 +02:00
2026-08-10 23:04:35 +02:00
2026-08-24 12:32:05 +02:00
2026-08-02 16:16:19 +02:00
2026-08-17 19:02:25 +02:00
2026-08-17 19:02:25 +02:00
2026-08-09 07:30:47 +02:00
2026-09-03 13:03:24 +02:00
2026-07-26 06:09:48 +02:00
2026-08-25 08:42:48 +02:00
2026-08-17 19:02:25 +02:00
2026-09-03 11:36:56 +02:00
2026-09-03 11:36:29 +02:00
2026-09-03 11:36:29 +02:00
2026-07-30 01:33:46 +02:00
2026-07-16 14:36:48 +02:00
2026-09-03 13:08:46 +02:00
2026-09-03 13:08:46 +02:00
2026-08-02 04:55:54 +02:00
2026-08-17 19:02:25 +02:00
2026-08-24 19:27:20 +02:00
2026-08-18 06:09:11 +02:00
2026-05-28 15:46:08 -04:00
2026-08-05 12:03:05 +02:00
2026-05-01 01:20:36 +02:00
2026-07-12 08:42:25 +02:00
2026-08-27 14:14:01 +02:00
2026-08-31 11:32:07 +02:00
2026-07-26 06:09:49 +02:00
2026-05-10 13:33:02 +02:00
2026-07-26 06:09:49 +02:00
2026-07-26 06:09:49 +02:00
2026-08-02 04:37:29 +02:00
2026-07-31 21:45:32 +02:00
2026-07-30 02:46:10 +02:00
2026-08-27 14:14:01 +02:00
2026-08-24 05:23:05 +02:00
2026-08-18 06:09:11 +02:00
2026-09-03 13:08:46 +02:00
2026-07-24 03:56:40 +02:00
2026-08-17 19:02:25 +02:00
2026-08-26 16:53:14 +02:00
2026-08-18 06:09:11 +02:00
2026-07-24 03:46:46 +02:00
2026-08-08 09:09:48 +02:00
2026-07-26 06:09:48 +02:00