Description Usage Arguments Details Functions Examples
NOTE: see examples for correct usage of times_to_frames
.
1 2 3 4 5 6 7 | frames_to_times(frames, frame_rate)
times_to_frames(seconds, frame_rate)
f2t(frames, frame_rate)
t2f(seconds, frame_rate)
|
frames |
A numerc vector of frame numbers to convert. |
frame_rate |
The frame rate of the tracking data in frames per second
(e.g. |
seconds |
A character vector of times to convert (see examples). |
t2f
and f2t
provide convinient short-hands.
frames_to_times
: Convert frames to human-readable times.
times_to_frames
: Convert human-readable times to frames.
f2t
: Convert human-readable times to frames.
t2f
: Convert human-readable times to frames.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | # Using frame rate of 1 for clarity of usable formats
frames_to_times(1, 1)
frames_to_times(120, 1)
frames_to_times(3661, 1)
times_to_frames('5S', 1)
times_to_frames('2M 0S', 1)
times_to_frames('1H 1M 1S', 1)
times_to_frames('1H1M1S', 1)
# Note that the letters are not functional, just spaces work too:
times_to_frames('1 1 1', 1)
# Which means you can leave out larger denominations, but not smaller ones
times_to_frames('10S', 1) == times_to_frames('0M 10S', 1)
times_to_frames('2M', 1) == times_to_frames('2M 0S', 1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.