{"id":19703563,"url":"https://github.com/monibuca/plugin-snap","last_synced_at":"2025-04-29T14:30:52.631Z","repository":{"id":57663011,"uuid":"479382532","full_name":"Monibuca/plugin-snap","owner":"Monibuca","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-05T10:02:40.000Z","size":23,"stargazers_count":4,"open_issues_count":1,"forks_count":6,"subscribers_count":2,"default_branch":"v4","last_synced_at":"2025-04-13T08:22:50.027Z","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/Monibuca.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-04-08T12:31:11.000Z","updated_at":"2023-02-09T23:59:46.000Z","dependencies_parsed_at":"2024-02-05T11:27:02.244Z","dependency_job_id":null,"html_url":"https://github.com/Monibuca/plugin-snap","commit_stats":null,"previous_names":[],"tags_count":10,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-snap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-snap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-snap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Monibuca%2Fplugin-snap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Monibuca","download_url":"https://codeload.github.com/Monibuca/plugin-snap/tar.gz/refs/heads/v4","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251518833,"owners_count":21602218,"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-11T21:18:14.831Z","updated_at":"2025-04-29T14:30:48.132Z","avatar_url":"https://github.com/Monibuca.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 截图插件\n\n可通过http请求获取到指定流的I帧截图（jpg格式）。\n\n## 插件地址\n\nhttps://github.com/Monibuca/plugin-snap\n\n## 插件引入\n```go\nimport (\n    _ \"m7s.live/plugin/snap/v4\"\n)\n```\n## 默认配置\n\n```yaml\nsnap:\n    ffmpeg: \"ffmpeg\"\n```\n如果ffmpeg无法全局访问，则可修改ffmpeg路径为本地的绝对路径\n## API\n\n### GET `/snap/[streamPath]`\n\n获取一帧截图，返回最新的**I帧**的jpg图片。例如有流 `live/test`，可以通过`/snap/live/test` 获取到该流的最新截图\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonibuca%2Fplugin-snap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmonibuca%2Fplugin-snap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmonibuca%2Fplugin-snap/lists"}