Jump to content

Tvheadend plugin for Emby - Beta 1


Tolotos

Recommended Posts

Gerrit507

 

  • Refresh doesn't work.
  • TvHeadend Server works with 3 Kodi devices flawlessly.Do we need any special settings in TvH Server for Emby?

The whole TvHeadend plugin has been really unstable on my build as I tried re-installing the plugin a few times.The channels did show up but they were not playing so I tried to re-install the plugin but everything has disappeared again.TvH Server and Emby run on an OMV NAS and the source is an IPTV network which is piped through ffmpeg on TvH Server.

 

Emby 3.3.0

Plugin 1.3.7

Server 4.2.5-43~ga2fab13ad

 

attachicon.gifService_working_log.txt

attachicon.gifService_not_working_log.txt

 

 

First of all when you install the update you need to restart emby, second after configuring the plugin you need to restart again. Then to get the channels you need to run the "Refresh Guide" task only then the channels will appear.

 

When the channels are not playing what exactly happens? Does it start transcoding and then fails or doesn't it even start transcoding.

 

Make sure your tvheadend user has Streaming: Basic and Advanced rights. Kodi streams over htsp, whereas this plugin streams over http.

Edited by Gerrit507
  • Like 1
Link to comment
Share on other sites

First of all when you install the update you need to restart emby, second after configuring the plugin you need to restart again. Then to get the channels you need to run the "Refresh Guide" task only then the channels will appear.

 

When the channels are not playing what exactly happens? Does it start transcoding and then fails or doesn't it even start transcoding.

 

Make sure your tvheadend user has Streaming: Basic and Advanced rights. Kodi streams over htsp, whereas this plugin streams over http.

Cheers! Got it all sorted now.

 

The channels numbers were reset to 0 which isn't compatible with the TvH plugin.Manually assigned channel numbers and disabled "Network Discovery" as it seems to be pushed by the provider.

Link to comment
Share on other sites

DeBaschdi

Hi

for me since update 3.2.7 channel icons not working.

(opensuse leap 42.3)

i tried both http:// , and file:/// settings in tvheadend 4.3-1113~g780c60374 under picon settings.

 

picons show up in kodi, but not in emby.

now im on emby 3.3.1.2 beta and plugin 1.3.7.

 

 

log looks nice

2018-03-07 16:37:29.379 Info App: [TVHclient] ChannelDataHelper: Adding channel HTSMessage:  <dump>    channelId : 192936347    channelNumber : 8    channelName : rtl2.de    channelIcon : imagecache/22434    eventId : 132040    nextEventId : 0    services : HTSMessage:  <dump>    name : Astra/10832H/RTLII HD    type : HDTV    content : 1    caid : 65535    caname : Encrypted service  </dump>,     tags : 1, 7, 8,     method : channelAdd  </dump>

 

but no icons show up in emby....

 

an cat /home/hts/config/imagecache/meta/22434 tell me :

 

 

{
        "url": "http://localhost/picons/logos/rtliihd.png",
        "sha1": "bb6cd9ee4aa33bc9d74e785396d103f340102c65"
}

 

when i enter in firefox http://localhost:9981/imagecache/22434 my picon will show up ( after i enter username and pw)

 

sry for my bad english....

Link to comment
Share on other sites

flowlee

I have exactly the same problem as DeBaschdi. Picons stored on the tvheadend server (file:///...) are not displayed but work fine in Kodi or when the URL is entered in a browser.

 

Strangely enough the one icon that is external (http://...) seems to get picked up by Emby.

Link to comment
Share on other sites

Probably because emby server does not have direct access to that file location, right?

Link to comment
Share on other sites

DeBaschdi

if u mean me,

when i use file:/// settings, emby has acces to my picons storend in /home/hts/picons

 

(user hts and user emby are both in group video)

 

drwxrwxr-x  3 hts  video 724992  5. Mär 07:52 picons

 

and if i use http:// settings, it should be similar ?

 

 

but in both cases, no picons show up in emby.

Edited by DeBaschdi
Link to comment
Share on other sites

DeBaschdi

the picons stored in /home/hts/picons are image files!

 

 

 ls -la /home/hts/picons/ |grep rtl2hd

 

-rwxrwxr-x  1 hts  video   2458 22. Feb 06:04 rtl2hd.png

Link to comment
Share on other sites

Ok, there is probably some work required in the plugin then to handle these.

Link to comment
Share on other sites

flowlee

The file:/// location is only used within tvheadend, these images are then served at a URL that can be accessed externally by any browser. This seems to work because other clients see the icons just fine and Emby even uses these URLs. They are just not displayed correctly.

 

I don't think permissions are the problem here, maybe it's just a matter of accepting image URLs that don't end in .jpg or .png?

 

The imagecache function of tvheadend serves the picons at http://<host>:9981/imagecache/<random id> if I remember correctly, so these images don't really look like images.

Link to comment
Share on other sites

DeBaschdi

after a littlebit more testing, when i go on livetv (browser) to my channel "rtl2" open with rightclick on the "primary" (not displayed picon) and say : open image in new tab

 

http://xxx.xxx.xxx.xxx:8096/emby/Items/306a0896cba824b8ed9b23ad1883ee63/Images/Primary?maxHeight=322&tag=6768cc171b7fa68a89d3a99bc3bb5021&quality=90

 

firefox say :

 

Value cannot be null. Parameter name: mimeType

Link to comment
Share on other sites

DeBaschdi

 

The imagecache function of tvheadend serves the picons at http://<host>:9981/imagecache/<random id> if I remember correctly, so these images don't really look like images.

 

inside the <random id> :

 

when using http:// in tvheadend picon settings:

{

        "url": "http://localhost/picons/logos/rtliihd.png",

        "sha1": "bb6cd9ee4aa33bc9d74e785396d103f340102c65"

}

 

and when using file:/// in picon settings :

 

{

        "url": "file:///home/hts/picons/logos/rtliihd.png",

        "updated": 1487298450

}

 

Edited by DeBaschdi
Link to comment
Share on other sites

Gerrit507

@@Gerrit507 have you tried this?

after a littlebit more testing, when i go on livetv (browser) to my channel "rtl2" open with rightclick on the "primary" (not displayed picon) and say : open image in new tab

 

http://xxx.xxx.xxx.xxx:8096/emby/Items/306a0896cba824b8ed9b23ad1883ee63/Images/Primary?maxHeight=322&tag=6768cc171b7fa68a89d3a99bc3bb5021&quality=90

 

firefox say :

 

The picons need to ne accesible via http. The tvheadend plugin builds this path: http://servername:port/imagecache/id

 

There is still the issue with the missing mimeType. Tvheadend doesn't provide information of which type the file is. Emby needs this information.

 

I've submitted a pull request for emby-server which could handle such missing mimeTypes a few days ago...

 

I've tested it and emby shows channel icons with this again.

 

https://github.com/MediaBrowser/Emby/pull/3187

Link to comment
Share on other sites

Zerocool9

Hello

 

I have been all though this topic but couldn’t stop it any where

 

I have it all set up and working apart from the channel icons but I can see this is in progress

 

Also how do I get my channels list under the correct category eg sports or movies do I have to add channel tags in the tvheadend sever to the channel if so what are the tags?Or is it the stream name?

Link to comment
Share on other sites

Gerrit507

Hello

 

I have been all though this topic but couldn’t stop it any where

 

I have it all set up and working apart from the channel icons but I can see this is in progress

 

Also how do I get my channels list under the correct category eg sports or movies do I have to add channel tags in the tvheadend sever to the channel if so what are the tags?Or is it the stream name?

The channels are not divided in categories, only program entries from the epg are. The category they are sorted in depends on what info the epg provides in the "content type" field for each program entry.

Link to comment
Share on other sites

  • 2 weeks later...

The next release of emby server will have a hack that should get the TVH images working again. Thanks.

  • Like 1
Link to comment
Share on other sites

The next release of emby server will have a hack that should get the TVH images working again. Thanks.

Sounds awesome! Any news when we are able to get the new release?

Link to comment
Share on other sites

mad_cow

I've searched this board and many other, but I cant seem to get Live TV installed.

 

I have TVHeadend server 4.3-1159~gc64482d65 runninf inside Docker on my Synology DS218+.

- I can connect to the webinterface, find channels, see EPG. It all works

- I can use a TVHeadend client app on my android phone. Same. It all works.

 

I tried the Emby TVHeadend client

- doesn't work

- "Refresh Guide Data" --> nothing happens

- Add "Detect My Devices" --> no tuner found

- Added channels as a M3U playlist, that works, but no EPG nor channel icons

- tried with and without password, no difference

 

What is the 'correct' way to set it up? Or should I downgrade to a lower version of TVHeadend server?

 

 

Edit

Don't know exactly what I did. But after another restart, suddenly my channels started populating. It works now, including EPG (without channel logos yet)

Edited by mad_cow
Link to comment
Share on other sites

zapras

I'm using mc2xml with schedules direct. I combine all 4 of my SD lineups into one and then import into tvheadend using the External: xmltv module (the one with xmltv.sock that you cat the data into)

 

example screenshot:

 

 

Can you help me out on that? I think I'm stuck. I've finally managed to source a xmltv guide with programme icons. I've used this command I found here to cat into the xmltv.sock file.

cat tvguide.xml | socat - UNIX-CONNECT:/home/hts/.hts/tvheadend/epggrab/xmltv.sock

In TVHeadend, I've made sure each channel has the epg source as xmltv. I've reset the guide in Kodi and it seems to draw the new schedule just fine, it doesn't show any posters but that could be normal for Kodi? (I'm assuming Kodi doesn't display posters). In Emby I've done a refresh guide, I'm unsure if that's actually drawing from the new guide, but that doesn't show any new posters. I've checked /xmltv/channels and that doesn't show any of the icon url data. 

 

An example programme from my guide data:

 <programme start="20180330183500 +1300" stop="20180330203000 +1300" channel="32">
    <title>Robocop 2</title>
    <desc>Action:This sequel pits Robocop against a gang of drug dealers and the title creature - a supposedly improved version of himself - that has gone berserk. Stars: Peter Weller, Nancy Allen</desc>
    <category>Movie - Action</category>
    <rating>
      <value>M</value>
    </rating>
    <star-rating>
      <value>5/8</value>
    </star-rating>
    <video>
      <quality>HDTV</quality>
    </video>
    <audio>
      <stereo>stereo</stereo>
    </audio>
    <audio-description present="no" />
    <credits>
      <director>Irvin Kershner</director>
      <producer>Jon Davison</producer>
      <producer>Phil Tippett</producer>
      <producer>Jane Bartelme</producer>
      <producer>Patrick Crowley</producer>
      <writer>Frank Miller</writer>
      <writer>Walon Green</writer>
      <actor>Peter Weller</actor>
    </credits>
    <date>1990</date>
    <icon src="http://example.com/examplemovie.jpg" />
  </programme>
Edited by zapras
Link to comment
Share on other sites

Iorifly
I have trouble playing the channels.

 

I'm using:

 

Emby - Version 3.3.1.0

Tvheadend - HTS Tvheadend 4.2.5 ~ LibreELEC Tvh-addon v8.2.113

Plugin - 1.3.7.0

 

It displays the channels, but does not play anything. When I go to the tvheadend log, I verify that the access was not authorized

 

 

 


192.168.1.20 [ Renato ]: Welcomed client software: TVHclient4Emby-3.3.1.0 (HTSPv20)

2018-04-05 17:50:56.403 htsp: 192.168.1.20 [ Renato | TVHclient4Emby-3.3.1.0 ]: Unauthorized access

Link to comment
Share on other sites

I'm not a TVHeadend expert but it looks like you need to configure how the plugin logs into tvheadend.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...