{"id":18886938,"url":"https://github.com/lostjared/count_time","last_synced_at":"2026-02-23T20:30:20.464Z","repository":{"id":110400740,"uuid":"246840887","full_name":"lostjared/count_time","owner":"lostjared","description":"Recursively count length of video files using RegEx","archived":false,"fork":false,"pushed_at":"2024-04-03T20:03:20.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-12-31T05:17:36.236Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lostjared.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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}},"created_at":"2020-03-12T13:26:00.000Z","updated_at":"2024-04-03T20:01:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"0819b4d9-1c33-44df-9310-4b60bd6e158a","html_url":"https://github.com/lostjared/count_time","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2Fcount_time","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2Fcount_time/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2Fcount_time/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lostjared%2Fcount_time/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lostjared","download_url":"https://codeload.github.com/lostjared/count_time/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239859566,"owners_count":19708861,"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":[],"created_at":"2024-11-08T07:32:18.889Z","updated_at":"2026-02-23T20:30:20.397Z","avatar_url":"https://github.com/lostjared.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n### README.md for Video Directory Analysis Tool\n\n#### Overview\nThis tool recursively scans a specified directory for video files, matches them against a provided regular expression pattern, and calculates the total runtime (in minutes and seconds) of all matched videos. It is useful for quickly assessing the amount of video content within a directory structure that matches certain criteria.\n\n#### Dependencies\n- [OpenCV](https://opencv.org/): Used for video file processing to determine video lengths.\n- C++ Compiler (e.g., g++, clang++): For compiling the program.\n- Make (optional): For simplifying the compilation process.\n\n#### Compilation\nTo compile the program, ensure that OpenCV is installed on your system. Then, use the following command in the terminal:\n\n```sh\nmkdir build \u0026\u0026 cd build\ncmake ..\nmake \nsudo make install\n```\n\n#### Usage\nRun the compiled program from the terminal with two arguments: the path to the directory you want to analyze and the regex pattern to match video files.\n\n```sh\ncount_time /path/to/directory \".*\\.(mp4|avi)$\"\n```\n\nThis example searches for `.mp4` and `.avi` files. Adjust the regex pattern to match the types of video files you're interested in.\n\n#### Output\nThe program prints the length of each matched video file and the total runtime of all matched video files in the specified directory and its subdirectories.\n\n### Example Output:\n```sh\njared@iLostSideDead [~/Movies]$ count_time . AC2\n\n./CloudsGlitch-2020.03.11_23.43.22_MPEG-4-1280x720p23.98.AC2.Output.1.mp4 56.8902 seconds...\n\n./Ocean-2020.03.12_04.44.03_AVC-1920x1080p29.97.AC2.Output.1.mp4 27.9633 seconds...\n\n./Coder-2020.03.11_16.12.40_MPEG-4-1920x1080p59.94.AC2.Output.1.mp4 120.621 seconds...\n\n./VideoAC_1-2020.03.12_01.33.57_MPEG-4-1280x720p30.00.AC2.Output.1.mp4 137.4 seconds...\n\n./SlitScan-2020.03.11_22.26.10_MPEG-4-1920x1080p29.00.AC2.Output.1.mp4 62.2414 seconds...\n\n./Untitled.fcpbundle/3-11-20/Original Media/Coder-2020.03.11_16.12.40_MPEG-4-1920x1080p59.94.AC2.Output.1.mp4 120.621 seconds...\n\n./Untitled.fcpbundle/3-11-20/Original Media/NewLogo-2020.03.09_01.56.23_MPEG-4-1920x1080p30.00.AC2.Output.2.mp4 15.8667 seconds...\n\n./JaredMarch11-2020.03.11_18.52.12_MPEG-4-1920x1080p29.00.AC2.Output.1.mp4 62.2414 seconds...\n\n./JaredWebcam-2020.03.11_22.12.53_MPEG-4-1920x1080p29.00.AC2.Output.1.mp4 62.2414 seconds...\n\n        Runtime: 11 minutes 6 seconds..\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostjared%2Fcount_time","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flostjared%2Fcount_time","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flostjared%2Fcount_time/lists"}