{"id":19457841,"url":"https://github.com/octaviospain/timecodestring","last_synced_at":"2025-02-25T11:41:17.854Z","repository":{"id":96883565,"uuid":"60080424","full_name":"octaviospain/TimecodeString","owner":"octaviospain","description":"Library that converts between frame counts and a timecode string representation. It also provides functions to perform addition and subtraction operations.","archived":false,"fork":false,"pushed_at":"2017-01-10T11:22:33.000Z","size":76,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T01:48:42.336Z","etag":null,"topics":["frame-count","timecode"],"latest_commit_sha":null,"homepage":"","language":"Java","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/octaviospain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-05-31T10:31:38.000Z","updated_at":"2018-08-10T18:45:08.000Z","dependencies_parsed_at":"2023-05-03T11:00:58.222Z","dependency_job_id":null,"html_url":"https://github.com/octaviospain/TimecodeString","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octaviospain%2FTimecodeString","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octaviospain%2FTimecodeString/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octaviospain%2FTimecodeString/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/octaviospain%2FTimecodeString/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/octaviospain","download_url":"https://codeload.github.com/octaviospain/TimecodeString/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240662355,"owners_count":19837366,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["frame-count","timecode"],"created_at":"2024-11-10T17:24:05.657Z","updated_at":"2025-02-25T11:41:17.757Z","avatar_url":"https://github.com/octaviospain.png","language":"Java","readme":"# TimecodeString\n[![Build Status](https://travis-ci.org/octaviospain/TimecodeString.svg?branch=master)](https://travis-ci.org/octaviospain/TimecodeString)\n[![codecov](https://codecov.io/gh/octaviospain/TimecodeString/branch/master/graph/badge.svg)](https://codecov.io/gh/octaviospain/TimecodeString)\n[![license](https://img.shields.io/badge/license-apache%202-brightgreen.svg)](https://github.com/octaviospain/TimecodeString/blob/master/LICENSE.txt)\n\nLibrary that converts between frame counts and a [timecode](https://en.wikipedia.org/wiki/SMPTE_timecode) string representation.\nThe library supports multiple frame rates including such as 24fps, 25fps, 30fps and DF30 (29.97fps). It also provides functions to\nperform addition and subtraction operation between timecodes.\n\n## Usage\nYou can use the TimecodeString library by two ways:\n\n1. Instantiating the `TimecodeString.java` class in your java project\n\n```java\nString frameRate = \"25fps\";\nString value = \"01:20:59:24\"\nTimecodeString timecode = TimecodeString.of(frameRate, value);\nString frameCount = timecode.getFrameCountString();             // = 121499\nString fullTimecodeString = timecode.getFullTimecodeString();   // = 01:20:59:24\n\nString frameRate = \"25fps\";\nString value = \"121499\"\nTimecodeString timecode = TimecodeString.of(frameRate, value);\nString fullTimecodeString = timecode.getFullTimecodeString();   // = \"01:20:59:24\"\nString frameCount = timecode.getFrameCountString();             // = 121499\n```\n\n2. Using it as a command line program with the packaged `.jar`\npassing arguments to it (thanks to [docopt](https://github.com/docopt/docopt.java)) with the following usage:\n\n```\nUsage:\n    java -jar TimecodeString.jar \u003cframe_rate\u003e \u003cvalue\u003e\n    java -jar TimecodeString.jar \u003cinput_file\u003e [-o \u003coutput_file\u003e]\n\nOptions:\n   -o = \u003coutput_file\u003e specify output file [default: output.txt]\n```\n\nExample with frame rate argument:\n```\njava -jar TimecodeString.jar 25fps 252\n```\nwould print\n```\n00:00:00:05\n```\n\nExample With an input file formatted with the following format:\n\n```\n25fps 00:00:00:05\n25fps 252\n30DF 00:00:00;09\n30DF 571\n...\n```\n\nExample\n```\njava -jar TimecodeString.jar input.txt\n```\nwould print\n```\nTimecode string conversion successfully dumped to /Users/octavio/Desktop/output.txt\n```\nand the output.txt file:\n```\n5\n00:00:10:02\n9\n00:00:19;01\n30\n00:00:01:00\n```\n\n## To do\n\n* Implement other Timecodes","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctaviospain%2Ftimecodestring","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foctaviospain%2Ftimecodestring","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foctaviospain%2Ftimecodestring/lists"}