1
0
mirror of https://github.com/mpv-player/mpv synced 2025-01-20 14:20:55 +00:00
mpv/player
wm4 3c3361217c player: offset demuxer on start/seek properly with audio/sub delay
Assume you use a large value like --audio-delay=20. Then until now the
player would just have seeked normally to a "too late" position, and
played silence for about 20 seconds until audio in the correct time
range is coming again.

Change this by offsetting seeks by the right amount. This works for both
external and muxed files. If a seek isn't precise, then it works only
for external files.

This might cause issues with very large delay options. Hr-seek skipping
could take a lot of time (especially because it affects video too), the
demuxer queue could overflow, and other weird corner cases could appear.
But we just try this on best-effort basis, and if the user uses extreme
values we don't guarantee good behavior.
2016-08-04 11:26:57 +02:00
..
lua ytdl: Error out with http_dash_segments 2016-07-30 19:02:39 +02:00
audio.c audio: refactor mixer code and delete mixer.c 2016-07-17 19:21:28 +02:00
client.c build: silence -Wunused-result 2016-06-07 14:12:33 +02:00
client.h global: add client API pointer to library handle 2016-01-15 22:54:08 +01:00
command.c audio: refactor mixer code and delete mixer.c 2016-07-17 19:21:28 +02:00
command.h player: rewrite deinterlace filter auto-insertion 2016-07-05 21:10:26 +02:00
configfiles.c audio: drop --softvol=no and --softvol=auto 2016-07-09 18:31:18 +02:00
core.h player: offset demuxer on start/seek properly with audio/sub delay 2016-08-04 11:26:57 +02:00
external_files.c ta: remove old and redundant macro 2016-05-17 10:53:14 +02:00
external_files.h player: rename and move find_subfiles.c 2015-09-20 18:05:06 +02:00
lavfi.c lavfi: shut up false positive compiler warnings 2016-04-26 19:38:51 +02:00
lavfi.h player: add complex filter graph support 2016-02-05 23:19:56 +01:00
loadfile.c player: offset demuxer on start/seek properly with audio/sub delay 2016-08-04 11:26:57 +02:00
lua.c osd: cleanup: make OSDTYPE_ constants private to OSD code 2016-03-08 22:01:57 +01:00
main.c audio: refactor mixer code and delete mixer.c 2016-07-17 19:21:28 +02:00
misc.c player: offset demuxer on start/seek properly with audio/sub delay 2016-08-04 11:26:57 +02:00
osd.c player: do not cut off terminal status line if it contains newlines 2016-07-15 18:58:36 +02:00
playloop.c player: offset demuxer on start/seek properly with audio/sub delay 2016-08-04 11:26:57 +02:00
screenshot.c video: refactor how VO exports hwdec device handles 2016-05-09 20:03:22 +02:00
screenshot.h Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
scripting.c Relicense some non-MPlayer source files to LGPL 2.1 or later 2016-01-19 18:36:06 +01:00
sub.c osd: cleanup: make OSDTYPE_ constants private to OSD code 2016-03-08 22:01:57 +01:00
video.c player: disable DS with spdif transcoding too 2016-07-24 19:19:24 +02:00