Liking cljdoc? Tell your friends :D

hive-kdenlive.mlt.time

Time arithmetic for MLT in/out/length attributes.

MLT accepts two time vocabularies: frame counts ("150") and clock strings ("HH:MM:SS.mmm"). Conversion between them needs the profile's fps, carried here as a [num den] fraction (a bare number means [n 1]).

Portable: core + string only, integer math where hosts disagree on rounding.

Time arithmetic for MLT in/out/length attributes.

MLT accepts two time vocabularies: frame counts ("150") and clock strings
("HH:MM:SS.mmm"). Conversion between them needs the profile's fps, carried
here as a [num den] fraction (a bare number means [n 1]).

Portable: core + string only, integer math where hosts disagree on rounding.
raw docstring

clock->framesclj/s

(clock->frames s fps)

Clock string to frame count at fps. A bare integer string is already a frame count and passes through.

Clock string to frame count at `fps`. A bare integer string is already a
frame count and passes through.
sourceraw docstring

clock->millisclj/s

(clock->millis s)

Parse "HH:MM:SS.mmm" (hours and millis optional: "MM:SS", "SS.mmm") to milliseconds. Returns nil for malformed input.

Parse "HH:MM:SS.mmm" (hours and millis optional: "MM:SS", "SS.mmm") to
milliseconds. Returns nil for malformed input.
sourceraw docstring

durationclj/s

(duration in out fps)

Frame length of the cut [in out] (inclusive, MLT-style). Ends may be frame counts or clock strings; both must resolve at fps.

Frame length of the cut [in out] (inclusive, MLT-style). Ends may be frame
counts or clock strings; both must resolve at `fps`.
sourceraw docstring

fps-pairclj/s

(fps-pair fps)

Normalize fps to [num den]: [30000 1001] stays, 25 -> [25 1], 29.97 rounds into x/1001 form.

Normalize fps to [num den]: [30000 1001] stays, 25 -> [25 1], 29.97 rounds
into x/1001 form.
sourceraw docstring

frames->clockclj/s

(frames->clock n fps)

Frame count to "HH:MM:SS.mmm" at fps.

Frame count to "HH:MM:SS.mmm" at `fps`.
sourceraw docstring

frames->millisclj/s

(frames->millis n fps)

Milliseconds spanned by n frames at fps.

Milliseconds spanned by `n` frames at `fps`.
sourceraw docstring

millis->clockclj/s

(millis->clock ms)

Format milliseconds as "HH:MM:SS.mmm".

Format milliseconds as "HH:MM:SS.mmm".
sourceraw docstring

millis->framesclj/s

(millis->frames ms fps)

Frames spanned by ms milliseconds at fps.

Frames spanned by `ms` milliseconds at `fps`.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close