{"id":41307771,"url":"https://github.com/zgwit/webrtc-streamer","last_synced_at":"2026-01-23T05:09:40.806Z","repository":{"id":231432466,"uuid":"781198086","full_name":"zgwit/webrtc-streamer","owner":"zgwit","description":"Golang实现的WebRTC推流工具，基于大名鼎鼎的pion/webrtc库，支持监控摄像头 和 usb摄像头","archived":false,"fork":false,"pushed_at":"2024-04-13T08:23:24.000Z","size":134,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-19T18:07:17.145Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/zgwit.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":"2024-04-02T23:35:39.000Z","updated_at":"2024-06-13T04:22:12.000Z","dependencies_parsed_at":"2024-04-13T09:35:20.062Z","dependency_job_id":"e294e017-faf0-47a6-bd3c-892d8c9b60fa","html_url":"https://github.com/zgwit/webrtc-streamer","commit_stats":null,"previous_names":["zgwit/webrtc-streamer"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/zgwit/webrtc-streamer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgwit%2Fwebrtc-streamer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgwit%2Fwebrtc-streamer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgwit%2Fwebrtc-streamer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgwit%2Fwebrtc-streamer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zgwit","download_url":"https://codeload.github.com/zgwit/webrtc-streamer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zgwit%2Fwebrtc-streamer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28680623,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T04:33:33.518Z","status":"ssl_error","status_checked_at":"2026-01-23T04:33:30.433Z","response_time":59,"last_error":"SSL_read: 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-23T05:09:40.112Z","updated_at":"2026-01-23T05:09:40.798Z","avatar_url":"https://github.com/zgwit.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# webrtc-streamer\n\nGolang实现的WebRTC推流工具，基于大名鼎鼎的pion/webrtc库，支持监控摄像头 和 usb摄像头。\n\n```\ngo get -u github.com/zgwit/webrtc-streamer\n```\n\n项目灵感来源[mpromonet/webrtc-streamer](https://github.com/mpromonet/webrtc-streamer)，\n此前使用它做了视频直播的引擎，但是由于没有分发功能，多路观看时会重复调用编码器，导致CPU占用过高。\n另外，用C++实现虽然很高效，但是乱七八糟、随心所欲的代码，根本没办法借鉴，十多个第三方依赖，编译一次十分痛苦。\n所以，我使用了更简洁的golang进行重新实现，名字也叫webrtc-streamer，蹭蹭流量。\n\n项目实现了独立的信令服务器，推流端可以放在内网，实现p2p直播更方便！\n\n推流器支持正向握手，反向握手\n\nICE交换使用trickle ice模式，速度更快（平均1.5秒）\n\nps. 项目主要是为实现物联大师（物联网云平台）的视频监控远程接入功能，有兴趣的小伙伴可以去看看，顺便加个星。\n\n[github.com/zgwit/iot-master](https://github.com/zgwit/iot-master)\n\n## 开发进度\n\n- [x] 信令服务器\n- [x] WebRTC推流\n- [x] 视频分发\n- [x] rtsp视频 h264\n- [ ] rtsp视频 h265（已实现，待验证）\n- [ ] rtsp转码 （格式，压缩，抽帧等）\n- [ ] rtsp音频\n- [ ] 摄像头\n- [ ] USB摄像头和采集卡（同上）\n- [ ] 视频文件循环播放\n- [ ] 云台控制\n\n## 开源协议\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgwit%2Fwebrtc-streamer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzgwit%2Fwebrtc-streamer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzgwit%2Fwebrtc-streamer/lists"}