A small web service that exports tvheadend services via HLS
- Setup tvheadend
- Map channels either manually or via the automated mapping.
- Create a user and allow it to stream. Be sure to limit the IP adresses to the machien you run
tvheadend_to_hls
on. - Create a
.env
-File in the directory you downloadedtvheadend_to_hls
to configure it.
tvheadend_user=username
tvheadend_pass=password
tvheadend_ip=ip
- In the directory you have gotten
tvheadend_to_hls
, rundocker-compose build
and thendocker-compose up
to run it.
This is fine. The src subdirectory contains a Python program which acts as a web server and calls ffmpeg to create the files for the stream. It should also serve those files. This is probably not wise, as a dedicated webserver likely is faster.
This is not meant to be scalable. This is a small personal project to provide, for example, TV to a small dormatory or community.
Make sure you understand your bottleneck. If you are dealing with many different channels that are being streamed, make sure the encoder has enough oompf to handle it or lower the encoding complexity.
If your stream the same channel to a lot of people, just install a caching proxy in front of it.
tvheadend_user=user
tvheadend_pass=pass
tvheadend_ip=ip