Git Product home page Git Product logo

free-hls's Introduction

Free-HLS

这是一个免费的 HLS 视频解决方案,即所谓的视频床。本项目提供一整套集成化解决方案,囊括了各环节所需的切片、转码、上传、即时分享等套件。让您可以以更方便、更低廉的方式分享您的视频到任意地方。

本项目仅供学习交流使用,在使用过程中对您或他人造成的任何损失我们概不负责。

服务端

使用 Docker 一键部署(其它方式):

docker run --name free-hls -d -p 33950:3395 -v free-hls-data:/var/app sxyazi/free-hls

执行上面指令后,访问 http://服务器地址:33950 若看到 Free-HLS 界面,表示部署成功

客户端

客户端,即 up.py 入口,提供对视频资源的切片、转码、上传的支持。可以在任意主机使用,只要您安装了必要的依赖和作出了正确的配置。

配置

安装最新的 Python3,以及必要包:

apt install -y ffmpeg python3 python3-pip
pip3 install requests python-dotenv

复制客户端配置文件 .env.example.env,将 APIURL 改为您的服务器域名或 IP 地址,最后修改 UPLOAD_DRIVE 为您的 上传驱动器,其值为 uploader 目录中的文件名。

开始使用

准备好目标视频文件,输入如下指令开始切片、上传:

python3 up.py test.mp4            #默认标题
python3 up.py test.mp4 测试标题    #自定义标题
python3 up.py test.mp4 测试标题 5  #自定义分段大小

python3 ls.py    #列出已上传视频
python3 ls.py 3  #列出已上传视频(第3页,50每页)

相似服务

free-hls's People

Contributors

sxyazi avatar masaiki avatar gizmo-ds avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.