1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-24 16:43:28 +00:00
mpv/video/out
wm4 031555fbe6 player: add display sync mode
If this mode is enabled, the player tries to strictly synchronize video
to display refresh. It will adjust playback speed to match the display,
so if you play 23.976 fps video on a 24 Hz screen, playback speed is
increased by approximately 1/1000. Audio wll be resampled to keep up
with playback.

This is different from the default sync mode, which will sync video to
audio, with the consequence that video might skip or repeat a frame once
in a while to make video keep up with audio.

This is still unpolished. There are some major problems as well; in
particular, mkv VFR files won't work well. The reason is that Matroska
is terrible and rounds timestamps to milliseconds. This makes it rather
hard to guess the framerate of a section of video that is playing. We
could probably fix this by just accepting jittery timestamps (instead
of explicitly disabling the sync code in this case), but I'm not ready
to accept such a solution yet.

Another issue is that we are extremely reliant on OS video and audio
APIs working in an expected manner, which of course is not too often
the case. Consequently, the new sync mode is a bit fragile.
2015-08-10 18:48:45 +02:00
..
cocoa cocoa: support the "window-minimized" property 2015-03-08 22:00:47 +01:00
wayland Remove trailing whitespaces 2015-05-15 11:02:44 +02:00
aspect.c video: fix panscan in vertical case 2015-06-29 23:46:59 +02:00
aspect.h Update license headers 2015-04-13 12:10:01 +02:00
bitmap_packer.c Update license headers 2015-04-13 12:10:01 +02:00
bitmap_packer.h
cocoa_common.h cocoa: redo synchronization 2015-05-13 22:00:34 +02:00
cocoa_common.m cocoa: don't load hardcoded icon if running from bundle 2015-05-25 08:58:32 +02:00
d3d_shader_420p.h vo_direct3d: support NV12 with shaders 2015-03-02 19:09:18 +01:00
d3d_shader_nv12.h vo_direct3d: support NV12 with shaders 2015-03-02 19:09:18 +01:00
d3d_shader_yuv.hlsl vo_direct3d: support NV12 with shaders 2015-03-02 19:09:18 +01:00
dither.c Update license headers 2015-04-13 12:10:01 +02:00
dither.h
drm_common.c vo_drm: fix missing newlines in error messages 2015-06-28 15:22:11 +02:00
drm_common.h vo_drm: extract vt_switcher to drm_common 2015-04-19 21:18:15 +02:00
filter_kernels.c Various spelling fixes 2015-06-18 19:36:58 +02:00
filter_kernels.h Update license headers 2015-04-13 12:10:01 +02:00
gl_cocoa.c cocoa: redo synchronization 2015-05-13 22:00:34 +02:00
gl_common.c vo_opengl: minor simplifications 2015-08-01 21:11:38 +02:00
gl_common.h client API, dxva2: add a workaround for OpenGL fullscreen issues 2015-07-03 16:38:12 +02:00
gl_header_fixes.h Update license headers 2015-04-13 12:10:01 +02:00
gl_hwdec_dxva2.c client API, dxva2: add a workaround for OpenGL fullscreen issues 2015-07-03 16:38:12 +02:00
gl_hwdec_vaglx.c video: reduce error message when loading hwdec backend fails 2015-06-20 22:26:57 +02:00
gl_hwdec_vda.c hwdec: add VideoToolbox support 2015-08-05 17:47:30 +02:00
gl_hwdec_vdpau.c video: reduce error message when loading hwdec backend fails 2015-06-20 22:26:57 +02:00
gl_hwdec.c hwdec: add VideoToolbox support 2015-08-05 17:47:30 +02:00
gl_hwdec.h vo_opengl_cb, vo_opengl: add option for preloading hwdec context 2015-07-07 15:05:32 +02:00
gl_lcms.c vo_opengl: add support for custom shaders 2015-05-27 11:09:41 +02:00
gl_lcms.h vo_opengl: gl_lcms: replace icc-cache by icc-cache-dir 2015-05-01 21:52:08 +02:00
gl_osd.c gl_osd: fix license header 2015-06-08 22:13:00 +02:00
gl_osd.h vo_opengl: draw subtitles directly onto the video 2015-03-26 00:04:03 +01:00
gl_rpi.c RPI support 2015-03-29 16:09:56 +02:00
gl_utils.c vo_opengl: fix a small memory leak when loading user shaders 2015-06-09 22:42:03 +02:00
gl_utils.h vo_opengl: add support for custom shaders 2015-05-27 11:09:41 +02:00
gl_video.c vo_opengl: slightly more informative message when disabling scalers 2015-07-27 23:18:19 +02:00
gl_video.h vo_opengl: add temporal-dither-period option 2015-07-20 19:32:58 +02:00
gl_w32.c win32: revert wchar_t changes 2015-08-01 21:09:11 +02:00
gl_wayland.c vo_opengl: hardcode rquested GL version in backends 2015-05-14 13:07:00 +02:00
gl_x11.c vo_opengl: X11: don't leak when GL init fails 2015-07-02 00:30:13 +02:00
gl_x11egl.c vo_opengl: X11 EGL: more detailed error reporting 2015-07-02 00:28:25 +02:00
vo_caca.c Update license headers 2015-04-13 12:10:01 +02:00
vo_direct3d.c vo_direct3d: create multithreaded IDirect3DDevice9 2015-07-30 21:26:42 +02:00
vo_drm.c vo_drm: make VT switching non mandatory 2015-06-28 17:11:51 +02:00
vo_image.c path: make mp_path_join accept normal C strings 2015-05-09 15:26:47 +02:00
vo_lavc.c Update license headers 2015-04-13 12:10:01 +02:00
vo_null.c vo_null: add framerate emulation 2015-05-24 23:27:18 +02:00
vo_opengl_cb.c vo_opengl: refactor queue configuration 2015-07-16 22:43:40 +02:00
vo_opengl.c vo_opengl: refactor queue configuration 2015-07-16 22:43:40 +02:00
vo_rpi.c vo_rpi: determine and return display refresh rate 2015-07-27 21:09:24 +02:00
vo_sdl.c vo_sdl: fix glaring memory leak 2015-06-25 09:55:24 +02:00
vo_vaapi.c vo_vaapi: drop unused field 2015-07-15 13:27:38 +02:00
vo_vdpau.c vo_vdpau: fix frame scheduling if display FPS is unknown 2015-08-04 19:23:07 +02:00
vo_wayland.c Various spelling fixes 2015-06-18 19:36:58 +02:00
vo_xv.c x11: move GCs and background clearing to vo_xv 2015-07-01 23:55:10 +02:00
vo.c player: add display sync mode 2015-08-10 18:48:45 +02:00
vo.h player: add display sync mode 2015-08-10 18:48:45 +02:00
w32_common.c win32: revert wchar_t changes 2015-08-01 21:09:11 +02:00
w32_common.h Update license headers 2015-04-13 12:10:01 +02:00
wayland_common.c vo_wayland: define opaque region 2015-03-23 21:53:32 +01:00
wayland_common.h vo_wayland: share frame callbacks. 2015-03-23 21:53:32 +01:00
win_state.c player: add --window-scale option 2015-04-24 23:27:12 +02:00
win_state.h
x11_common.c x11: move GCs and background clearing to vo_xv 2015-07-01 23:55:10 +02:00
x11_common.h x11: move GCs and background clearing to vo_xv 2015-07-01 23:55:10 +02:00
x11_icon.bin