Streaming Live TV via Kodi Over the Internet

Kodi Community Development

Moderator: TVJunkie198

Post Reply
hotshot2k3
Posts: 55
Joined: Tue Aug 16, 2011 4:02 pm

Streaming Live TV via Kodi Over the Internet

Post by hotshot2k3 » Tue Mar 27, 2018 6:25 pm

Things Needed:
Kodi
IPTV Simple PVR Addon
Xamp or apache
Dropbox account
Zap2it account
zap2xml

Instructions

1. Setup zap2xml .bat file like this to output the file for Dropbox syncing in the public folder: zap2xml -u username -p password -e -O -D -A -I -o "PATH\Dropbox\Public\xmltv.xml"
2. Setup .m3u as shown below by using the contents of the xml file, add as many channels as you like. My example outputs the untouched mpeg2 video and ac3 audio.
3. Place .m3u in public Dropbox folder
4. Setup scheduled task to run .bat file every few days in Windows “Task Scheduler”
5. Install Xamp/Apache
6. Edit httpd.conf
a. Change Listen port to 8080
b. Uncomment

Code: Select all

LoadModule proxy_html_module modules/mod_proxy_html.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_http2_module modules/mod_proxy_http2.so
LoadModule proxy_scgi_module modules/mod_proxy_scgi.so
LoadModule proxy_wstunnel_module modules/mod_proxy_wstunnel.so
c. make sure to uncomment "Include conf/extra/httpd-vhosts.conf" if its not already done
7. Edit httpd-vhosts.conf
a.

Code: Select all

<VirtualHost *:8080>
    ServerName localhost
    ProxyPass / http://HDHR IP:5004/
    ProxyPassReverse / http://HDHR IP:5004/
</VirtualHost>
8. Make sure Xamp/Apache is running and that your 8080 port is forwarded on your router
9. Configure PVR IPTV Simple Client Addon by making sure Remote path is selected in the General and EPG Setting tabs. Add the shared Dropbox URL for the .m3u and .xml into each tab
10. Make sure to change the end of each Dropbox URL to dl=1 instead of dl=0
11. Restart Kodi and enjoy

Template

XML Contents

<channel id="I16689331.labs.zap2it.com">
<display-name>502 WCBSDT</display-name>
<display-name>502</display-name>
<display-name>WCBSDT</display-name>
<icon src="https://zap2it.tmsimg.com/h3/NowShowing ... _h3_aa.png" />
</channel>

.M3U Contents
#EXTM3U
#EXTINF:-1 tvg-name="502_WCBSDT" tvg-logo="special://home/media\Logos\CBS.png",CBS
http://External IP:8080/auto/v502
#EXTINF:-1 tvg-name="504_WNBCDT" tvg-logo="special://home/media\Logos\NBC.png",NBC
http://External IP:8080/auto/v504

Deihmos
Posts: 56
Joined: Sun Jul 08, 2012 9:25 pm

Re: Streaming Live TV via Kodi Over the Internet

Post by Deihmos » Fri May 18, 2018 1:07 pm

Or you can install plex or emby and do it the simple way.

Si14
Posts: 17
Joined: Thu Jan 24, 2019 4:48 pm

Re: Streaming Live TV via Kodi Over the Internet

Post by Si14 » Fri Jan 25, 2019 9:57 pm

[posts from this account are not displayed]

Post Reply