{"id":27014968,"url":"https://github.com/ihmily/streamcap","last_synced_at":"2025-05-15T18:05:42.743Z","repository":{"id":284484063,"uuid":"947985335","full_name":"ihmily/StreamCap","owner":"ihmily","description":"Multi-Platform Live Stream Automatic Recording Tool | 多平台直播流自动录制工具 · 基于FFmpeg · 支持监控/定时/转码","archived":false,"fork":false,"pushed_at":"2025-04-27T07:45:06.000Z","size":7681,"stargazers_count":1017,"open_issues_count":18,"forks_count":70,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-04-27T08:24:33.519Z","etag":null,"topics":["bilibili","cross-platform","douyin","douyu","ffmpeg","huya","live-streaming","recording","stream-capture","tiktok","twitch","video-downloader","video-recording","youtube"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ihmily.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,"zenodo":null}},"created_at":"2025-03-13T15:03:06.000Z","updated_at":"2025-04-27T07:55:50.000Z","dependencies_parsed_at":"2025-04-27T08:32:17.089Z","dependency_job_id":null,"html_url":"https://github.com/ihmily/StreamCap","commit_stats":null,"previous_names":["ihmily/streamcap"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihmily%2FStreamCap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihmily%2FStreamCap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihmily%2FStreamCap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ihmily%2FStreamCap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ihmily","download_url":"https://codeload.github.com/ihmily/StreamCap/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254394719,"owners_count":22063984,"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":["bilibili","cross-platform","douyin","douyu","ffmpeg","huya","live-streaming","recording","stream-capture","tiktok","twitch","video-downloader","video-recording","youtube"],"created_at":"2025-04-04T14:15:44.764Z","updated_at":"2025-05-15T18:05:42.737Z","avatar_url":"https://github.com/ihmily.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n  \u003cimg src=\"./assets/images/logo.svg\" alt=\"StreamCap\" /\u003e\n\u003c/div\u003e\n\u003cp align=\"center\"\u003e\n  \u003cimg alt=\"Python version\" src=\"https://img.shields.io/badge/python-3.10%2B-blue.svg\"\u003e\n  \u003ca href=\"https://github.com/ihmily/StreamCap\"\u003e\n      \u003cimg alt=\"Supported Platforms\" src=\"https://img.shields.io/badge/Platforms-Win%20%7C%20Mac%20%7C%20Linux-6B5BFF.svg\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://hub.docker.com/r/ihmily/streamcap/tags\"\u003e\n      \u003cimg alt=\"Docker Pulls\" src=\"https://img.shields.io/docker/pulls/ihmily/streamcap?label=Docker%20Pulls\u0026color=2496ED\u0026logo=docker\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/ihmily/StreamCap/releases/latest\"\u003e\n      \u003cimg alt=\"Latest Release\" src=\"https://img.shields.io/github/v/release/ihmily/StreamCap\"\u003e\u003c/a\u003e\n  \u003ca href=\"https://github.com/ihmily/StreamCap/releases/latest\"\u003e\n      \u003cimg alt=\"Downloads\" src=\"https://img.shields.io/github/downloads/ihmily/StreamCap/total\"\u003e\u003c/a\u003e\n\u003c/p\u003e\n\u003cdiv align=\"center\"\u003e\n  简体中文 / \u003ca href=\"./README_EN.md\"\u003eEnglish\u003c/a\u003e\n\u003c/div\u003e\u003cbr\u003e\n\n\n\n\nStreamCap 是一个基于FFmpeg和StreamGet的多平台直播流录制客户端，覆盖 40+ 国内外主流直播平台，支持批量录制、循环监控、定时监控和自动转码等功能。\n\n## ✨功能特性\n\n- **多端支持**：支持Windows/MacOS/Web运行\n- **循环监控**：实时监控直播间状态，开播即录。\n- **定时任务**：根据设定时间范围检查直播间状态。\n- **多种输出格式**：支持 ts、flv、mkv、mov、mp4、mp3、m4a 等格式。\n- **自动转码**：录制完成后自动转码为 mp4 格式。\n- **消息推送**：支持直播状态推送，及时获取开播通知。\n\n## 📸录制界面\n\n![StreamCap Interface](./assets/images/example01.png)\n\n## 🛠️快速开始\n\n### 1.**运行预构建的程序**：\n\n访问 [StreamCap Releases](https://github.com/ihmily/StreamCap/releases/latest) 页面，根据自身系统下载对应的最新版本压缩包。\n\n- **Windows 用户**：下载 `StreamCap.zip` 文件，解压后运行 `StreamCap.exe`。\n- **macOS 用户**：下载 `StreamCap.dmg` 文件，按照提示完成安装，即可在启动台找到应用并运行。\n\n### 2.从源代码运行\n\n确保已安装 **Python 3.10** 或更高版本。💥\n\n1.**克隆项目代码**：\n\n```bash\ngit clone https://github.com/ihmily/StreamCap.git\ncd StreamCap\n```\n\n2.**安装依赖**：\n\n```bash\n# 安装核心依赖\npip install -i https://pypi.org/simple streamget \n\n# 桌面端\npip install -r requirements.txt\n\n# Web端\npip install -r requirements-web.txt\n```\n\n3.**配置运行环境**：\n\n将.env.example示例配置文件复制一份并将文件重命名为.env\n\n```bash\ncp .env.example .env\n```\n\n4.**运行程序**：\n\n在Windows和macOS上默认以桌面程序的方式运行，使用以下命令启动程序：\n\n```bash\npython main.py\n```\n\nLinux请使用web方式运行，修改 `.env` 文件，将 `PLATFORM` 的值改为 `web`，即可以Web方式运行。\n\n或者无需修改配置文件，直接使用以下命令启动\n\n```bash\npython main.py --web\n```\n\n启动成功后，通过 `http://127.0.0.1:6006` 访问。更多配置请参考 [Web运行指南](https://github.com/ihmily/StreamCap/wiki/安装指南#web-端运行)\n\n如果程序提示缺少 FFmpeg，请访问 FFmpeg 官方下载页面[Download FFmpeg](https://ffmpeg.org/download.html)，下载预编译的 FFmpeg 可执行文件，并配置环境变量。\n\n## 🐋容器运行\n\n本机无需Python环境运行，在运行命令之前，请确保您的机器上安装了 [Docker](https://docs.docker.com/get-docker/) 和 [Docker Compose](https://docs.docker.com/compose/install/) \n\n1.**快速启动**\n\n最简单方法是使用`docker compose`运行，进入项目根目录后，只需简单执行以下命令(确保已经存在`.env`文件)：\n\n```bash\ndocker compose up\n```\n\n可选 `-d` 在后台运行。注意容器内时区问题，默认使用的是 `Asia/Shanghai` ，如需修改可以在.env文件配置。\n\n2.**停止容器实例**\n\n```bash\ndocker compose stop\n```\n\n3.**构建镜像(可选)**\n\nDocker仓库中的镜像的代码版本不一定是最新的，如有需要运行本仓库主分支最新代码，可以本地自定义构建\n\n```bash\ndocker build -t streamcap .\n```\n\n## 😺已支持平台\n\n**国内平台（30+）**：\n\n抖音、快手、虎牙、斗鱼、B站、小红书、YY、映客、Acfun、Blued、京东、淘宝...\n\n**海外平台（10+）**：\n\nTikTok、Twitch、PandTV、Soop、Twitcasting、CHZZK、Shopee、Youtube、LiveMe、Flextv、Popkontv、Bigo...\n\n**示例地址：**\n\n如未特殊备注，默认使用直播间地址录制\n\n```\n抖音:\nhttps://live.douyin.com/745964462470\nhttps://v.douyin.com/iQFeBnt/  (需Node.js)\nhttps://live.douyin.com/yall1102  （链接+抖音号）\nhttps://v.douyin.com/CeiU5cbX  （主播主页地址）\n\nTikTok:\nhttps://www.tiktok.com/@pearlgaga88/live\n\n快手:\nhttps://live.kuaishou.com/u/yall1102\n\n虎牙:\nhttps://www.huya.com/52333\n\n斗鱼:\nhttps://www.douyu.com/3637778?dyshid=\nhttps://www.douyu.com/topic/wzDBLS6?rid=4921614\u0026dyshid=\n\nYY:\nhttps://www.yy.com/22490906/22490906\n\nB站:\nhttps://live.bilibili.com/320\n\n小红书:\nhttp://xhslink.com/xpJpfM  (一次性地址，暂不支持循环监控)\n\nbigo直播:\nhttps://www.bigo.tv/cn/716418802\n\nbuled直播:\nhttps://app.blued.cn/live?id=Mp6G2R\n\nSOOP:\nhttps://play.sooplive.co.kr/sw7love\n\n网易cc:\nhttps://cc.163.com/583946984\n\n千度热播:\nhttps://qiandurebo.com/web/video.php?roomnumber=33333\n\nPandaTV:\nhttps://www.pandalive.co.kr/live/play/bara0109\n\n猫耳FM:\nhttps://fm.missevan.com/live/868895007\n\nLook直播:\nhttps://look.163.com/live?id=65108820\u0026position=3\n\nWinkTV:\nhttps://www.winktv.co.kr/live/play/anjer1004\n\nFlexTV:\nhttps://www.flextv.co.kr/channels/593127/live\n\nPopkonTV:\nhttps://www.popkontv.com/live/view?castId=wjfal007\u0026partnerCode=P-00117\nhttps://www.popkontv.com/channel/notices?mcid=wjfal007\u0026mcPartnerCode=P-00117\n\nTwitCasting:\nhttps://twitcasting.tv/c:uonq\n\n百度直播:\nhttps://live.baidu.com/m/media/pclive/pchome/live.html?room_id=9175031377\u0026tab_category\n\n微博直播:\nhttps://weibo.com/l/wblive/p/show/1022:2321325026370190442592\n\n酷狗直播:\nhttps://fanxing2.kugou.com/50428671?refer=2177\u0026sourceFrom=\n\nTwitchTV:\nhttps://www.twitch.tv/gamerbee\n\nLiveMe:\nhttps://www.liveme.com/zh/v/17141543493018047815/index.html\n\n花椒直播:\nhttps://www.huajiao.com/l/345096174  (一次性地址，暂不支持循环监控)\n\nShowRoom:\nhttps://www.showroom-live.com/room/profile?room_id=480206  (主播主页地址)\n\nAcfun:\nhttps://live.acfun.cn/live/179922\n\n映客直播:\nhttps://www.inke.cn/liveroom/index.html?uid=22954469\u0026id=1720860391070904\n\n音播直播:\nhttps://live.ybw1666.com/800002949\n\n知乎直播:\nhttps://www.zhihu.com/people/ac3a467005c5d20381a82230101308e9  (主播主页地址)\n\nCHZZK:\nhttps://chzzk.naver.com/live/458f6ec20b034f49e0fc6d03921646d2\n\n嗨秀直播:\nhttps://www.haixiutv.com/6095106\n\nVV星球直播:\nhttps://h5webcdn-pro.vvxqiu.com//activity/videoShare/videoShare.html?h5Server=https://h5p.vvxqiu.com\u0026roomId=LP115924473\u0026platformId=vvstar\n\n17Live:\nhttps://17.live/en/live/6302408\n\n浪Live:\nhttps://www.lang.live/en-US/room/3349463\n\n畅聊直播:\nhttps://live.tlclw.com/106188\n\n飘飘直播:\nhttps://m.pp.weimipopo.com/live/preview.html?uid=91648673\u0026anchorUid=91625862\u0026app=plpl\n\n六间房直播:\nhttps://v.6.cn/634435\n\n乐嗨直播:\nhttps://www.lehaitv.com/8059096\n\n花猫直播:\nhttps://h.catshow168.com/live/preview.html?uid=19066357\u0026anchorUid=18895331\n\nShopee:\nhttps://sg.shp.ee/GmpXeuf?uid=1006401066\u0026session=802458\n\nYoutube(需配置cookie):\nhttps://www.youtube.com/watch?v=cS6zS5hi1w0\n\n淘宝(需配置cookie):\nhttps://m.tb.cn/h.TWp0HTd\n\n京东:\nhttps://3.cn/28MLBy-E\n\nFaceit:\nhttps://www.faceit.com/zh/players/Compl1/stream\n```\n\n## 📖文档\n\n如需完整文档和高级用法，请访问官方文档 [Wiki](https://github.com/ihmily/StreamCap/wiki/%E4%B8%BB%E9%A1%B5)\n\n## ❤️贡献者\n\n\u003ca href=\"https://github.com/ihmily/StreamCap/graphs/contributors\"\u003e\n  \u003cimg src=\"https://contrib.rocks/image?repo=ihmily/StreamCap\" /\u003e\n\u003c/a\u003e\n\n## 📜许可证\n\nStreamCap在Apache License 2.0下发布。有关详情，请参阅[LICENSE](./LICENSE)文件。\n\n## 🙏特别感谢\n\n特别感谢以下开源项目和技术的支持：\n\n- [flet](https://github.com/flet-dev/flet)\n- [FFmpeg](https://ffmpeg.org)\n- [streamget](https://github.com/ihmily/streamget)\n\n如果您有任何问题或建议，请随时通过GitHub Issues与我们联系。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fihmily%2Fstreamcap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fihmily%2Fstreamcap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fihmily%2Fstreamcap/lists"}