Skip to content

C# implementation of SMPTE Timecode class

License

Notifications You must be signed in to change notification settings

ailen0ada/Timecode4net

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Timecode4net

Timecode4net is a C# class for operations with SMPTE timecodes.

Build status NuGet version

Features

  • supports 23.98, 24, 25, 29.97, 30, 48, 50, 59.94, 60 fps and msec
  • supports drop-frame and non-drop-frame codes
  • instantiate timecodes from frame count, string time code
  • (WIP)timecode arithmetics: adding frame counts and other timecodes

Usage

var fromFrames = Timecode.FromFrames(frames: 1800, frameRate: FrameRate.fps29_97, isDropFrame: true);
Console.WriteLine(fromFrames.ToString()); // 00:01:00;02

var fromString = Timecode.FromString(input: "01:00:03;35", frameRate: FrameRate.fps59_94, isDropFrame: true);
Console.WriteLine(fromString.TotalFrames); // 215999

Credits

smpte-timecode by Crystal Computer Corp.

About

C# implementation of SMPTE Timecode class

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages