Vtc.Timecode.rebase

You're seeing just the function rebase, go back to Vtc.Timecode module for more information.

Specs

rebase(t(), Vtc.Framerate.t()) :: parse_result()

Rebases the timecode to a new framerate.

The real-world seconds are recalculated using the same frame count as if they were being played back at new_rate instead of timecode.rate.

Examples

iex> timecode = Timecode.with_frames!("01:00:00:00", Rates.f23_98())
iex> {:ok, rebased} = Timecode.rebase(timecode, Rates.f47_95())
iex> Timecode.to_string(rebased)
"<00:30:00:00 @ <47.95 NTSC NDF>>"