Project

General

Profile

DaddyLive, PlutoTV, XUMO, M3U/XMLTV, SamsungTV, Plex, TVGuide interfaces (appliance)

Added by G Kazaroth almost 4 years ago

Cabernet for (Cable Network) version 0.9.12 (4/13/2023)
TVGuide, DaddyLive, PlutoTV, XUMO, M3U/XMLTV, SamsungTV, Plex

Provides a configurable interface from providers to TVHeadend.

  • Direct streaming plugins for DaddyLive, PlutoTV, XUMO
  • EPG supplemented using TVGuide.com data
  • M3U Plugin provides channels for: SamsungTVPlus, Plex, PBS, Stirr, and others
  • From: https://i.mjh.nz/
  • Import your own M3U file

https://github.com/cabernetwork/cabernet/releases
Purpose is to get a service that will take the DaddyLive, PlutoTV or XUMO server stream, clean it and feed it into TVHeadend and other DVRs (Also tested on Emby, JellyFin and Plex). Also it runs on Linux, Windows as a service and Docker. Windows has a installer. Once installed, setup is easy with TVHeadend. Also includes a TVGuide.com plugin to obtain TVGuide data.

1) Setup the automatic IPTV network (recommend new URL is http://[host]:6077/PlutoTV/channels.m3u)

Make sure to set the "Maximum # input streams". PlutoTV is set to a max of 4 and tvheadend uses 2 per tuner during initial screening. Doing a force scan will create the mux and service values. Also, turn View level to Advanced and set the Re-fetch period (mins) to a very large number. TVheadend has a tenancy to cause issues when channels change (Changed Services will not be mapped to channels). The Maximum Timeout is used to wait for a reply during a Forced scan. Recommend keep this low, like 15-20 seconds. Some of the channels may fail, but it is faster than having a high setting and waiting for all channels to scan. Just individually rescan those that failed by setting each mux back to PEND from IDLE.
2) Next you can setup the grabber. I use a URL grabber written in Unix bash and is an extremely small file. It can be found in the github repo at
https://github.com/cabernetwork/cabernet/tree/master/lib/tvheadend/service/Unix called tv_grab_url
Place the grabber file in the same location as the other TVHeadend tv_grab* files, change the permissions to executable and restart TVHeadend. This should allow TVHeadend to pickup the new grabber. While in the grabber list, make sure and disable any OTA grabbers. Stations no longer send this information and will only cause TVHeadend to use a tuner for scanning. Displaying the log window by clicking the three ^ in the bottom right is helpful at this time.

Have the grabber run and populate the EPG data into the EPG Grabber Channels tab. The log should show a quantity of channels were detected.
Pop over to the EPG Grabber tab and disable the OTA grabber cron. Also, update/replace the Internal grabber cron schedule using something like below. The example will pull the TV guide at 6:04am and 5:52pm. Add more if you need. It is recommended to use static cron times.

4 6 * * *
52 17 * * *

3) In the Channel view, select Map all channels.

This will tie the services, EPG and channels together, automatically. After this, re-grab the EPG data. This will populate the EPG tab with shows. For TVH version 4.3, the Number column will auto-populate. For TVH 4.2, you will need to manually add channel numbers.
4) Display the TVGUIDE. This appliance has special features which maps the tvheadend genre, giving colors on tvguides. It also has enhanced guide descriptions and optional additional channel notations if you use many streams. Below is the Kodi tvguide using the pvr.hts plugin.

For Kodi, go to the settings for PVR and turn on the General setting "Use channel numbers from backend".


Replies (960)

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by Tekno M over 2 years ago

G Kazaroth

The "Debug" level log was posted 6 days ago here https://tvheadend.org/boards/5/topics/43052?r=47435#message-47435

I will follow your instructions here to post a new one.

As for the Tab issue then it is still that no tab ever appears, if in fact it should and seems it should.

John Tocher,

I have explained and explained but I am using it as it was designed to be used it is just that one source comes from Localhost:8866 which seems to be something you do not understand. I refuse to explain it again.

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by Tekno M over 2 years ago

G Kazaroth,

I have 2 systems I have been messing with this on both with the same data corruption issue.

System #1 (Raspberry Pi 3 running Raspbian stretch Python 3.8) has only USTVGo

System #2 (Mac Mini OSX 10.15 Catalina Python 3.9.12 Had an M3u file which I no longer subscribe to because nothing worked to be able to use it as I want to use it, but I will replace that with a different M3u file for testing.

System #1 as it has no m3u file I modified your instructions as follows;

After setting log level to debug, I deleted the old log and data then rebooted. This was to prevent confusion, as I have messed with this lots to no avail. It also helps to keep the logs relevant.

Then I waited and I could see in the logs that it was rebuilding the database. I knew it was done rebuilding database when I see the 501 error (see attachment)

Go to Data Mgmt, On Reset Channel Data, set the Reset Edits to Yes and Plugin to M3U
to
Go to Data Mgmt, On Reset Channel Data, set the Reset Edits to Yes and Plugin to USTVGo

You did not say to reboot nor restart Caberbet , so I did not.

downloading the channels.m3u file the contents of the file are only
"#EXTM3U" but no more error (see attachment)

Then I open the log and see

2022-06-30 14:12:21,718-ERROR:web_admin UNEXPECTED EXCEPTION on GET='stream_url'
Traceback (most recent call last):
  File "/root/cabernet/lib/clients/web_admin.py", line 104, in do_GET
    elif getrequest.call_url(self, self.content_path):
  File "/root/cabernet/lib/common/decorators.py", line 228, in call_url
    self.url2func[_name](_webserver, *args, **kwargs)
  File "/root/cabernet/lib/clients/channels/channels.py", line 42, in channels_m3u
    _webserver.do_mime_response(200, 'audio/x-mpegurl', get_channels_m3u(
  File "/root/cabernet/lib/clients/channels/channels.py", line 100, in get_channels_m3u
    uri = sid_data['json']['stream_url']
KeyError: 'stream_url'


(full log attached)

Correct me if I am wrong but there is no other channel data to delete as USTVGo is the only active source on this system.

Note that this is one of two systems with this problem and each has its own unique stream sources. Hopefully I can do the same on the other (OSX) system soon.

Capture1.JPG (17.3 KB) Capture1.JPG After Zapping ALL data and waiting for database do rebuild I see...
cabernet.log (20.3 KB) cabernet.log Log File
channels.m3u (8 Bytes) channels.m3u After Zapping Channel Data for USTVGo from web interface (data is never rebuilt)

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by G Kazaroth over 2 years ago

it still looks like you have a corrupted database which you continue to not clean up. We need to confirm you are cleaning up the database. "You can do something wrong 50 times, but it only takes one time to do it correctly. Consistently wrong does not make it right..."

First, go to Settings > Internal > Paths and identify the "Database Path". Is this where you remove the db files when you clean up the databases?
Second, go to Data Mgmt and pull down the Delete Instance list. Report all instances listed in this list. As you have indicated, there should be only one instance. If you go through and delete all instances, it should no longer produce the stream_url error since no database rows should exist.

According to the log provided, the database files did not recreate themselves, so they must have still been present. The errors around time 2022-06-30 14:09:18 are from a channel table that was incorrectly built with a missing column.

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by Tekno M over 2 years ago

`THAT IS PRECISELY WHAT I DID, but I realize only with USTVGo database (only one currently installed)!

I have also at other times gone and deleted the entire data folder and generated a new ini file.

This time I have selected to delete ALL channel databases (at about 1July2022 14:26 in the log).

Then I waited and nothing seemed to happen the playlist did not seem to rebuild just a blank playlist file with only

#EXTM3U

so then I rebooted and the playlist began to rebuild I could see in the log

If as you say the database is in fact Not being deleted then it is a shortcoming of the Web GUI functionality, or your instructions.

As I said I have even deleted all data in the data folder previously then re-created the ini, only to return to the same issue. This same issue on OSX and Raspbian. If there is a corrupted database it is not in the data/db folder.

BTW the reason a previous log was duplicated in one of my posts is that when you edit a post here it does not show the current attachments and I assumed I made an error and had not attached it, so I attached it. Later I realized it was there twice and I did not see a method to remove an attachment.

cabernet.log (232 KB) cabernet.log Log file

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by rudesingh rudesingh over 2 years ago

I just came across this project and am confused by a couple of things. First, I see that people are using this in Ubuntu and even on a Raspberry Pi, but in searching through this thread and the project page I cannot for the life of me find any clear instructions for installation. For example, when you install Tvheadend on Ubuntu you can go to https://tvheadend.org/projects/tvheadend/wiki/AptRepositories and it more or less walks you through the process of installing Tvheadend. Is there anything similar for this software? Because right now I'm totally clueless as to how you install and configure it. I see in the top post how you configure Tvheadend once you have it installed , but I am not clear on how you get it installed in the first place.

https://get-vidmateapp.com/
https://get-mobdroapk.com

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by G Kazaroth over 2 years ago

We have yet to find a person who wants to build/maintain the documentation or website, but you should be able to find the info needed at my old github wiki:
https://github.com/rocky4546/tvheadend-locast/wiki

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by Tekno M over 2 years ago

rudesingh,

Personally I am not sure why everyone these days seems so bent on docker. Independent of OS or hardware on any modern OS can run this from a python3 command line. Of course you need Python3 installed to do that. I mean why use docker when Python is already cross platform, and probably requires less overhead.

I think the whole docker container presents its own set of challenges and does not free you from still having issues.

My recommendation is run it from the python3 command line just like is on the instruction on the Github page https://github.com/cabernetwork/cabernet

I too wish there were some docs and would love to help with that however I have an issue now that has popped up on 2 different Operating systems with 2 different versions of Python that seem insurmountable. I can not see helping with docs when I personally have insurmountable issues with running it.

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by john tocher over 2 years ago

I run it in Docker. Why would you not? Once I set it up it was trivial to add other instances for experimentation.

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by Tekno M over 2 years ago

John toucher,

I see it the other way Why would you run it on docker?

It is additional overhead first off. Second Docker has its own learning curve.

But then again I guess you are the same one that could not understand that just because I was getting an m3u list from the same IP:port as NextPVR (by way of its integrated web server) did not mean the file originated from nextPVR

So yea maybe you need docker, but I have little use for it.

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by john tocher over 2 years ago

You can search Youtube for reasons to use docker. Off topic here. As far as I can tell you have not managed to get cabernet working. Seems to me you couldn't get it working with tvheadend and so you try nextpvr. Why would look for support for that on a tvheadend forum?

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by Tekno M over 2 years ago

TVHeadend has had a long time issue with scanning channels just search the forums for proof of this. That makes it incompatible with sources that I have. Sure there are some it will work with but many it will not work with . The work-around in TVH forums does not always work.

Yes I have 2 installs of Cabernet that "silently fail" and when I use that term I will bet that a lot of people , possibly you are having such a failure without knowing (as you refuse to check the m3u url)

Presently Cabernet is running , after I re-installed it and immediately copied the m3u file (which I do not need right now) , as the links seem fixed as long as I do not edit the channels. Then if I need to change something that may affect it at least I can put the static file on a web server , but as long as the error is "501 server error" Next PVR seems to not require a new download of the m3u file. Suffice to say I worked - around the Cabernet database failure that only causes the channels.m3u to produce an error.

yes 2 platforms, with 2 different versions of python with the same error id say that's a pretty sure fire sigg of a problem, but many people have not looked to see if they can actually access their channels.m3u after it has been up and running for a while. Then again there could be a reason why it behaves differently on docker too; python version, etc.

Since you have denied me to check your m3u file you are clearly no help, because if you were some help at all you would have done so by now and posted the result. Instead you waste my time with your feeble attempts to insult me.

BTW most of us do not need to watch a 20 minute video to hear someones opinion of the benefits of docker. PUT IT IN TEXT! I am not a millennial that needs to see a video because I am incapable of comprehending what I read. I do not need bad music and to waste 20 minutes to see what I could read in 2 minutes in text.

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by john tocher over 2 years ago

You don't have time to find out about docker? I don't have time to explain it to you. Your Cabernet setup is working? Good.

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by Tekno M over 2 years ago

I do not need nor want docker explained. I have no use for it and have used it in the past.

If you bothered to read, I have a work-around, but there you go not understanding AGAIN.

I refuse to keep micro explaining to you.

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by Sean Micklem over 2 years ago

Just wondering, PlutoTv's Twitter account has been announcing new channels, and they show up on their website, but they don't seem to get added in Cabernet. Does someone have to manually add the new channels, or do they just get picked up automatically at some point? I did try refreshing the channels list but it made no difference. Seems like I haven't seen any new PlutoTV channels updates in over a month in Cabernet.

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by G Kazaroth over 2 years ago

USTVGO is the only plugin that has a static config list of channels. The other plugins are pulled and updated every time the channel list is updated. You should see them in the edit channel list. To get them into TVH is a different issue. If you can find a channel that you believe should be in the list, let us know and I will verify.

Notes: I did a reset in Data Mgmt with Reset Edits being No and then requested the schedule event to update plutotv channels. It did the updates and all channels appeared. Looking into whether the normal scheduled event is running...

After reviewing multiple days of schedule events, it looks like the PlutoTV channel updates are running on time and as expected (daily). No issues were found.

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by Sean Micklem over 2 years ago

G Kazaroth wrote:

After reviewing multiple days of schedule events, it looks like the PlutoTV channel updates are running on time and as expected (daily). No issues were found.

Well of course a day after I asked about it, the new channels showed up. Not sure why it took that long but oh well, at least I know it's working. Thanks.

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by john tocher over 2 years ago

I had some experiences with the problem Tekno M described. I went to test channel lineup with VLC and sometimes it works but mostly not. Tried with wget:

wget http://10.42.0.1:37000/channels.m3u
--2022-07-19 12:59:50-- http://10.42.0.1:37000/channels.m3u
Connecting to 10.42.0.1:37000... connected.
HTTP request sent, awaiting response... 501 Not Implemented
2022-07-19 12:59:50 ERROR 501: Not Implemented.

Interesting problem. I am not sure why it just seems to work when tvheadend is used. I do have trouble with scanning but increasing the timeout clears it up.

Not a big deal for me. As long as it works with tvheadend.

Tried Cabernet with Nextpvr. Seemed to work okay. Doesn't seem to be quite as robust as tvheadend.

Been trying to get Pluto TV, Samsung TV Plus, etc. working in Cabernet. They work but none of them quite as well as Matt Huisman's Kodi plugins. They play okay but when a commercial break comes it gets wonky (on most streams).
Lately I have settled on using Matt Huisman's Kodi plugins for some streams and Cabernet for Xumo VOD. Kodi using the simple and tvheadend pvr clients.

Not the most satisfying solution because it doesn't allow for integrating with jellyfin and plex via antennas proxy. That's okay though.

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by Tim J over 2 years ago

Been trying to get Pluto TV, Samsung TV Plus, etc. working in Cabernet. They work but none of them quite as well as Matt Huisman's Kodi plugins. They play okay but when a commercial break comes it gets wonky (on most streams).

The reason for this is that they are switching the stream for the commercial, injecting a new video/stream of the commercial in the stream.

Note that for streaming live TV from the Internet there are still issues that need to worked out to support every stream. Specifically full complete support of RFC-7933 and RFC-8216. Full support of these RFC is missing from ffmpeg.

Dolby AC-4 and MPEG-H 3D Audio support is missing from ffmpeg in order to be able to record and play back ATSC 3.0 over the air 4K broadcasts as well.

Add #EXT-X-DISCONTINUITY support to ffmpeg for IPTV streams such as Stirr and Pluto is the problem. It's part of the RFCs that ffmpeg isn't supporting properly.
https://github.com/jellyfin/jellyfin-ffmpeg/issues/57

In order to fix things you might want to look at this Python code which is a proxy to deal with more RFC stuff that ffmpeg doesn't currently support properly.

Python m3u8 Parser for HTTP Live Streaming (HLS) Transmissions
https://github.com/globocom/m3u8
https://github.com/globocom/m3u8#supported-tags

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by Tim J over 2 years ago

We have yet to find a person who wants to build/maintain the documentation or website, but you should be able to find the info needed at my old github wiki:
https://github.com/rocky4546/tvheadend-locast/wiki

I would be more than happy to work on the docs on Github or create a wiki. I have opened a bunch of tickets on Github about issues and things I have found along with some recommendations for fixing docs and fixes to the docker setup as well, because there are a few issues with the docker and the compose file. I had to basically guess and figure out a lot of things to get cabernet docker working for me for use with Jellyfin. I have it working now but there are still a few bugs that should be addressed and I have opened Github tickets for the issues. I wish there was a Discord channel/server to discuss this because it is simpler for most since a lot of open source apps already use Discord and it is free.

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by john tocher over 2 years ago

Tim J thanks. I have that about ffmpeg. I was fishing to see if anyone had a solution. There must be one because the streams play via Matt Huisman's Kodi plugins --gracefully handling the injection of commercials. I thought there might be some hack/setting/workaround that I have missed. I suppose if there were it would be include in the defaults for Pluto TV.

Just describing my solution/workaround. Not satisfying because of wanting everything running on server and not a mashup of server and client solution.

Funny, I am so used to using Docker, I would set cabernet up on my desktop, then go to watch tv after turning off the desktop machine. Doh.

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by Tim J over 2 years ago

john tocher wrote:

Tim J thanks. I have that about ffmpeg. I was fishing to see if anyone had a solution. There must be one because the streams play via Matt Huisman's Kodi plugins --gracefully handling the injection of commercials. I thought there might be some hack/setting/workaround that I have missed. I suppose if there were it would be include in the defaults for Pluto TV.

Just describing my solution/workaround. Not satisfying because of wanting everything running on server and not a mashup of server and client solution.

Funny, I am so used to using Docker, I would set cabernet up on my desktop, then go to watch tv after turning off the desktop machine. Doh.

LOL@turning off machine

I would assume that adding this proxy to get support for the other HLS tags would solve the problem??? I don't know that for a fact though.

Python m3u8 Parser for HTTP Live Streaming (HLS) Transmissions
https://github.com/globocom/m3u8
https://github.com/globocom/m3u8#supported-tags

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by Tim J over 2 years ago

What should be my settings for Pluto TV? Because I can't seem to connect to any of the Pluto TV streams. I can connect to the USTVGO channels. Is there some special setting needed somewhere else to make it work?

[plutotv_default]
label = PlutoTV
enabled = True
program_thumbnail = poster
player-tuner_count = 5
epg-hours = 12
channel-import_groups = True
player-play_all_segments = True
player-enable_pts_filter = True
player-segments_to_play = 1
channel-start_ch_num = 50

Also it seems that it isn't releasing tuners when you stop watching a channel as well.

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by C Island over 2 years ago

Tim J wrote:

What should be my settings for Pluto TV? Because I can't seem to connect to any of the Pluto TV streams. I can connect to the USTVGO channels. Is there some special setting needed somewhere else to make it work?

Here is my configuration. Not sure if this is the best configuration but it works for me. I tend to record shows and then watch the recordings so the configuration is set to skip commercials so the recording does not have commercials. If watching a PlutoTV channel live the show will freeze for a couple of minutes during a commercial which may leave you to believe the playback is broken but it is not. When the commercial is over playback will resume.

[plutotv_default]
label = PlutoTV Instance
epg-end_adjustment = 180
epg-start_adjustment = 0
enabled = True
player-enable_url_filter = True
player-enable_pts_filter = False
player-enable_pts_resync = True
player-segments_to_play = 2
player-pts_minimum = 10000000
player-pts_max_delta = 3000000

[plutotv]
player-tuner_count = 7

RE: PlutoTV, USTVGO, XUMO, M3U/XMLTV, SamsungTV, Plex interfaces (appliance) - Added by Sean Micklem over 2 years ago

Tim J wrote:

I wish there was a Discord channel/server to discuss this because it is simpler for most since a lot of open source apps already use Discord and it is free.

PLEASE NO!!!! Discord is HORRIBLE to try to create a new account on. I have tried several times, even using invites, and I have never been successful. I don't remember if it was because they demanded a mobile phone number but if so, that's NEVER going to happen as far as I am concerned, especially to a company that uses artwork that looks like it was drawn by someone who was higher than a kite!

Discussion here is fine, we're already here and there is no reason to have to go anyplace else as far as I'm concerned!

(601-625/960)