{"id":19725426,"url":"https://github.com/easychen/windrecorder","last_synced_at":"2025-04-29T23:30:44.074Z","repository":{"id":145559652,"uuid":"387687318","full_name":"easychen/windrecorder","owner":"easychen","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-28T02:05:15.000Z","size":1706,"stargazers_count":104,"open_issues_count":1,"forks_count":20,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-05T20:11:14.098Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","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/easychen.png","metadata":{"files":{"readme":"README.cn.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":"2021-07-20T05:54:33.000Z","updated_at":"2025-03-31T13:23:52.000Z","dependencies_parsed_at":"2023-04-04T22:34:58.517Z","dependency_job_id":null,"html_url":"https://github.com/easychen/windrecorder","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/easychen%2Fwindrecorder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Fwindrecorder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Fwindrecorder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/easychen%2Fwindrecorder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/easychen","download_url":"https://codeload.github.com/easychen/windrecorder/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251599732,"owners_count":21615574,"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-11T23:29:49.219Z","updated_at":"2025-04-29T23:30:44.060Z","avatar_url":"https://github.com/easychen.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Wind Recorder\n\n## Wind Recorder 短版介绍\n\nWind Recorder 是一个用来录制「[自播放网页](https://github.com/easychen/autoplay-web-specification)」的 docker 镜像。你可以通过快速测试先体验一下。\n\n首先搭建一个「自播放网页」：\n\n1. cd demo \u0026\u0026 yarn install \u0026\u0026 yarn start\n\n运行 docker 命令：\n\n1. 打开 demo.sh \n2. 修改其中的 `dd.ftqq.com` 为电脑的局域网IP \n3. 运行命令 bash demo.sh\n\n运行完成后就可以在根目录下查看录制好的视频了。点这里可以直接查看[录制好的视频](demo.mp4)。\n\n\n\n## 什么是 Wind Recorder\n\n![](logo.svg) \n\n\n[WindMark.pro] 是一个用 [Tailwind CSS](https://tailwindcss.com/) 框架和 [Markdown](https://en.wikipedia.org/wiki/Markdown) 进行视频制作的免费在线工具。\n\n其原理是用 Web 技术制作自动播放的网页，在通过浏览器进行访问时，将其录制为视频。\n\n而 [Wind Recorder] 正是 [WindMark.pro] 用于录制的开源项目，它不但可以用来录制 [WindMark.pro] 生成的网页，也可以录制任何可以在浏览器中正常播放的网页。\n\n通过 [Wind Recorder] 只需要运行一行 Docker 命令即可完成视频录制。\n\n```docker\ndocker run --rm -p 5900:5900 -p 80:80 -v \"$(pwd):/data\" easychen/windrec:latest  https://video.windmark.pro\n```\n\n将以上命令中的 `https://video.windmark.pro` 替换为要录制的自动播放网页URL即可。\n\n录制效果可以查看这个视频 → [WindMark.pro使用教学](https://www.bilibili.com/video/BV1sb4y167Mh/)\n\n![](/video.cn.png)\n\n\n## Wind Recorder 的工作原理\n\n![](pic1.svg)\n\n[Wind Recorder] 在容器中安装了浏览器，并启动了一个 Web 服务。当访问 `/start` 时，开始通过 ffmpeg 进行录制；当访问 `/stop` 时，停止录制。\n\n除了在容器外通过 `http` 主动访问容器的 `/start` 和 `/stop`进行控制， 在容器内被录制的网页也可以通过 `JavaScript` 调用 `http://localhost/start` 和 `http://localhost/stop` 对录制进行控制。\n\n## VNC \n\n虽然有了简单的控制接口，但在录制时，容器对我们依然是黑箱。因此 [Wind Recorder] 内置了 VNC 服务。当容器启动后，可以通过 VNC Viewer 等工具连接 5900 端口查看内部浏览器的画面，这在进行兼容性调试时非常有用。\n\n## 中文支持\n\n[Wind Recorder] 在容器环境中安装了中文字体，可以在要录制的网页中使用。\n\n\n  字体中文名     |   字体英文名   |   Ubuntu  包名\n| --- | --- |--- |\n文泉驿微米黑   |         WenQuanYi Micro Hei         |   ttf-wqy-microhei\n文泉驿正黑   |         WenQuanYi Zen Hei         |      ttf-wqy-zenhei         \n文泉驿点阵宋体   |         WenQuanYi Bitmap Song |    xfonts-wqy\n\n## FAQ\n\n### 为什么录制的视频会卡顿？\n\n请保持运行 docker 命令的机器网络良好，容器拥有至少 4G 的内存，页面越复杂，所需内存越多。\n\n### 为什么音频视频不同步？\n\n当内存不够时会出现这类问题，如果遇到请调大容器的内存。\n\n另外因为录制时以追加方式写入mp4，如果遇到轻微的不同步，可以通过 [HandBrake](https://handbrake.fr/) 等工具对视频再次进行压缩和优化校正。\n\n## Thanks\n\n本项目录制部分的代码大量参考了[highattendance-aws-meeting-recording](https://github.com/banzai-io/highattendance-aws-meeting-recording)，并采用 Apache2.0 协议发布。\n\n[WindMark.pro]: https://windmark.pro\n[Wind Recorder]: https://github.com/easychen/windrecorder\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychen%2Fwindrecorder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feasychen%2Fwindrecorder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feasychen%2Fwindrecorder/lists"}