Project

General

Profile

TVHeadend inside another TVHeadend

Added by lord slash over 5 years ago

Hello, I have a Raspberrry Pi with TVHeadend in Italy and another PI with tvheadend here in Germany where I live. I would like to add the channels from my italian TVHeadend inside the TVHeadend that I have in Germany, so that my front end shows me the german and the italian channels together. Is this possible? If yes, how?
Thank you in advance!
Dario


Replies (16)

RE: TVHeadend inside another TVHeadend - Added by Fred Fred over 5 years ago

Generate a playlist on the Italian, add iptv auotomatic network using that generated file on the German side?

RE: TVHeadend inside another TVHeadend - Added by lord slash over 5 years ago

I just tried that, i generated a playlist with the following URL:

https://username:password@Italian_IP:9981/playlist/channels.m3u

But when I add it as an automatic network it doesn't find any mux.
I tried to add it as a IPTV Network (non automatic) then I get one mux, but only one Service is identified. The Identified service can be mapped and works perfectly. I think I am missing something in the configuration in order to identify all the other services..

RE: TVHeadend inside another TVHeadend - Added by lord slash over 5 years ago

Sorry, I was not precise enough. When I add the IPTV Automatic Network i see that X number of muxes are added, where X is the number of channels (services) mapped in my italian TVHeadend. The scan on these muxes fails so no service is found in my (German) TVHeadend. What am I doing wrong?

RE: TVHeadend inside another TVHeadend - Added by lord slash over 5 years ago

OK I got it, when i added the URL in the IPTV Automatic Network I was careful to be sure that the username and password were written. When the muxes are (automatically) added, the username and password disappears in the mux so I had to manually add it again in each single mux in order to make it work. Unconfortable but it works! Now I get a service for each mux, and then in my channels I have exactly what I was hoping to see. I hope this will be helpful for somebody else who is stuck on the same issue!

RE: TVHeadend inside another TVHeadend - Added by saen acro over 5 years ago

next time just use

https://username:password@Italian_IP:9981/playlist/auth/channels

and no problems

RE: TVHeadend inside another TVHeadend - Added by lord slash over 5 years ago

hello again, I thought that it worked but after a reboot it doesn't work anymore, and now even if i manually add the username/password it fails to find any service (each mux should find one service, but it fails). I tried the URL that you suggested me (http://username:password@Italian_IP:9981/playlist/auth/channels without https cause I don't have SSL in the italian server) but that doesn't find any muxes.
I attach some screenshots for clarity..

RE: TVHeadend inside another TVHeadend - Added by M. Bergmann over 5 years ago

Just yesterday evening I followed your instructions using https://username:password@Italian_IP:9981/playlist/channels.m3u and it is still working with the actual tvh version. Only change I made was using http instead of https . The proposal to use https://username:password@Italian_IP:9981/playlist/auth/channels didn't work here neither. And I had to change manually the scan status of each mux to "ACTIVE", waited one-two minutes until the mux was found and then repeated changing the scan status of the next mux and so on....

RE: TVHeadend inside another TVHeadend - Added by lord slash almost 5 years ago

Hello, unfortunately I still have troubles to get this working.
I tried the proposed mux: https://username:password@Italian_IP:9981/playlist/auth/channels but it doesn't work (I tried with http as well). So I went back to the good old "IPTV Automatic Network" http://username:password@Italian_IP:9981/playlist/channels.m3u and from that I get a Mux for each channel. Problem is that each Mux doesn't have the username:password form, but directly http://Italian_IP:9981/stream/channelid/1216363814?profile=pass which can't work without the username:password. If I manually add the username:password to each mux, then I actually find a channel and I can map it, but after a few seconds it doesn't work anymore because tvheadend "forgets" the username:password in the mux, so the channel is broken.
What should I do to get this to work?
Thank you very much in advance..

RE: TVHeadend inside another TVHeadend - Added by Joe User almost 5 years ago

I have found that rather than using iptv, satip works best for "remote" connections between two tvheadends do to using UDP instead of TCP to stream channels.

For "remote" recordings, I use middle of the night rsyncs to transfer files and update local tvheadend in method described here: https://tvheadend.org/boards/5/topics/34366

RE: TVHeadend inside another TVHeadend - Added by lord slash almost 5 years ago

Oh ok and how do I add SatIP? I've never done that, but I have already one mux that comes as SatIP because it's a DVB-C signal. Can you please help me or link me a guide on how to add a channel list that I usually get in this format http://username:password@Italian_IP:9981/playlist/channels.m3u ?
Thank you very much!

RE: TVHeadend inside another TVHeadend - Added by saen acro almost 5 years ago

Persistent autentification is needed /password tab/
then url is

http://username:password@Italian_IP:9981/playlist/auth/channels

RE: TVHeadend inside another TVHeadend - Added by lord slash almost 5 years ago

I am sorry but I still don't get it. If I understood right from some tutorials that I read, my italian TVHeadend should work as SatIP server and the german one as SatIP client. Is that correct? If yes then I have just configured my italian TVHeadend as a Server (in the Tab General-SatIP Server I have set the RTSP port to 9983 and on Exported tuners I have selected 1 DVB-T tuner). Now my question is where do I add the SatIP Client on my german TVHeadend? I Can't find any field for that.. Last but not least I don't know where should I set the "persistent authentication" that you mentioned.
Can you point me to some tutorial? Thank you!

RE: TVHeadend inside another TVHeadend - Added by saen acro almost 5 years ago

lord slash wrote:

I am sorry but I still don't get it. If I understood right from some tutorials that I read, my italian TVHeadend should work as SatIP server and the german one as SatIP client. Is that correct? If yes then I have just configured my italian TVHeadend as a Server (in the Tab General-SatIP Server I have set the RTSP port to 9983 and on Exported tuners I have selected 1 DVB-T tuner). Now my question is where do I add the SatIP Client on my german TVHeadend? I Can't find any field for that.. Last but not least I don't know where should I set the "persistent authentication" that you mentioned.
Can you point me to some tutorial? Thank you!

This will work in tunel protocol
sat>ip work in lan only, in internet not recomended

So need to use is with playlist
side A (IT) setup all as is, create user and password (password with persistent autentification)
side B (DE) setup Automatic network with link

http://username:password@Italian_IP:9981/playlist/auth/channels

limit connections if there is problem with epg getting and scanning.

RE: TVHeadend inside another TVHeadend - Added by Joe User almost 5 years ago

saen acro wrote:

sat>ip work in lan only, in internet not recomended

While not recommended (and not designed for), satip works fine over internet, but it is more difficult to setup the ports to be allowed through firewall/nat configurations.
A VPN would make configuration easier, but the overhead would be factor in stream quality.

lord slash wrote:

Now my question is where do I add the SatIP Client on my german TVHeadend?

You must start Tvheadend satip client (Germany) with the following option

--satip_xml
              URL with the SAT>IP server XML location.

--satip.xml http:/italian.server.ip:<port>/satip_server/desc.xml 

Once you have connected, you should see the satip server in Configuration->DVB Inputs->TV Adapters.
Then for each tuner, make sure you set "UDP RTP port number (2 ports):" to the UDP port you have opened on your firewall/nat for your German address.

On Italian tvheadend, in Configuration->SAT>IP Server specify "RTSP port (554 or 9983, 0 = disable):" you have opened for your Italian address.

EDIT!!!
(Used for <port> in above example.)

Sorry, wrong info. The <port> in the example needs to be the HTTP port for your Italian server.

Sorry, I do not have time to write complete configuration guide, but if you get stuck you can ask questions.

RE: TVHeadend inside another TVHeadend - Added by Torsten Boos almost 5 years ago

Once you have connected, you should see the satip server in Configuration->DVB Inputs->TV Adapters.
Then for each tuner, make sure you set "UDP RTP port number (2 ports):" to the UDP port you have opened on your firewall/nat for your German address.

What Port do you meen ?
Can you describe it better please?

I see my Tuner from my Sat IP Server but it did not work.

No muxes are found.

RE: TVHeadend inside another TVHeadend - Added by Joe User almost 5 years ago

While "9981" is okay to use since it will be UDP and not TCP (9981 TCP is used for HTTP...) but it would probably be better to choose some other ports. Maybe enter something like "8891", then make sure UDP ports 8891 and 8892 are open on your firewall and redirected to your Tvheadend machine with NAT.

Also, on your Tvheadend satip server (Italy) make sure you enter the IP address or hostname you use from your satip client's "--satip_xml" argument in

Configuration->General-SAT>IP SERVER->External IP (NAT):

It needs to match EXACTLY what you use- ie if you use hostname, use hostname, if you use IP address, use IP address.

For debugging, on your satip server you should enable TRACE for "satips" and on the satip client TRACE "satip" for a start...

    (1-16/16)