From 6b0b8368a42a15f1ac30b6a688aade0e805b532f Mon Sep 17 00:00:00 2001 From: wm4 Date: Mon, 28 Apr 2014 22:22:55 +0200 Subject: vf_vapoursynth: use frame durations instead of _AbsoluteTime Set _DurationNum/_DurationDen on each VS frame, instead of _AbsoluteTime. The duration is the difference between the timestamp of the frame and the next frame, and when receiving filtered VS frames, we convert them back to an absolute PTS by summing them. We pass the timestamps with microsecond resolution. mpv uses double for timestamps internally, so we don't know the "real" timebase or FPS. VS on the other hand uses fractions for frame durations. We can't pass through the numbers exactly, but microseconds ought to be enough to be even safe from accumulating rounding errors. --- DOCS/man/en/vf.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'DOCS/man/en') diff --git a/DOCS/man/en/vf.rst b/DOCS/man/en/vf.rst index f337a455b7..84994a9f6a 100644 --- a/DOCS/man/en/vf.rst +++ b/DOCS/man/en/vf.rst @@ -861,8 +861,8 @@ Available filters are: and it is expected that the script reads video from it. (Otherwise, mpv will decode no video, and the video packet queue will overflow, eventually leading to audio being stopped.) The script is also - expected to pass through timestamps using the ``AbsoluteTime`` frame - property. + expected to pass through timestamps using the ``_DurationNum`` and + ``_DurationDen`` frame properties. .. admonition:: Example: -- cgit v1.2.3