{"id":18088607,"url":"https://github.com/sxyazi/free-hls","last_synced_at":"2025-04-06T02:14:36.678Z","repository":{"id":38288625,"uuid":"242062772","full_name":"sxyazi/free-hls","owner":"sxyazi","description":"Upload video clips to a free image hosting service","archived":false,"fork":false,"pushed_at":"2022-03-31T14:39:56.000Z","size":344,"stargazers_count":604,"open_issues_count":0,"forks_count":162,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-01T17:13:11.231Z","etag":null,"topics":["free-hls","hls"],"latest_commit_sha":null,"homepage":"https://github.com/sxyazi/free-hls/wiki","language":"HTML","has_issues":false,"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/sxyazi.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}},"created_at":"2020-02-21T05:35:46.000Z","updated_at":"2025-03-19T06:16:32.000Z","dependencies_parsed_at":"2022-08-18T17:12:34.777Z","dependency_job_id":null,"html_url":"https://github.com/sxyazi/free-hls","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/sxyazi%2Ffree-hls","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxyazi%2Ffree-hls/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxyazi%2Ffree-hls/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sxyazi%2Ffree-hls/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sxyazi","download_url":"https://codeload.github.com/sxyazi/free-hls/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247423521,"owners_count":20936626,"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":["free-hls","hls"],"created_at":"2024-10-31T17:13:52.876Z","updated_at":"2025-04-06T02:14:36.659Z","avatar_url":"https://github.com/sxyazi.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Free-HLS\n\n这是一个免费的 HLS 视频解决方案，即所谓的视频床。本项目提供一整套集成化解决方案，囊括了各环节所需的切片、转码、上传、即时分享等套件。让您可以以更方便、更低廉的方式分享您的视频到任意地方。\n\n本项目仅供学习交流使用，在使用过程中对您或他人造成的任何损失我们概不负责。\n\n## 服务端\n\n使用 Docker 一键部署（[其它方式](/docs/server-deployment.md)）：\n\n```bash\ndocker run --name free-hls -d -p 33950:3395 -v free-hls-data:/var/app sxyazi/free-hls\n```\n\n执行上面指令后，访问 `http://服务器地址:33950` 若看到 Free-HLS 界面，表示部署成功\n\n## 客户端\n\n客户端，即 `up.py` 入口，提供对视频资源的切片、转码、上传的支持。可以在任意主机使用，只要您安装了必要的依赖和作出了正确的配置。\n\n### 配置\n\n安装最新的 Python3，以及必要包：\n\n```bash\napt install -y ffmpeg python3 python3-pip\npip3 install requests python-dotenv\n```\n\n复制客户端配置文件 `.env.example` 为 `.env`，将 `APIURL` 改为您的服务器域名或 IP 地址，最后修改 `UPLOAD_DRIVE` 为您的 [上传驱动器](https://github.com/sxyazi/free-hls/wiki/%E4%B8%8A%E4%BC%A0%E9%A9%B1%E5%8A%A8%E5%99%A8)，其值为 `uploader` 目录中的文件名。\n\n### 开始使用\n\n准备好目标视频文件，输入如下指令开始切片、上传：\n\n```bash\npython3 up.py test.mp4            #默认标题\npython3 up.py test.mp4 测试标题    #自定义标题\npython3 up.py test.mp4 测试标题 5  #自定义分段大小\n\npython3 ls.py    #列出已上传视频\npython3 ls.py 3  #列出已上传视频（第3页，50每页）\n```\n\n## 相似服务\n\n- [https://github.com/sxzz/free-hls.js](https://github.com/sxzz/free-hls.js)\n- [https://github.com/sxzz/free-hls-live](https://github.com/sxzz/free-hls-live)\n- [https://github.com/MoeClub/Note/tree/master/ffmpeg](https://github.com/MoeClub/Note/tree/master/ffmpeg)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsxyazi%2Ffree-hls","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsxyazi%2Ffree-hls","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsxyazi%2Ffree-hls/lists"}