{"id":36548785,"url":"https://github.com/trimmer-io/go-timecode","last_synced_at":"2026-01-12T06:29:37.648Z","repository":{"id":57502885,"uuid":"90486008","full_name":"trimmer-io/go-timecode","owner":"trimmer-io","description":"Go package for SMPTE ST 12-1-2014 timecodes","archived":false,"fork":false,"pushed_at":"2021-11-04T18:10:32.000Z","size":25,"stargazers_count":20,"open_issues_count":2,"forks_count":7,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-08-14T22:08:31.143Z","etag":null,"topics":["drop-frame","go","non-drop-frame","smpte","timecode"],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/trimmer-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-05-06T19:25:02.000Z","updated_at":"2025-06-22T00:03:51.000Z","dependencies_parsed_at":"2022-08-31T08:10:22.555Z","dependency_job_id":null,"html_url":"https://github.com/trimmer-io/go-timecode","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/trimmer-io/go-timecode","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trimmer-io%2Fgo-timecode","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trimmer-io%2Fgo-timecode/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trimmer-io%2Fgo-timecode/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trimmer-io%2Fgo-timecode/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/trimmer-io","download_url":"https://codeload.github.com/trimmer-io/go-timecode/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/trimmer-io%2Fgo-timecode/sbom","scorecard":{"id":898713,"data":{"date":"2025-08-11","repo":{"name":"github.com/trimmer-io/go-timecode","commit":"8aead1d96454505b9cf295ad4c83fd8762f7c77d"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Code-Review","score":0,"reason":"Found 0/13 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-24T14:42:45.895Z","repository_id":57502885,"created_at":"2025-08-24T14:42:45.895Z","updated_at":"2025-08-24T14:42:45.895Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28336316,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-12T06:09:07.588Z","status":"ssl_error","status_checked_at":"2026-01-12T06:05:18.301Z","response_time":98,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["drop-frame","go","non-drop-frame","smpte","timecode"],"created_at":"2026-01-12T06:29:36.616Z","updated_at":"2026-01-12T06:29:37.635Z","avatar_url":"https://github.com/trimmer-io.png","language":"Go","readme":"go-timecode\n===========\n\n[![GoDoc](https://godoc.org/github.com/trimmer-io/go-timecode/timecode?status.svg)](https://godoc.org/github.com/trimmer-io/go-timecode/timecode)\n\n\ngo-timecode is a [Go](http://golang.org/) library for SMPTE ST 12-1-2014 timecodes.\n\nFeatures\n--------\n- correct drop-frame and non-drop-frame support\n- all standard film, video and TV edit rates 23.976, 24, 25, 29.97, 30, 48, 50, 59.94, 60, 96, 100, 120\n- arbitrary user-defined edit rates down to 1ns precision with a timecode runtime of ~9 years\n- conversion between timecode, frame number and realtime\n- timecode and frame calculations\n- timecode \u0026 rate fit into a single 64bit integer for efficient binary storage\n- parses and outputs SMPTE ST 12-1 timecode with DF flag\n- different output methods to include and parse edit rate with timecode strings\n\n\nMany timecode libraries treat timecode values as literal wall-clock time which they are not. Instead, timecodes are mere address labels for edit units in a sequence of video frames or audio samples. With a different edit rate, the same frame in a sequence has a different timecode address.\n\nIt's probably the reason why drop-frame timecodes are often misunderstood. I guess it's better to call them skip-timecodes because that's what's happening. At 29.97fps each edit unit has a duration of 33.3666ms, 30 such edit units last for 1.001s. Hence, a 29.97DF timecode of `00:00:01;00` actually means 1.001s instead of 1s. Now this makes it obvious that the time-part of the timecode runs a bit slower than realtime. To compensate for this speed issue, a drop-frame timecode *skips some address labels* now and then. To be precise, it skips frame labels `??:??:??;00` and `??:??:??;01` every minute but not every 10th minute. That's all.\n\n\nDocumentation\n-------------\n\n- [API Reference](http://godoc.org/github.com/trimmer-io/go-timecode/timecode)\n- [FAQ](https://github.com/trimmer-io/go-timecode/wiki/FAQ)\n\nInstallation\n------------\n\nInstall go-timecode using the \"go get\" command:\n\n    go get github.com/trimmer-io/go-timecode/timecode\n\nThe Go distribution is go-timecode's only dependency.\n\nExamples\n--------\n\n```\nimport \"github.com/trimmer-io/go-timecode/timecode\"\n\ntc := timecode.Parse(\"00:00:59;29\")\ntc.SetRate(timecode.Rate30DF)\ntc.Add(2*time.Minute)\nfmt.Println(\"Frame number at TC\", tc, \"is\", tc.Frame())\n\n```\n\n\nContributing\n------------\n\nSee [CONTRIBUTING.md](https://github.com/trimmer-io/go-timecode/blob/master/.github/CONTRIBUTING.md).\n\n\nLicense\n-------\n\ngo-timecode is available under the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0.html).\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrimmer-io%2Fgo-timecode","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftrimmer-io%2Fgo-timecode","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftrimmer-io%2Fgo-timecode/lists"}