0
0
mirror of https://github.com/mpv-player/mpv.git synced 2024-09-20 20:03:10 +02:00
mpv/sub
wm4 90b968a67a player: show subtitles on VO if --force-window is used
If a VO is created, but no video is playing (i.e. --force-window is
used), then until now no subtitles were shown. This is because VO
subtitle display normally depends on video frame timing. If there are no
video frames, there can be no subtitles.

Change this and add some code to handle this situation specifically. Set
a subtitle PTS manually and request VO redrawing manually, which gets
the subtitles rendered somehow.

This is kind of shaky. The subtitles are essentially sampled at
arbitrary times (such as when new audio data is decoded and pushed to
the AO, or on user interaction). To make a it slightly more consistent,
force a completely arbitrary minimum FPS of 10.

Other solutions (such as creating fake video) would be more intrusive or
would require VO-level API changes.

Fixes #3684.
2016-10-26 20:44:05 +02:00
..
ass_mp.c sub: change how libass output is converted to RGBA in some cases 2016-07-03 19:32:31 +02:00
ass_mp.h sub: pack libass bitmaps directly in sd_ass.c and osd_libass.c 2016-06-30 21:38:50 +02:00
dec_sub.c sub: don't potentially discard too many subtitles on seek 2016-08-14 20:27:37 +02:00
dec_sub.h sub: Add SD_CTRL_UPDATE_SPEED 2016-09-13 09:23:19 +02:00
draw_bmp.c mp_image: split colorimetry metadata into its own struct 2016-07-03 19:42:52 +02:00
draw_bmp.h csputils: get rid of mp_csp_details 2015-01-06 16:50:58 +01:00
img_convert.c sub: move RGBA scaling to vo_vaapi 2016-07-03 19:32:43 +02:00
img_convert.h sub: move RGBA scaling to vo_vaapi 2016-07-03 19:32:43 +02:00
lavc_conv.c sub: interpret "text" subtitles as srt 2016-04-06 12:36:13 +02:00
osd_dummy.c sub: pass preferred OSD format to subtitle renderers 2016-07-03 19:31:56 +02:00
osd_font.otf osd+osc: Add left-arrow to osd-font 2014-08-21 18:45:41 +02:00
osd_libass.c osd: fix OSD redrawing after removing external overlays 2016-09-20 15:44:06 +02:00
osd_state.h player: show subtitles on VO if --force-window is used 2016-10-26 20:44:05 +02:00
osd.c player: show subtitles on VO if --force-window is used 2016-10-26 20:44:05 +02:00
osd.h player: show subtitles on VO if --force-window is used 2016-10-26 20:44:05 +02:00
sd_ass.c options: rename subtitle options 2016-10-03 16:57:04 +02:00
sd_lavc.c sd_lavc: enable teletext 2016-09-03 17:12:53 +02:00
sd.h sub: don't potentially discard too many subtitles on seek 2016-08-14 20:27:37 +02:00