diff options
author | wm4 <wm4@nowhere> | 2014-04-28 22:22:55 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-04-28 22:23:32 +0200 |
commit | 6b0b8368a42a15f1ac30b6a688aade0e805b532f (patch) | |
tree | a4b93c203752d8083d0535cf57f1fbe1f2eb2492 /DOCS | |
parent | 062d5eea3b97c625cc12b20ef84511959f7ded9f (diff) | |
download | mpv-6b0b8368a42a15f1ac30b6a688aade0e805b532f.tar.bz2 mpv-6b0b8368a42a15f1ac30b6a688aade0e805b532f.tar.xz |
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.
Diffstat (limited to 'DOCS')
-rw-r--r-- | DOCS/man/en/vf.rst | 4 |
1 files changed, 2 insertions, 2 deletions
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: |