Skip to content

nomalab/elm-timecode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SMPTE Timecode

A library for working with video timecodes, supporting SMPTE standards and drop frames.

Install

elm install nomalab/elm-timecode

Usage

import Timecode

formatted =
    Result.map Timecode.fullFormat (Timecode.fromFrameNumber 17982 Timecode.FPS_29_97 True))

parsed =
    Timecode.fromString "00:10:00:00@29.97"

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"

About

SMTPE timecode elm package

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages