Jump to content

embyforkodi (next-gen) 6.X.X support


quickmic

Recommended Posts

Good morning,
I have running the latest 5.1.16 version and have no playback or sync Problems, all is fine. The tvtunes.nfos for series themes are also played without problems.

A nfo created by emby4kodi looks like this:
<tvtunes>
  <file>http://127.0.0.1:57578/audio/65090-e0af6ce35c697aa5bec934495f614224-stream-theme.mp3</file>
</tvtunes>

Link to comment
Share on other sites

quickmic

Yep, the issue was not related to tvtunes. Wherever they come from, whose invalid queries are captured in 5.1.17 and not forwarded to the player any longer.

I also have no sync issues. I'll wait for some logs to start a review.

Edited by quickmic
Link to comment
Share on other sites

quickmic

New Version available 5.1.17:

You can load from here, or wait till repo is synced.
http://embydata.com/downloads/addons/xbmb3c/multi-repo/beta-leia/plugin.video.emby-next-gen/plugin.video.emby-next-gen-5.1.17.zip


Fixes:
Playback issue fixed

 
New:
-


Known issues:
Multiserver not working
Dynamic lists slow/artwork
Special episodes play index -> Kodi seems to have a bug. Index is one increment off (too low)


General info:
-

 

@e2zippo Thanks for testing!

Link to comment
Share on other sites

TobyTentakel

Unfortunately, the full sync exited unexpectedly again. Here is the relevant part of the log file:

2021-02-16 15:02:09.674 T:1767334112  NOTICE: EMBY.core.music.Music -> UPDATE album [19308] City Hunter Sound Collection X - Theme Songs: 1477457
2021-02-16 15:02:09.854 T:1767334112  NOTICE: EMBY.core.music.Music -> UPDATE song [153779/19308/153779] 1497822: 熱くなれたら
2021-02-16 15:02:10.205 T:1767334112  NOTICE: EMBY.database.database -> [emby] 58495 rows updated.
2021-02-16 15:02:30.416 T:1767334112  NOTICE: EMBY.database.database -> [music] 425656 rows updated.
2021-02-16 16:50:22.533 T:1767334112  NOTICE: EMBY.sync -> ERROR:: full sync exited unexpectedly
2021-02-16 16:50:22.569 T:1767334112  NOTICE: EMBY.sync -> --<[ fullsync ]
2021-02-16 16:50:23.103 T:1767334112  NOTICE: EMBY.library.Library -> ERROR::
                                            Traceback (most recent call last):
                                              File "/home/osmc/.kodi/addons/plugin.video.emby-next-gen/database/library.py", line 421, in startup
                                                syncObj.libraries()
                                              File "/home/osmc/.kodi/addons/plugin.video.emby-next-gen/database/sync.py", line 78, in libraries
                                                self.start()
                                              File "/home/osmc/.kodi/addons/plugin.video.emby-next-gen/database/sync.py", line 154, in start
                                                self.process_library(library)
                                              File "/home/osmc/.kodi/addons/plugin.video.emby-next-gen/database/sync.py", line 188, in process_library
                                                library = self.server['api'].get_item(library_id.replace('Mixed:', ""))
                                              File "/home/osmc/.kodi/addons/plugin.video.emby-next-gen/emby/core/api.py", line 100, in get_item
                                                return self.users("/Items/%s" % item_id)
                                              File "/home/osmc/.kodi/addons/plugin.video.emby-next-gen/emby/core/api.py", line 52, in users
                                                return self._get("Users/{UserId}%s" % handler, params)
                                              File "/home/osmc/.kodi/addons/plugin.video.emby-next-gen/emby/core/api.py", line 23, in _get
                                                return self._http("GET", handler, {'params': params})
                                              File "/home/osmc/.kodi/addons/plugin.video.emby-next-gen/emby/core/api.py", line 20, in _http
                                                return self.client.request(request)
                                              File "/home/osmc/.kodi/addons/plugin.video.emby-next-gen/emby/core/http.py", line 109, in request
                                                raise emby.core.exceptions.HTTPException("ReadTimeout", error)
                                            HTTPException
2021-02-16 16:50:23.120 T:1767334112  NOTICE: EMBY.sync -> -->[ fullsync ]

Link to comment
Share on other sites

quickmic

This looks like a network issue, not a plugin issue 🙄

"raise emby.core.exceptions.HTTPException("ReadTimeout", error)"

Sounds like your server was not responding to a request. I see what I can do...

Edited by quickmic
Link to comment
Share on other sites

Hi. I have several HEVC HDR10 10 bits that not load the sound and then freezes after 5 seconds. Can't be played. It works fine before.

 

Thanks!

Complete name                            : Independence Day (1996).mkv
Format                                   : Matroska
Format version                           : Version 4
File size                                : 26.6 GiB
Duration                                 : 2 h 33 min
Overall bit rate mode                    : Variable
Overall bit rate                         : 24.8 Mb/s
Encoded date                             : UTC 2019-12-02 09:12:10
Writing application                      : mkvmerge v40.0.0 ('Old Town Road + Pony') 64-bit
Writing library                          : libebml v1.3.9 + libmatroska v1.5.2

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main 10@L5.1@High
HDR format                               : SMPTE ST 2086, HDR10 compatible
Codec ID                                 : V_MPEGH/ISO/HEVC
Duration                                 : 2 h 33 min
Bit rate                                 : 18.6 Mb/s
Width                                    : 1 920 pixels
Height                                   : 804 pixels
Display aspect ratio                     : 2.40:1
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) FPS
Color space                              : YUV
Chroma subsampling                       : 4:2:0 (Type 2)
Bit depth                                : 10 bits
Bits/(Pixel*Frame)                       : 0.504
Stream size                              : 20.0 GiB (75%)
Writing library                          : x265 3.0+1-ed72af837053:[Windows][GCC 8.2.0][64 bit] 10bit
Encoding settings                        : cpuid=1111039 / frame-threads=5 / numa-pools=36,36 / wpp / no-pmode / no-pme / no-psnr / no-ssim / log-level=2 / csv / csv-log-level=0 / input-csp=1 / input-res=1920x804 / interlace=0 / total-frames=220900 / level-idc=51 / high-tier=1 / uhd-bd=0 / ref=4 / no-allow-non-conformance / repeat-headers / annexb / aud / hrd / info / hash=0 / no-temporal-layers / no-open-gop / min-keyint=23 / keyint=250 / gop-lookahead=0 / bframes=12 / b-adapt=2 / b-pyramid / bframe-bias=0 / rc-lookahead=40 / lookahead-slices=4 / scenecut=40 / radl=0 / no-splice / no-intra-refresh / ctu=32 / min-cu-size=8 / no-rect / no-amp / max-tu-size=32 / tu-inter-depth=4 / tu-intra-depth=4 / limit-tu=4 / rdoq-level=2 / dynamic-rd=0.00 / no-ssim-rd / signhide / no-tskip / nr-intra=0 / nr-inter=0 / no-constrained-intra / strong-intra-smoothing / max-merge=4 / limit-refs=1 / limit-modes / me=2 / subme=7 / merange=48 / temporal-mvp / weightp / weightb / no-analyze-src-pics / deblock=-3:-3 / sao / no-sao-non-deblock / rd=3 / no-early-skip / rskip / no-fast-intra / no-tskip-fast / no-cu-lossless / b-intra / no-splitrd-skip / rdpenalty=0 / psy-rd=1.10 / psy-rdoq=1.00 / no-rd-refine / no-lossless / cbqpoffs=-2 / crqpoffs=-2 / rc=crf / crf=16.5 / qcomp=0.60 / qpstep=4 / stats-write=0 / stats-read=0 / vbv-maxrate=100000 / vbv-bufsize=100000 / vbv-init=0.9 / crf-max=0.0 / crf-min=0.0 / ipratio=1.20 / pbratio=1.10 / aq-mode=3 / aq-strength=0.80 / no-cutree / zone-count=0 / no-strict-cbr / qg-size=32 / no-rc-grain / qpmax=69 / qpmin=0 / no-const-vbv / sar=0 / overscan=0 / videoformat=5 / range=0 / colorprim=9 / transfer=16 / colormatrix=9 / chromaloc=1 / chromaloc-top=2 / chromaloc-bottom=2 / display-window=0 / master-display=G(13250,34500)B(7500,3000)R(34000,16000)WP(15635,16450)L(10000000,0) / max-cll=0,0 / min-luma=0 / max-luma=1023 / log2-max-poc-lsb=8 / vui-timing-info / vui-hrd-info / slices=2 / no-opt-qp-pps / no-opt-ref-list-length-pps / no-multi-pass-opt-rps / scenecut-bias=0.05 / no-opt-cu-delta-qp / no-aq-motion / hdr / hdr-opt / no-dhdr10-opt / no-idr-recovery-sei / analysis-reuse-level=5 / scale-factor=0 / refine-intra=0 / refine-inter=0 / refine-mv=0 / refine-ctu-distortion=0 / no-limit-sao / ctu-info=0 / no-lowpass-dct / refine-analysis-type=0 / copy-pic=1 / max-ausize-factor=1.0 / no-dynamic-refine / no-single-sei / no-hevc-aq / qp-adaptation-range=1.00
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.2020
Transfer characteristics                 : PQ
Matrix coefficients                      : BT.2020 non-constant
Mastering display color primaries        : Display P3
Mastering display luminance              : min: 0.0000 cd/m2, max: 1000 cd/m2

Audio
ID                                       : 2
Format                                   : DTS XLL
Format/Info                              : Digital Theater Systems
Commercial name                          : DTS-HD Master Audio
Codec ID                                 : A_DTS
Duration                                 : 2 h 33 min
Bit rate mode                            : Variable
Bit rate                                 : 6 139 kb/s
Channel(s)                               : 8 channels
Channel layout                           : C L R LFE Lb Rb Lss Rss
Sampling rate                            : 48.0 kHz
Frame rate                               : 93.750 FPS (512 SPF)
Bit depth                                : 24 bits
Compression mode                         : Lossless
Stream size                              : 6.59 GiB (25%)
Language                                 : English
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 3
Format                                   : PGS
Codec ID                                 : S_HDMV/PGS
Codec ID/Info                            : Picture based subtitle format used on BDs/HD-DVDs
Duration                                 : 2 h 32 min
Bit rate                                 : 33.3 kb/s
Count of elements                        : 3200
Stream size                              : 36.4 MiB (0%)
Language                                 : Spanish
Default                                  : No
Forced                                   : No

Menu
00:00:00.000                             : en:Opening Titles/July 2
00:02:43.872                             : en:Contact
00:05:01.467                             : en:At the White House
00:07:32.577                             : en:Approaching Earth
00:08:02.315                             : en:Chess Game
00:09:21.602                             : en:Compact Cable Chaos
00:10:29.879                             : en:Imperial Valley, California
00:12:06.600                             : en:Deployment/Def Con 3
00:14:08.514                             : en:A Technical Kiss
00:14:56.729                             : en:Visual Range
00:18:56.969                             : en:The Code for Panic
00:25:33.114                             : en:Wake Up Call
00:27:23.725                             : en:Countdown to Extinction
00:30:10.808                             : en:Duty Calls
00:32:18.102                             : en:Get Out of Town
00:34:12.633                             : en:Trailer Camp Confrontation
00:36:39.405                             : en:Fighter Pilots Report
00:38:17.378                             : en:Strip Club
00:40:05.110                             : en:Nice Driving
00:41:02.167                             : en:Look Up the Number
00:41:33.449                             : en:Attempts to Communicate
00:44:15.611                             : en:The White House Legacy
00:44:37.925                             : en:The Clock Is Ticking
00:46:02.801                             : en:Communication Breakdown
00:48:48.008                             : en:Panic or Party
00:50:42.038                             : en:Time's Up
00:54:22.717                             : en:July 3
00:57:22.480                             : en:Battle Plans
00:58:05.148                             : en:First Attack
01:03:10.995                             : en:Two on Two
01:04:30.157                             : en:Canyon Chase
01:06:00.748                             : en:Welcome to Earth
01:06:52.967                             : en:Desert Rv Caravan
01:08:20.012                             : en:The Truth Is Out There
01:11:22.027                             : en:Urban Survivors
01:12:50.324                             : en:Do You Know the Way to Area 51?
01:14:38.140                             : en:Area 51
01:18:29.537                             : en:The Freak Show
01:21:19.207                             : en:Inside the Alien Attacker
01:23:04.729                             : en:Arriving with the Alien
01:25:59.779                             : en:In the Ruins of El Toro
01:27:49.680                             : en:Alien Surgery
01:35:25.260                             : en:Nuclear Attack
01:38:52.217                             : en:Rescue at El Toro
01:39:55.572                             : en:The First Lady's Death
01:42:51.790                             : en:July 4
01:49:33.233                             : en:Worldwide Plans
01:53:25.339                             : en:A Wedding
01:55:01.060                             : en:Independence Day
01:59:38.754                             : en:Using the Alien Attacker
02:04:03.394                             : en:Into the Mother Ship
02:07:41.403                             : en:Engage the Enemy
02:10:50.675                             : en:Adversity Makes Strange Bedfellows
02:11:52.612                             : en:Time for a Hero
02:17:21.316                             : en:Execute 'Jolly Roger'
02:21:17.343                             : en:Victory
02:24:48.679                             : en:Credits

 

Link to comment
Share on other sites

TobyTentakel
3 hours ago, quickmic said:

This looks like a network issue, not a plugin issue 🙄

"raise emby.core.exceptions.HTTPException("ReadTimeout", error)"

Sounds like your server was not responding to a request. I see what I can do...

Mmh, strange, but the server often has periods where it is slow to respond when it updates its metadata, so maybe that was it.

Playing a file while the sync is still in progress will also cause the sync to abort/exit, by the way.

Edited by TobyTentakel
Link to comment
Share on other sites

quickmic

@RiggsWhat do you mean with "It works fine before." ?

If you play native or as addon without transcoding, then your device seems not capable to play them. If this is the case, you must transcode the hevc videos.

Edited by quickmic
Link to comment
Share on other sites

quickmic
1 minute ago, TobyTentakel said:

Mmh, strange, but the server often has periods where it is slow to respond when it updates its metadata, so maybe that was it.

Playing a file while the sync is still in progress will also cause the ync to abort/exit, by the way.

I checked the code, the timeout issue you reported appears, after 5 retries. I could increase it, but I think this will not fix the core issue.

Link to comment
Share on other sites

TobyTentakel
4 minutes ago, quickmic said:

I checked the code, the timeout issue you reported appears, after 5 retries. I could increase it, but I think this will not fix the core issue.

Here is the case where playing a file causes abort of the sync:

2021-02-16 19:10:57.946 T:1457516768  NOTICE: EMBY.core.music.Music -> ADD song [172464/21585/172464] 1244807: Penultimate (Turrican 3)
2021-02-16 19:10:58.047 T:1457516768  NOTICE: EMBY.core.music.Music -> ADD song [172465/21585/172465] 1244808: The Machine (Turrican 3)
2021-02-16 19:10:58.149 T:1457516768  NOTICE: EMBY.core.music.Music -> ADD song [172466/21585/172466] 1244809: Credits (Turrican 3)
2021-02-16 19:10:58.273 T:1186185440  NOTICE: Creating InputStream
2021-02-16 19:10:58.351 T:1691812064  NOTICE: EMBY.hooks.player.Player -> [ onPlayBackStarted ]
2021-02-16 19:10:58.444 T:1457516768  NOTICE: EMBY.core.music.Music -> ADD song [172467/21585/172467] 1244810: Hall of Heroes (Turrican 3)
2021-02-16 19:10:58.516 T:1457516768  NOTICE: EMBY.helper.wrapper -> Stopping db writing!
2021-02-16 19:10:58.525 T:1457516768  NOTICE: EMBY.database.database -> ERROR:: type: <class 'helper.exceptions.LibraryException'> value:
2021-02-16 19:10:58.533 T:1457516768  NOTICE: EMBY.database.database -> [emby] 10978 rows updated.
2021-02-16 19:11:03.467 T:1186185440  NOTICE: Creating Demuxer
2021-02-16 19:11:03.621 T:1106841824   ERROR: /home/osmc/.kodi/addons/script.module.urllib3/lib/urllib3/connectionpool.py:1004: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
                                              InsecureRequestWarning,
2021-02-16 19:11:16.825 T:1186185440   ERROR: Previous line repeats 1 times.
2021-02-16 19:11:16.825 T:1186185440  NOTICE: Opening stream: 0 source: 256
2021-02-16 19:11:16.825 T:1186185440  NOTICE: Creating video codec with codec id: 27
2021-02-16 19:11:16.838 T:1186185440  NOTICE: Creating video thread

Link to comment
Share on other sites

quickmic

The log seems to be ok, but I'll check playback while sync. Maybe there is an issue. The ssl error shouldn't be a showstopper.

Edited by quickmic
Link to comment
Share on other sites

TobyTentakel
23 minutes ago, quickmic said:

The log seems to be ok, but I'll check playback while sync. Maybe there is an issue. The ssl error shouldn't be a showstopper.

This line is ok as well?

EMBY.database.database -> ERROR:: type: <class 'helper.exceptions.LibraryException'> value:

Link to comment
Share on other sites

quickmic

yes, e4k uses "exceptions" to report regular status updates.

I try to replace all of them, but this will take some time.

In this case, exceptions are used to report a sync pause.

Edited by quickmic
Link to comment
Share on other sites

jaybird2203

@quickmic I'd love to get you logs but upon boot my setup pulled 5.1.17 and immediately began to sync. Wasn't expecting a turnaround so quickly! Greatly appreciate what you do.

 

I can play files without issue, music/movies/shows all work.

I'll check my library for any HEVC/H265 HDR 10bit files for playback as well and report back.

My 10bit HDR HEVC direct play just fine as well.

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

14 hours ago, quickmic said:

@RiggsWhat do you mean with "It works fine before." ?

If you play native or as addon without transcoding, then your device seems not capable to play them. If this is the case, you must transcode the hevc videos.

Hi,

Yes, it plays fine on Emby, Plex, etc. I can direct play, In fact I only use direct play for all my content for long time now.

Kodi was working fine, just suddenly do not play nothing anymore.--- Start for 5 ~8 seconds, with no sound and then freeze.

I double check all Kodi settings and is okey. I do not change nothing.

My device is  Nvidia Shield 2017. Wired in 1GB LAN.

I never had playback problems with Kodi , in fact I did a database repair just in case, the process went fine, no issues,  but did not work for solved the playback. 

Maybe re-install Kodi?

How I can get the logs from the Shield to help you?

Link to comment
Share on other sites

BTW I do my own movie encodes--   :)

Encoded date                             : UTC 2019-12-02 09:12:10

 Not all my movies are encoded, in fact almost all my content is ripped

 

Link to comment
Share on other sites

quickmic

In addon/direct play mode, the url query is directly piped (redirected) to the Emby-Server.

There is absolute no stream manipulations from addon side. If it used to work in the past, it sounds like a Kodi issue. Have you recently updated Kodi?

 

Link to comment
Share on other sites

Centory

Hi, is it possible get get back the option when i make a database reset, do NOT delete all the thumbnails?

edit:

And also an option to change the user/profile.

Edited by Centory
Link to comment
Share on other sites

quickmic
7 hours ago, Centory said:

...a database reset, do NOT delete all the thumbnails?

Yes, I can add this option.

Quote

And also an option to change the user/profile.

Change Emby server user?

 

@All

I'm working on a new version, but I'll not publish it in next two weeks. 5.1.17 seems quite stable.

I leave it in beta repo for at least another week for further tests. If no critical issues reported, I'll push it to stable repo.

Link to comment
Share on other sites

Centory
5 hours ago, quickmic said:

Change Emby server user?

 

Yes, this would be nice and thanks for all your work.

 

Greetings from Graz!

  • Like 1
Link to comment
Share on other sites

3 minutes ago, jh30uk said:

Kodi 19 is now Final, so this will replace the Emby for Kodi and EmbyCon?

No, just Emby for Kodi.

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