A library for working with video timecodes, supporting SMPTE
standards and drop frames.
elm install nomalab/elm-timecode
import Timecode
formatted =
Result.map Timecode.fullFormat (Timecode.fromFrameNumber 17982 Timecode.FPS_29_97 True))
parsed =
Timecode.fromString "00:10:00:[email protected]"
parsedWithFPS =
Timecode.withFramerateFromString Timecode.FPS_29_97 "00:10:00;00"
operations =
parsed
|> Result.map (Timecode.add (Timecode.minutes 10))
parsedWithFPS =
Timecode.withFramerateFromString Timecode.FPS_29_97 "00:10:00;00"