1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-02 04:42:10 +00:00
mpv/player
wm4 5116c6c242 sub: approximate subtitle display in no-video mode
This makes subtitle display somewhat work if no video is displayed, but
a VO window exists (--force-window or cover art display).

The main problem with normal subtitle display is that it's locked to
video: it uses the video PTS as reference, and the subtitles advance
only if a new video frame is displayed. In audio-only mode on the other
hand, no video frame is ever displayed (or only 1 in the cover art
case). You would need a workaround to adjust the subtitle PTS, and you
would have to decide with what frequency to update the display. In
general, there is no "right" display FPS for subtitles. Some formats
(ASS) have animations parameterized by time, and any refresh rate could
be used.

Sidestep these problems by enabling the text OSD-based subtitle
mechanism. This is similar to --no-sub-ass, and updates and renders
subtitles with plain OSD. It has some caveats: no bitmap subs, somewhat
incorrect timing, no formatting. Timing in particular is a bit strange
and depends how often the audio output asks for new data, or other
events that happen to wakeup the playloop.
2014-09-25 21:32:56 +02:00
..
lua osc: update cache display 2014-09-25 11:57:49 +02:00
timeline Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
audio.c audio: cleanup spdif format definitions 2014-09-23 23:11:54 +02:00
client.c client API: use playback abort mechanism 2014-09-13 16:52:42 +02:00
client.h lua: synchronously wait until scripts are loaded 2014-09-06 17:02:47 +02:00
command.c command: no space before "%" in volume default OSD message 2014-09-22 18:07:34 +02:00
command.h client API: minor optimizations for property notification 2014-08-02 01:53:22 +02:00
configfiles.c player: don't let multiline filenames set options on resume 2014-09-16 18:23:01 +02:00
core.h command: improve "osd" command 2014-09-22 00:25:59 +02:00
discnav.c video: get rid of video_next_pts field 2014-08-22 14:22:06 +02:00
loadfile.c player: shorten skip heuristic for playlist_prev to 1 second 2014-09-14 10:32:24 +02:00
lua.c sanitizer: avoid divide-by-zero instances 2014-09-14 21:07:30 +02:00
main_fn.c cocoa: fix build by using the correct HAVE_* macro 2014-08-06 09:31:59 +02:00
main.c stream: redo playback abort handling 2014-09-13 16:09:51 +02:00
misc.c player: some more input refactoring 2014-09-07 20:44:54 +02:00
osd.c osd: fix --term-osd=no 2014-09-22 00:29:45 +02:00
playloop.c player: change --keep-open semantics 2014-09-24 01:56:53 +02:00
screenshot.c Move compat/ and bstr/ directory contents somewhere else 2014-08-29 12:31:52 +02:00
screenshot.h
scripting.c lua: synchronously wait until scripts are loaded 2014-09-06 17:02:47 +02:00
sub.c sub: approximate subtitle display in no-video mode 2014-09-25 21:32:56 +02:00
video.c video: filter new frames at a better time (2) 2014-09-22 18:06:59 +02:00