Adding local IPTV streams to Channels
Added by Steve O over 9 years ago
Hello,
I recently bought an AVM DVB-C network tuner, which is supposed to implement some kind of SAT->IP protocol. After reading some forums, I learned that the protocol is not fully implemented, so the only way to import the streams into tvheadend is to add them as a rtsp source. Unfortunately, I struggle to add the channels. Here is what I tried:
- Installed Version 3.4.28~geb79aee~trusty
- took one rtsp link from the receivers m3u list (watching channels in VLC works with this list)
- try following command:
/usr/bin/avconv -loglevel fatal -i "rtsp://192.168.1.139:554/?freq=626&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=0&pids=0,16,17,18,20,107,1201,1202" -vcodec copy -acodec copy -metadata service_provider=test -metadata service_name=test -f mpegts -tune zerolatency /tmp/test.dvb
The file was spammed with binary data, so I figured it works.
- created /home/stevo/test.sh with following contents:
#!/bin/bash
/usr/bin/avconv -loglevel fatal -i "rtsp://192.168.1.139:554/?freq=626&bw=8&msys=dvbc&mtype=256qam&sr=6900&specinv=0&pids=0,16,17,18,20,107,1201,1202" -vcodec copy -acodec copy -metadata service_provider=test -metadata service_name=test -f mpegts -tune zerolatency pipe:1
and make it executable. Running it gives no output, but also no error, so I figured it works.
- Add it in IPTV with name test and interface "pipe:///home/stevo/test.sh"
- Go to channels, copy link and try to play in VLC
Here VLC asks me for the password but then skips with an error:
Your input can't be opened
VLC is unable to open the MRL 'http://192.168.1.102:9981/stream/channelid//1'. Check the log for details.
Here I am stuck as I don't know where to find the log. Anyway, I feel like something is wrong with my setup.
Thank you in advance for help!
Edit: Followup for others looking to use the AVM DVB-C Tuners with tvheadend:
With the current development version it is possible to add the device as a SATIP tuner. Despite a few glitches (channel switches in kodi require first stopping the current channel, scanning muxes fails if multiple muxes are in the list - enable them one by one to allow them to be scanned) it works. Also, the device currently limits to one stream per IP address, so only one tuner can be used. This is a thing AVM needs to fix in their firmware.
Replies (12)
RE: Adding local IPTV streams to Channels - Added by Gonzo Gonzales over 9 years ago
Hello,
which tvheadend version do you have used to solve your Problem with AVM.
I have used 3.9.2851 and i think i have no chance to solve the same Problem with my AVM BOX and this version.
RE: Adding local IPTV streams to Channels - Added by Steve O over 9 years ago
Hello,
the patch has not been committed yet to the current development version. But it works nicely if you download the latest source code from the github repository and manually apply the patch found here:
https://tvheadend.org/issues/2943
With this both tuners work simultaneously.
RE: Adding local IPTV streams to Channels - Added by Gonzo Gonzales over 9 years ago
Hi,
with the newest version, it works. But now the Problem is, that my AVM Box (6490) often reboot if a mux scan run. I use a testing version of tvheadend on my Synology, i think this can be a reason.
RE: Adding local IPTV streams to Channels - Added by Steve O about 9 years ago
If possible, try to build tvheadend yourself after applying the mentioned patch. For me mux scans and tv reception was broken without it.
With the patch I have not head any issues so far, also multiple tuners work nicely.
RE: Adding local IPTV streams to Channels - Added by Gonzo Gonzales about 9 years ago
Hi,
i could solved the Problem. I must limit the "maximum input streams" of the IPTV Network in TVHeadend . The AVM Fritzbox has 4 Tuner and without limiting, the box use all tuner or search for more tuners (i don´t know) and then the box reboot. Now it is perfect.
RE: Adding local IPTV streams to Channels - Added by Steve O about 9 years ago
Yes, this is a stupid limitation of the AVM device - it allows only one connection per IP-address.
A workaround is to bind each tuner to a unique IP-address with the webinterface.
You can generate multiple ip-addresses for a single network adapter by using aliases.
RE: Adding local IPTV streams to Channels - Added by nothing works about 9 years ago
hello everyone,
I also have an avm 6490 but I do not know how to add it to tvheadend. Can someone point me how to do it please?
Thanks
RE: Adding local IPTV streams to Channels - Added by Gonzo Gonzales about 9 years ago
Hey,
at first you must download your Channellist (m3u file)from the AVM 6490. This file includes the rtsp stream like:
rtsp://192.168.0.254:554/?freq=114&bw=8&msys=dvbc&mtype=64qam&sr=6900&specinv=0&pids=0,16,17,18,20,115,2047,36,2048,2051
Then you need to create a IP Network:
Now you add a MUX (rtsp stream):
Now you should see on the TAB Services the Channels. As EPG Grab i hve used EIT: DVB Grabber
I hope i could help you, and you understand my English
RE: Adding local IPTV streams to Channels - Added by nothing works about 9 years ago
Thanks. Worked perfectly.
Perfect.
RE: Adding local IPTV streams to Channels - Added by nothing works about 9 years ago
Do you guys know if tvheadend can behave like a SAT>IP client and AVM 6490 as a SAT>IP server?
RE: Adding local IPTV streams to Channels - Added by Steve O about 9 years ago
Hello Nuno,
see the short summary I wrote here on how to use tvheadend as a SATIP client:
https://tvheadend.org/boards/4/topics/18013?r=18030#message-18030
RE: Adding local IPTV streams to Channels - Added by nothing works about 9 years ago
Thank you guys for your help.
It's working now.
Cheers