{"id":37161763,"url":"https://github.com/zd4y/videos-duration","last_synced_at":"2026-01-14T19:15:08.640Z","repository":{"id":180192879,"uuid":"535941799","full_name":"zd4y/videos-duration","owner":"zd4y","description":"Command for getting the total duration of one or more videos","archived":false,"fork":false,"pushed_at":"2022-09-13T03:24:57.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-06-21T08:05:28.761Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zd4y.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2022-09-13T03:21:57.000Z","updated_at":"2022-09-13T03:22:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"63858723-b5c8-4160-896d-8e8aa80daf84","html_url":"https://github.com/zd4y/videos-duration","commit_stats":null,"previous_names":["zd4y/videos-duration"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zd4y/videos-duration","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zd4y%2Fvideos-duration","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zd4y%2Fvideos-duration/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zd4y%2Fvideos-duration/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zd4y%2Fvideos-duration/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zd4y","download_url":"https://codeload.github.com/zd4y/videos-duration/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zd4y%2Fvideos-duration/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28431978,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T18:57:19.464Z","status":"ssl_error","status_checked_at":"2026-01-14T18:52:48.501Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6: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":[],"created_at":"2026-01-14T19:15:07.793Z","updated_at":"2026-01-14T19:15:08.632Z","avatar_url":"https://github.com/zd4y.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# videos-duration\n\nGet the total duration of one or more videos\n\n## Installation\n\nClone this repository and enter:\n\n```\ngo install .\n```\n\n##  Usage\n\nThe path of the videos is received from stdin, so for example you can get the total duration of all\nthe videos in the current directory like this:\n\n```\nls | videos-duration\n```\n\nOr you could specify the paths with echo:\n\n```\necho -e \"video1.mp4\\nvideo2.mp4\" | videos-duration\n```\n\nOr simply running `videos-duration` and manually typing the paths and then using Ctrl+D\n\nOr any other way of writing to stdin you like.\n\n## Usage as a lf command\n\nAdd this to your `lfrc`:\n\n```\ncmd duration ${{\n    total=\"$(printf '%s\\n' $fx | videos-duration)\"\n    lf -remote \"send $id echo '$total'\"\n}}\n```\n\nAnd now you can select the videos and use `:duration`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzd4y%2Fvideos-duration","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzd4y%2Fvideos-duration","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzd4y%2Fvideos-duration/lists"}