Forums » Tutorial and setups »
Nginx Cache Proxy
Added by Giorgos Laskaridis almost 8 years ago
Hello guys I'm trying to implement a cache proxy on some fast VPS that will stream 3-4 channels from my home network to 50-100 internet clients (iOS devices). The problem is that I have very limited upload bandwidth (<20Mbit) and I cannot support that many clients from my home connection.
So far I've managed to create an nginx reverse proxy in front of tvheadend that completely handles the stream but every client that connects to the proxy, it generates a new connection to the tvheadend without using the proxy's cache thus when 4 clients watch a 500Kbps transcoded channel, tvheadend sends 2 Mbps when I need it to send it only one time (500Kbps).
I've successfully proxied many m3u8 streams from other sources but the http stream that TVheadend creates does not seem to create many .ts segments of the video but only one that seems never-ending. If it was separated into multiple segments, nginx would successfully cache and distribute each segment.
Replies (1)
RE: Nginx Cache Proxy - Added by saen acro over 7 years ago
You need segmenter
https://github.com/sdrsdr/HLS-Segmenter
there is a feature request
http://tvheadend.org/issues/1938