À propos
Un serveur qui met un répertoire à disposition pour diffuser des vidéos en streaming via une interface web.
Design et médiasProgression mesurée des étoiles
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- Historique en cours
Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.
README.md
OriginalGolang HLS Streamer
Simple server that exposes a directory for video streaming via HTTP Live Streaming (HLS). Uses ffmpeg for transcoding.
This project is cobbled together from all kinds of code I had lying around so it's pretty crappy all around. It also has some serious shortcomings.
Running it
Important: You need the ffmpeg and ffprobe binaries in your PATH. The server will not start without them. You can find builds most operating systems at https://ffmpeg.org/download.html.
1. Download the binary for your operating system
You can find the latest release on the releases page https://github.com/shimberger/gohls/releases or just download a current snapshot:
- Windows (64 bit)
- Linux (64 bit)
- Linux (32 bit)
- Linux (Arm 64 bit)
- macOS (64 bit)
- macOS (Arm (M1) 64 bit)
2. Create a configuration file
The configuration is stored in JSON format. Just call the file gohls-config.json or whatever you like. The format is as follows:
{
"folders": [
{
"path": "~/Videos",
"title": "My Videos"
},
{
"path": "~/Downloads",
"title": "My Downloads"
}
]
}
This will configure which directories on your system will be made available for streaming. See the screenshot for details:

3. Run the server
Execute the command gohls serve -config <path-to-config> e.g. gohls serve -config gohls-config.json to serve the videos specified by the config file. To make the server listen on another port or address just use the serve command with --listen like so (the example uses port 7000 on all interfaces): gohls serve --listen :7000 -config <path-to-config>
4. Open a web browser
Visit the URL http://127.0.0.1:8080 to access the web interface.
Contributing
Requirements
- go installed
- npm installed (NPM is part of Node.js)
- bash
Initial setup
- Clone the repository
[email protected]:shimberger/gohls.git - Build frontend
cd ui/ && npm install && npm run build && cd ..
Running server
To then run the development server execute: ./scripts/run.sh serve
License
See LICENSE.txt
Explorer des projets similaires
Chargement…