Vtc.Framerate.new
new
, go back to Vtc.Framerate module for more information.
Specs
new(Vtc.Utils.Rational.t() | float() | String.t(), ntsc(), boolean()) :: parse_result()
Creates a new Framerate with a playback speed or timebase.
Arguments
rate: Either the playback rate or timebase. For NTSC framerates, the value will be rounded to the nearest correct value.
ntsc: Atom representing the which (or whether an) NTSC standard is being used.
coerce_seconds_per_frame?: If
true
, then values such as1/24
are assumed to be in seconds-per-frame format and automatically converted to24/1
. Useful when you want to convert strings from multiple sources when some are seconds-per-frame and others are frames-per-second. NOTE: if you expect to be dealing with record-rate values for timelapse use at your own risk!
NOTE: Floats cannot be passed if the rate is not NTSC and the value is not a while number, as there is no way to know the precise time do to floating-point errors.