Jump to content

Tvheadend plugin for Emby - Beta 1


Recommended Posts

Posted (edited)

The plugin is only tested with the stable TVHeadend 4.0.9.

 

@@chvb  @@saed Can you please post the complete Emby log?

 

Hi. thank you very much. attached "log"

server-63611378917.txt

Edited by saed
Posted

The plugin is only tested with the stable TVHeadend 4.0.9.

 

@@chvb  @@saed Can you please post the complete Emby log?

 

Hi, thanks for your answer.

In the Attachment you can see the log files.

Log.txt

Server.txt

Posted

The plugin is only tested with the stable TVHeadend 4.0.9.

 

@@chvb  @@saed Can you please post the complete Emby log?

 

Hey,

now i know whats the problem.

The plugin has updated itself.

I've disabled the auto update and installed the 1.0.6097.29930 Version.

 

With the older Version everything works fine.

With the newer Version there seems to be a bigger Problem.

Posted (edited)

Hi, thanks for your answer.

In the Attachment you can see the log files.

 

 

The error is in the log:

2016-10-06 20:21:41.9255 Info App: [TVHclient] HTSConnectionHandler.ensureConnection: Used connection parameters: TVH Server = '192.168.178.11'; HTTP Port = '9981'; HTSP Port = '9982'; Web-Root = '192.168.178.11:9981'; User = 'admin'; Password set = 'True'
 
You set the new Web-Root parameter to the wrong value.
The complete URL will be build like:
 
    <server-name>:<port><webRoot>
 
Therefore your URL looks like http://192.168.178.11:9981192.168.178.11:9981
 
Add a / as Webroot if you don't have redirected the tvheadend server.
If your URL is
 
  <server-name>:<port>/myredirectpath
 
your Web-Root must be set to "/myredirectpath"
 
-- Tolotos 
Edited by Tolotos
Posted

Hi. thank you very much. attached "log"

 

 

Your ffmpeg dies during transcoding.

 
2016-10-06 19:32:02.2018 Info App: /usr/bin/ffmpeg -fflags +genpts -i "http://192.168.22.140:9981//stream/channelid/1556439513?ticket=C03D82EB7FFBFDD7C507FF50DF83E4CE4577831B"-sn -codec:v:0 libx264 -force_key_frames "expr:gte(t,n_forced*5)" -vf "yadif=0:-1:0" -pix_fmt yuv420p -preset superfast -crf 23 -b:v 8000000 -maxrate 8000000 -bufsize 16000000 -vsync -1 -profile:v high -level 41 -map_metadata -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 192000 -af "aresample=async=1" -y "/var/lib/emby-server/transcoding-temp/9d4c5675e939044f76fbb3bf2781a628.mkv"
2016-10-06 19:32:02.2809 Info App: FFMpeg exited with code 1
 
Can you please post the ffmpeg-transcode log file?
 
-- Tolotos
Posted

 

The error is in the log:

2016-10-06 20:21:41.9255 Info App: [TVHclient] HTSConnectionHandler.ensureConnection: Used connection parameters: TVH Server = '192.168.178.11'; HTTP Port = '9981'; HTSP Port = '9982'; Web-Root = '192.168.178.11:9981'; User = 'admin'; Password set = 'True'
 
You set the new Web-Root parameter to the wrong value.
The complete URL will be build like:
 
    <server-name>:<port><webRoot>
 
Therefore your URL looks like http://192.168.178.11:9981192.168.178.11:9981
 
Add a / as Webroot if you don't have redirected the tvheadend server.
If your URL is
 
  <server-name>:<port>/myredirectpath
 
your Web-Root must be set to "/myredirectpath"
 
-- Tolotos 

 

 

Hi Tolotos,

 

i think this was from testing everything.

But thats not the Problem. When the Webroot is set to / it is also not working.

 

With previous Version everything works fine.

See the attachments for some screenshots and logs.

 

thanks

post-44214-0-06641500-1476080132_thumb.png

post-44214-0-28393000-1476080135_thumb.png

ffmpeg-transcode.txt

server.txt

Posted

Hi,

 

i have the same problem. Emby doesn't reproduce the tv channels. In the ffmpeg log appears this:

ffmpeg version N-80901-gfebc862 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 47.100 / 6. 47.100
libavresample 3. 0. 0 / 3. 0. 0
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
[http @ 0x3e2b780] HTTP error 401 Unauthorized
http://192.168.66.200:9981//stream/channelid/1077598079?ticket=47AB0D9878CAC5C6BFF68E9E0FA0E74AFEC8CB3A: Server returned 401 Unauthorized (authorization failed)

It seems like the tvheadend doesn't give authorization to the emnby plugin.

 

Anyone can help me!

 

thank you.

Posted

Hi,

 

i have the same problem. Emby doesn't reproduce the tv channels. In the ffmpeg log appears this:

ffmpeg version N-80901-gfebc862 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --mandir=/usr/share/man --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libfreetype --enable-gnutls --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvidstab
libavutil 55. 28.100 / 55. 28.100
libavcodec 57. 48.101 / 57. 48.101
libavformat 57. 41.100 / 57. 41.100
libavdevice 57. 0.102 / 57. 0.102
libavfilter 6. 47.100 / 6. 47.100
libavresample 3. 0. 0 / 3. 0. 0
libswscale 4. 1.100 / 4. 1.100
libswresample 2. 1.100 / 2. 1.100
libpostproc 54. 0.100 / 54. 0.100
[http @ 0x3e2b780] HTTP error 401 Unauthorized
http://192.168.66.200:9981//stream/channelid/1077598079?ticket=47AB0D9878CAC5C6BFF68E9E0FA0E74AFEC8CB3A: Server returned 401 Unauthorized (authorization failed)

It seems like the tvheadend doesn't give authorization to the emnby plugin.

 

Anyone can help me!

 

thank you.

 

I'm not a tvheadend expert but judging from the error it looks like you have not properly configured the plugin.

Posted

Can you please try with a empty webroot setting?

There is a // in the path. This is working in my windows setup but maybe Unix is more restrictive to the correctness of URLs.

 

-- Tolotos

Posted

Can you please try with a empty webroot setting?

There is a // in the path. This is working in my windows setup but maybe Unix is more restrictive to the correctness of URLs.

 

-- Tolotos

 

Hi Tolotos,

 

i've tried it. but no chance. He automatically set it back to "/".

Posted

Please try this version. It removes a trailing slash from the webroot internally.

 

Can you describe your setup?

Are your emby and tvheadend servers on the same local network?

 

-- Tolotos

TVHeadEnd.zip

Posted

Please try this version. It removes a trailing slash from the webroot internally.

 

Can you describe your setup?

Are your emby and tvheadend servers on the same local network?

 

-- Tolotos

 

I also had the issue with not being able to play live TV channels since the webroot option was added. I can confirm that the plugin version you posted (1.0.6128.37305) is working for me again in a purely Debian 8 environment.

Posted

@@gstuartj Thank you for the quick reply. The new version is in the catalog now.

 

-- Tolotos

Posted (edited)

Thanks for the new Version.

It's working again. 

I'm using a tvheadend docker and emby docker on a UNRAID System.

Containers are in same Network.

 

many thanks.

Edited by chvb
Posted

Just got Emby Server running for 1 day (my Synology wasn't supported earlier) and got it almost 100% configured i think but already noticed a lot of issues related to TVHeadend.

Installed the plugin and after i let it do it's thing overnight (grabbing epg, fetching icons, sort channels etc) i got a play with it and noticed the following things.

 

- Channel numbers. My provider provides SD and HD channels, HD channels start from 1 and up SD channels are in the 900 series. For some reason Emby thinks he needs to renumber those SD channels to the same value as HD channels. So instead of having SD channels in the 900 range the all start from 1 as well. Why did Emby/or the plugin do this and why did it take the correct channel numbers from TVHeadend backend for others but not for those?

2IgG5Pl.png

 

- Missing EPG. EPG data is there in TVHeadend backend but is not displayed in EMby (see above image)

 

- Unknown Channels. Some channels are named Unknown but do have a name in TVHeadend backend.

8dVGsUq.png

Posted

What kind of tuner do you have?

Posted

@@schumi2004 Can please post the emby logs please?

Posted

I'm posting this here as I'm unsure if it's a TVH plugin issue or Emby. The problem started a few days ago when updated Emby but also the TVH plugin got updated).

The problem I have is that suddenly all the channels are out of order. The numbering is fine but the order is wrong since it's jumping from channel 1 to 3 (skipping 2), from 7 to 10 (skipping 8 and 9) and so on. It seems to be just a presentation issue since playback and everything else works just fine.

Nothing changed on TVH side, I double checked the channel numbering just in case but it's ok.

 

I'm attaching some screenshots that are self-explanatory if you need any other information just let me know:

 

5807c1bc167e3_Screenshotfrom201610192046

 

5807c22e87253_Screenshotfrom201610192047

 

Same can be observed in the guide:

 

5807c25302db8_Screenshotfrom201610192049

Posted

What kind of tuner do you have?

 

I have a HDHomerun HDHR3-4DC

 

@@schumi2004 Can please post the emby logs please?

I can upload logfiles but i need to re-enable tuners etc since i disabled it. The reason i disabled it was that i didn't got a LiveTV menu item when using LiveTV via Emby the same way you would get a menu item if you did it the "old" way using LiveTv in Kodi. (http://kodi.wiki/view/Live_TV)

In short, i didn't get the LiveTV and Radio item on the left as seen in screenshot here:

eqYCEPF.png

 

I will enable it this weekend and do some more testing since in the mean time Emby server en addon has been updated a few times now, maybe something has changed for my setup and will work better now.

Posted

Hello All,

 

Equipment:

 

HDHomerun UK (Two Tuners)

Emby (3.0.8300.0) Done it with previous version too.

TVHClient 1.0.6128.37305 for Emby

TVHeadend 4.0.9-5~g4749320~vivid

 

 

I have noticed a strange issue within emby relating to the guide via TVHeadend. I had Tvheadend getting the OTA guide data as it was simple to set up in the settings. I then added it to Emby, I could watch the channels, view the guide etc but the channel names do not appear in the guide, just the number which is not very useful. Clicking on it takes me to the channel page which displays its name. They all have their names on the channel view too.

This works fine within Kodi.

 

I then struggled but finally got XMLTV via Schedules Direct working with TVHeadend. All the icons got updated (some manually) and seemed to work. Kodi now displays the channel icons in the guide and Emby displays more information in terms of recommended movies etc.

However there is no channel icons or names within the guide. Channel icon do not appear anywhere in Emby.

 

I noticed within this thread that channel names appear and so do icons for other people. Is there something that I am missing?

 

Thanks!

 

580bcc0e53e41_EmbyTvguide.png

Posted

It's supposed to be showing the channel image, but the image request is probably failing @@Tolotos, might be related to the image format thing. You need to remove all use of GDI from the plugin.

Posted (edited)

Hi,

 

Thanks for the quick reply, how would I do that or was that aimed at Tolotos?

 

The channel URL is https if it makes a difference.

Edited by monotok
Posted

@@schumi2004, the Emby Kodi add-on only has very basic support for live TV through Emby, and does not integrate with Kodi's live TV features. You won't get those menu entries from just using the Emby add-on.

 

Most people use the TVHeadend/HDHomerun add-ons for Kodi and connect to the tuner directly. Recordings are still shared with Emby.

Posted

If you have an HD homerun i would strongly suggest using the built in features without the tv headend plugin. Were you aware though can do that?

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...