Docker

It is possible to use LiveStreamer with Docker.

Pulling docker image from docker hub

Make you have docker installed
Execute docker pull command:

docker pull impleotv/livestreamer

Configuring LiveStreamer

Map the folder with your video files as a docker volume and pass the desired file name along with other arguments.

docker run --name='liveStreamer' -it --net=host -v ~/Movies/:/app/movies:ro livestreamer -i ./movies/video.ts -o udp://227.1.1.1:30120

You can copy license files to the existing container:

docker cp ~/licenses/LiveStreamer.lic liveStreamer:/app/
docker cp ~/licenses/LiveStreamer.Key.txt liveStreamer:/app/

Or mount them during container creation:

docker run --name='liveStreamer' --rm -it --net=host -v ~/Movies/:/app/movies:ro /
-v ~/licenses/LiveStreamerDocker.lic:/app/LiveStreamerDocker.lic:ro /
-v ~/licenses/livestreamer/LiveStreamerNucDocker.Key.txt:/app/LiveStreamerNucDocker.Key.txt:ro /
livestreamer -i ./movies/video.ts -o udp://227.1.1.1:30120

or like this:

docker run --name='liveStreamer' --rm -it --net=host -v ~/Movies/:/app/movies:ro /
-v ~/licenses/LiveStreamerDocker.lic:/app/LiveStreamerDocker.lic:ro /
livestreamer -i ./movies/video.ts -o udp://227.1.1.1:30120 /
--licenseFile LiveStreamerDocker.lic --licenseKey FEE8BD40-021DE785-34B526AB-DE2ED36D

For complete list of config options please see Options.

Docker-compose

Using docker-compose you can define one or more channels as services:

version: "2"

services:

  livestreamer1:
    image: impleo/livestreamer    
    container_name: livestreamer1
    restart: always   
    volumes:
      - ~/Movies/:/app/movies
      - ~/licenses/LiveStreamer.lic:/app/LiveStreamer.lic:ro
      - ~/licenses/LiveStreamer.Key.txt:/app/LiveStreamer.Key.txt:ro
    command: -i ./movies/video.ts -o udp://227.1.1.1:30120
    network_mode: host