IPTV into LAN
Added by Joan Perez almost 3 years ago
Hello. I have a really noob question (i think). Im receiving an iptv signal from a m3u and i want to know if it is possible to stream this whole playlist into my LAN to other TV that have kodi and openelec. I added that m3u playlist to my tvheadend but it is not creating services from the muxes. Any idea? (sorry about my english, it is not my main language)
Replies (1)
RE: IPTV into LAN - Added by Hiro Protagonist almost 3 years ago
Joan Perez wrote:
Hello. I have a really noob question (i think). Im receiving an iptv signal from a m3u and i want to know if it is possible to stream this whole playlist into my LAN to other TV that have kodi and openelec.
Any TVH client [e.g. Kodi] on your LAN should be able to access the content on your TVH server [regardless of the origin].
I added that m3u playlist to my tvheadend but it is not creating services from the muxes. Any idea? (sorry about my english, it is not my main language)
There's very little info to go on here, but the first things to check are:
1. Can you access the URLs from the m3u file with a videoplayer like VLC?
2. If you can, is the content in the format required by TVH?
You can check the content type with ffprobe[*]:
ffprobe 'URL'
Look for a line starting with Input -
Input #0, mpegts, from 'http://...'
- If you don't have ffprobe, use ffmpeg -i 'URL' instead. It will complain "At least one output file must be specified", but you can ignore that.
You must put the URL inside 'single quotes' as sometimes these URLs contain characters that will mess up the command line.
If the input is something other than mpegts you'll have to pipe it through ffmpeg.
If you need to pipe through ffmpeg you'll need to create a .m3u8 file that looks like this:
#EXTINF:0,Channel1 Name pipe:///usr/bin/ffmpeg -loglevel fatal -i https://url.from.original.m3u.file -map 0 -copy_unknown -c copy -metadata service_name=CH1 -f mpegts pipe:1 #EXTINF:0,Channel2 Name pipe:///usr/bin/ffmpeg -loglevel fatal -i https://url.from.original.m3u.file -map 0 -copy_unknown -c copy -metadata service_name=CH2 -f mpegts pipe:1
Notes:
Make sure that after pipe:// you put the full path to ffmpeg on your system you can check that with 'which ffmpeg'.
The -metadata service_name=... can be anything you like, this helps to identify the service created by the mux [obviously each one needs a different name].
To use the file, either create a new IPTV network or change your existing one. In the URL: field put -
file:///path/to/local.m3u8
If the above doesn't help, you'll need to provide more information.