项目作者: free5gc

项目描述 :
5G application sample
高级语言: TypeScript
项目地址: git://github.com/free5gc/IPTV.git
创建时间: 2020-03-31T22:09:05Z
项目社区:https://github.com/free5gc/IPTV

开源协议:Apache License 2.0

下载


free5GC IPTV

GitHub release (latest by date)
Go Report Card
License
FOSSA Status
Release Download
Reop Size
PRs Welcome

This is an simple IPTV Server that you can self host on Linux / Windows base on FFmpeg and Go.

This project is maintained by free5GC for validation of IPTV applications in 5G core network.

Installation

Install Dependencies

  • FFmpeg

    1. sudo apt install -y ffmpeg
  • node.js

    1. sudo apt-get install nodejs
  • yarn

    1. sudo apt install -y curl
    2. curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
    3. echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
    4. sudo apt update && sudo apt install yarn
  • npm

    1. sudo apt-get install python-software-properties
    2. sudo add-apt-repository ppa:gias-kay-lee/npm
    3. sudo apt-get update
    4. sudo apt-get install npm
  • golang

    1. wget https://dl.google.com/go/go1.12.9.linux-amd64.tar.gz
    2. sudo tar -C /usr/local -zxvf go1.12.9.linux-amd64.tar.gz
    3. mkdir -p ~/go/{bin,pkg,src}
    4. echo 'export GOPATH=$HOME/go' >> ~/.bashrc
    5. echo 'export GOROOT=/usr/local/go' >> ~/.bashrc
    6. echo 'export PATH=$PATH:$GOPATH/bin:$GOROOT/bin' >> ~/.bashrc
    7. echo 'export GO111MODULE=off' >> ~/.bashrc
    8. source ~/.bashrc

Build Project

  • Install go package

    1. go get -u github.com/gin-contrib/static
    2. go get -u github.com/gin-gonic/gin
    3. go get -u github.com/urfave/cli
    4. go get -u gopkg.in/yaml.v2
  • Build Web Client

    1. cd web-client
    2. yarn install
    3. yarn build
    4. cd ..
    5. vim iptvcfg.conf # Configure iptv details
    6. mkdir hls # Create chache folder, default is ./hls
    7. go run iptv.go

How to watch IPTV

The IPTV channel playlist’s location depends on what you configure in iptvcfg.conf‘s IPTVServer -> ServerAddr

And the playlist’s location will be: IPv4:Port/iptv/index.m3u

  1. Generally
    Using Web to check IPTV channel is an general way to do it. You can use our web to view IPTV channel.

    Open your web browser, goto the ip:port you have configured in iptvcfg.conf‘s ServerAddr.

  2. On PC
    You can use:

  3. On Android

  4. On iOS

Contact Information

You can contact free5gc.org@gmail.com.

License

We are using Apache 2.0 for the project.

FOSSA Status

Release Note

v2020-03-31-01

  • Implement unicast IPTV server
  • Verify IPTV application running on 5G core network