{"id":17396812,"url":"https://github.com/yanndr/capture","last_synced_at":"2026-05-15T18:05:08.356Z","repository":{"id":57507682,"uuid":"99963005","full_name":"yanndr/capture","owner":"yanndr","description":"Grpc service to capture an image from a video","archived":false,"fork":false,"pushed_at":"2023-07-06T19:28:24.000Z","size":9751,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-06T14:40:23.057Z","etag":null,"topics":["capture","go-kit","grpc","prometheus","service","video"],"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/yanndr.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":"2017-08-10T20:40:26.000Z","updated_at":"2023-07-07T05:29:04.000Z","dependencies_parsed_at":"2024-11-16T03:41:11.897Z","dependency_job_id":"2a12cb3c-37ef-4024-9e21-bfaea8c9dce6","html_url":"https://github.com/yanndr/capture","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/yanndr/capture","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanndr%2Fcapture","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanndr%2Fcapture/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanndr%2Fcapture/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanndr%2Fcapture/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanndr","download_url":"https://codeload.github.com/yanndr/capture/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanndr%2Fcapture/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278295845,"owners_count":25963427,"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","status":"online","status_checked_at":"2025-10-04T02:00:05.491Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["capture","go-kit","grpc","prometheus","service","video"],"created_at":"2024-10-16T13:04:38.085Z","updated_at":"2025-10-04T09:48:10.301Z","avatar_url":"https://github.com/yanndr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# capture\nGRPC service to capture an image from a video\n\n## About\nI needed to extract an image from a video for a personal website project. I wanted to keep the code in an external library; so I created a service that exposed the function by GRPC. \nWhy GRPC? Because I wanted to learn about it, [Go-kit](https://github.com/go-kit/kit) and [Promotheus](https://github.com/prometheus/client_golang)\n\n## Installation\nThis service depends on [screengen](github.com/opennota/screengen), which requires having [ffmpeg](https://ffmpeg.org/) installed if you want to run it locally.\n\n```\ngo get github.com/yanndr/capture\n\ndocker build -t capture ./cmd/CaptureService/\n\n```\n\n\n## Usage \n\nRun the Service with Docker\n\nWithout a certificate:\n```\ndocker run --rm -it -p  50051:50051 -p 8080:8081  capture\n```\nWith a certificate\n```\ndocker run --rm -it -p  50051:50051 -p 8080:8081 -v /PATHTOCERT/cert -e CAPTURE_CERTPATH='/cert/cert.pem' -e CAPTURE_KEYPATH='cert/key.pem' capture\n```\n\nThen the Service will expose 2 functions by GRPC:\nrpc ExtractImage (stream VideoCaptureRequest) returns (VideoCaptureReply) {}\nrpc AddOverlay (stream OverlayImageRequest) returns (VideoCaptureReply) {}\n\nmetrics will be available at http://localhost:8080/metrics\n\nThere is a client example in cmd/CaptureClient:\n\n```\ngo run cmd/CaptureClient/main.go pathtoVideofile ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanndr%2Fcapture","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanndr%2Fcapture","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanndr%2Fcapture/lists"}