b0mb 35 Posted February 2, 2023 Share Posted February 2, 2023 Hi, recently i´ve switched from Emby Addon to Embycon on Kodi because of its ease.mbn Is it possible to get Chapter Thumbs that Emby already extracted working with Kodi Skins? Thx in advance! BR b0mb Link to comment Share on other sites More sharing options...
TeamB 2354 Posted February 3, 2023 Share Posted February 3, 2023 On 2/2/2023 at 5:42 PM, b0mb said: Hi, recently i´ve switched from Emby Addon to Embycon on Kodi because of its ease.mbn Is it possible to get Chapter Thumbs that Emby already extracted working with Kodi Skins? Thx in advance! BR b0mb do you mean bookmarks in kodi? Link to comment Share on other sites More sharing options...
b0mb 35 Posted February 3, 2023 Author Share Posted February 3, 2023 yep! would be great if those would sync because as long as i don´t set a bookmark myself the booksmarks are equal to the chapter points Link to comment Share on other sites More sharing options...
TeamB 2354 Posted February 3, 2023 Share Posted February 3, 2023 Unfortunately there is no easy way to set bookmarks via add-ons in Kodi, there is no API for it. The only way I know of doing it is to add the emby chapters to the Kodi DB as bookmark items when you start the playback of an item. I am very reluctant to do this as you end up having to alter the DB directly like the Emby Next Gen add-on does and directly interface with the Kodi Sqlite DB file. This is not something I want to be doing, the whole reason EmbyCon exists is to use the default Kodi add-on api and not have to sync anything to the Kodi DB directly. So, short answer, no, sorry. Link to comment Share on other sites More sharing options...
b0mb 35 Posted February 3, 2023 Author Share Posted February 3, 2023 (edited) oki.... it was just a question i still like embycon ! Edited February 3, 2023 by b0mb Link to comment Share on other sites More sharing options...
quickmic 1352 Posted February 6, 2023 Share Posted February 6, 2023 (edited) On 2/3/2023 at 12:44 PM, TeamB said: Unfortunately there is no easy way to set bookmarks via add-ons in Kodi, there is no API for it. The only way I know of doing it is to add the emby chapters to the Kodi DB as bookmark items when you start the playback of an item. I am very reluctant to do this as you end up having to alter the DB directly like the Emby Next Gen add-on does and directly interface with the Kodi Sqlite DB file. This is not something I want to be doing, the whole reason EmbyCon exists is to use the default Kodi add-on api and not have to sync anything to the Kodi DB directly. So, short answer, no, sorry. This is not the whole story. Bookmarks are not same as embedded chapters in the video feed. Bookmarks are not possible without database sync, correct, but embedded chapters (images/thumbs) are blocked by Kodi (for http streams, no idea why), however. I found a workaround and I think embycon could use it too by faking local content. advancedsettings.xml: <pathsubstitution> <substitute> <from>/emby_addon_mode/</from> <to>http://127.0.0.1:57342/</to> </substitute> </pathsubstitution> Maybe you @TeamB could use this approach too. Replacing the (emby server) tld with /emby_addon_mode/ in the plugin paths. Be aware this can cause playback issue for some clients, I only use this workaround as an option. Edited February 6, 2023 by quickmic Link to comment Share on other sites More sharing options...
b0mb 35 Posted February 6, 2023 Author Share Posted February 6, 2023 @quickmic muss ich den "from" pfad genauso übernehmen, wie Du es geschrieben hast? dann scheint es nicht zu funktionieren.... Link to comment Share on other sites More sharing options...
quickmic 1352 Posted February 6, 2023 Share Posted February 6, 2023 3 minutes ago, b0mb said: @quickmic muss ich den "from" pfad genauso übernehmen, wie Du es geschrieben hast? dann scheint es nicht zu funktionieren.... Das geht auch nicht ohne modifikationen am embycon plugin. TeamB muesste da ein paar kleine Aenderungen durchfuehren. Link to comment Share on other sites More sharing options...
b0mb 35 Posted February 6, 2023 Author Share Posted February 6, 2023 dann wollen wir mal abwarten Link to comment Share on other sites More sharing options...
TeamB 2354 Posted February 6, 2023 Share Posted February 6, 2023 1 hour ago, quickmic said: This is not the whole story. Bookmarks are not same as embedded chapters in the video feed. i am just trying to digest this line a little. i know what kodi bookmarks are, you can access them when a video is playing back using the bookmark interface in the osd menu. are embedded chapters the chapter markers in the actual media file? i know kodi can show embedded chapters in the time line of the osd when you playback a direct stream file from emby. are you saying there is a way of showing images for them? Link to comment Share on other sites More sharing options...
TeamB 2354 Posted February 7, 2023 Share Posted February 7, 2023 I had a quick look at this and from what I can tell. - yes Kodi will populate the OSD bookmarks dialog of a playing item with the embeded chapters from the playing item (direct stream only) - as stated above it tries to create the images (extract them) but since EmbyCon uses streaming then it has nowhere to "save" them - the dialog that displays the bookmarks layout skin file is VideoOSDBookmarks.xml this might be something that can be used The drawback with using the path substitute approach is that it only works for embedded chapters. While this might be good enough for some it will still cause confusion. Another approach may be to edit the skin file VideoOSDBookmarks.xml and have a custom content URL like the people list in the VideoInfo dialog uses in the EmbyCon skin. Need some experimentation. Link to comment Share on other sites More sharing options...
quickmic 1352 Posted February 7, 2023 Share Posted February 7, 2023 (edited) 4 hours ago, TeamB said: i am just trying to digest this line a little. i know what kodi bookmarks are, you can access them when a video is playing back using the bookmark interface in the osd menu. are embedded chapters the chapter markers in the actual media file? i know kodi can show embedded chapters in the time line of the osd when you playback a direct stream file from emby. are you saying there is a way of showing images for them? Yes exactly. Kodi extracts the chapter thumbs directly from the stream and not from database records. You can see what Kodi is doing by opening a local file with chapter markers (Kodi debug mode enabled and clear Kodi thumbnail cache files) and review the ffmpegs. The only reason why Kodi is not extracting thumbs from a URL is due to Kodi's internal blocking mechanism (reviewed by Kodi's source). There is NO technical reason, why Kodi/ffmpeg could not extract the images from URLs too. Ergo, Kodi needs to be tricked believing it's not a http source. Edited February 7, 2023 by quickmic Link to comment Share on other sites More sharing options...
TeamB 2354 Posted February 7, 2023 Share Posted February 7, 2023 36 minutes ago, quickmic said: Yes exactly. Kodi extracts the chapter thumbs directly from the stream and not from database records. You can see what Kodi is doing by opening a local file with chapter markers (Kodi debug mode enabled and clear Kodi thumbnail cache files) and review the ffmpegs. The only reason why Kodi is not extracting thumbs from a URL is due to Kodi's internal blocking mechanism (reviewed by Kodi's source). There is NO technical reason, why Kodi/ffmpeg could not extract the images from URLs too. Ergo, Kodi needs to be tricked believing it's not a http source. I think the reason it does not extract from streaming play items is it does not know where to save the images Link to comment Share on other sites More sharing options...
TeamB 2354 Posted February 7, 2023 Share Posted February 7, 2023 well its not saving the thumbs locally in the media folder, it is saving them directly to the Thumbnails location 'special://masterprofile/Thumbnails/0/0a8d083c.jpg' so it could extract from streams if it really wanted to. could be performance reasons, you probably dont want a bunch of offset requests going out to the streaming service just to grab future chapter images, especially if it is trans-coding. 1 Link to comment Share on other sites More sharing options...
quickmic 1352 Posted February 7, 2023 Share Posted February 7, 2023 11 minutes ago, TeamB said: I think the reason it does not extract from streaming play items is it does not know where to save the images No, as mentioned there is no technical reason why not extracting thumbs from URLs too. Kodi's native chapter image extraction also doesn't save the artworks next to the content file. It only caches images in userdata/Thumbnails and Texture.db (as all image files). Don't think this is all theory, I use this approach in 8.X and works nicely. Link to comment Share on other sites More sharing options...
TeamB 2354 Posted February 8, 2023 Share Posted February 8, 2023 @b0mb I think I found a good work around for this, I added a custom dialog to show Emby server chapters when you are playing back using EmbyCon I have added this to the latest Kodi 19 Beta v1.10.29 Now when you are playing an item using EmbyCon and bring up the Kodi bookmark dialog using the OSD bookmark icon you should see the actual chapters from the Emby server. This requires you to actually have chapters for the item in Emby so check that for the item in the web Emby interface. If you have any issues please supply an EmbyCon debug log (EmbyCon add-on advanced settings) I have tried to keep the interface as close to the original Bookmarks dialog in Kodi as possible. Please let me know how it goes. Link to comment Share on other sites More sharing options...
b0mb 35 Posted February 8, 2023 Author Share Posted February 8, 2023 @teamB maybe there is some version mismatch.... i am using 1.11.5 on Kodi 20 Nexus Link to comment Share on other sites More sharing options...
TeamB 2354 Posted February 8, 2023 Share Posted February 8, 2023 hmm, ok I will get the changes into Kodi 20 as well Link to comment Share on other sites More sharing options...
TeamB 2354 Posted February 8, 2023 Share Posted February 8, 2023 14 minutes ago, b0mb said: @teamB maybe there is some version mismatch.... i am using 1.11.5 on Kodi 20 Nexus I have released this for Kodi 20 - EmbyCon Beta 1.11.6 This is in the beta repo only. Link to comment Share on other sites More sharing options...
b0mb 35 Posted February 8, 2023 Author Share Posted February 8, 2023 not perfectly integrated but looks quite good Link to comment Share on other sites More sharing options...
TeamB 2354 Posted February 8, 2023 Share Posted February 8, 2023 20 minutes ago, b0mb said: not perfectly integrated but looks quite good it should be a direct replacement for the built in Kodi one. what is the issue with the integration? was it not smooth or did it not show up correctly? Link to comment Share on other sites More sharing options...
b0mb 35 Posted February 8, 2023 Author Share Posted February 8, 2023 its shown very big in the middle of the screen ... hehe Link to comment Share on other sites More sharing options...
TeamB 2354 Posted February 8, 2023 Share Posted February 8, 2023 7 minutes ago, b0mb said: its shown very big in the middle of the screen ... hehe I am using the same dialog skin layout as the default skin, the idea was to make it as close to default as possible. Can you show me some screen shots of what your standard bookmark dialog looks like? Link to comment Share on other sites More sharing options...
b0mb 35 Posted February 8, 2023 Author Share Posted February 8, 2023 i´ll try later ... i am using Arctic Horizon 2 Skin btw. Link to comment Share on other sites More sharing options...
TeamB 2354 Posted February 8, 2023 Share Posted February 8, 2023 9 minutes ago, b0mb said: i´ll try later ... i am using Arctic Horizon 2 Skin btw. the scaling is a bit off, I think due to a resolution shift in the skin files I am using. I will re-scale everything and see how it looks. but I have no idea if it is even working for you, all I know is it is too big. Does it actually work? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now