kodi 21.0 - Why adding videos from nfo' is slower for movies than for tvshows
#1
I'm posting here because I didn't find the section for "metadata.local". If a moderator reads me could he move it to the right section. Thank you.

I made a comparison of elapsed time for adding 71 movies and 44 tvshows containing 453 episodes.
Each video is in its folder.
Image

tvshow:
Image


for the 71 movies the scrape took 13 minutes and 12 seconds for the analysis and caching of 2530 images.
for the 44 tvshows  and 453 episodes the scrape took 14 minutes for the analysis and caching of 4046 images.

So why adding videos from nfo' is slower for movies than for tvshows.
Thanks for reading.
Reply
#2
(2024-05-16, 14:30)roby69 Wrote: So why adding videos from nfo' is slower for movies than for tvshows.
Key here is that they did get added! You don't need to update this information all the time, and of course when scanning 'depending on scraper and Internet connection' there is that comparison to be made. suggest when re-scanning you have exported the .nfo; use a local information only scraper; and then you'll be assured that the only delays will be accessing locals (drive or network). While new entries can scrape with the video in focus and using the keyboard 'I' after you have assigned the scraper of your choice. 

Side note: you can scrape one source at a time instead of a global effort.
Reply
#3
(2024-05-16, 14:30)roby69 Wrote: for the 71 movies the scrape took 13 minutes and 12 seconds for the analysis and caching of 2530 images.
for the 44 tvshows  and 453 episodes the scrape took 14 minutes for the analysis and caching of 4046 images.
Have a read of my post here, and the surrounding conversation... https://forum.kodi.tv/showthread.php?tid...pid3196441
It is basically the same as your question.

In my library, 671 movies takes 3min 58sec. Approx 6,000 episodes takes a little under 20 minutes.

A Debug Log of your scanning will certainly help.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#4
Thank you for your answers.
the link for the debug log:mefusexomi (paste)

if you need a complete log, let me know and I will post it tomorrow.
Reply
#5
Looking at your log, seems like most of the time is for caching image files, in particular actor thumbs.

scott s.
.
Reply
#6
Good morning,
I redid the complete test with Kodi in minimal configuration.
Image
test 1:
I added 4 movies according to the following tree:
Image
the time for scanning and caching the images took 39076 ms or 39.076 seconds.
either: 4 nfo's ; 227 local images actors; 5 saga artworks; 20 movies artworks ==> total 252 images and artworks
complete log for these 4 movies : log movies

test 2:
I added 1 tvshow with 4 episodes according to the following tree:
Image
the time for scanning and caching the images took about 12 seconds.
either: 5 nfo's ; 14 local images tvshow actors;  64 remote images episodes actors; 4 tvshow artworks; 4 episodes thumbs ==> total 83 images and artworks
complete log for the tvshow :log tvshow

So I was wrong, the movie scan time is similar to the TVshow scan time given the cached images and artwork.
I'm sorry for wasting your time, next time I'll analyze the puzzle better.
Sincerely
Reply
#7
by rereading the movie log I realize that metadata.themoviedb.org.python is used several times in the scanning process just before obtaining the nfo.
In episode scanning no adon is used.
Perhaps a path to follow to reduce a few seconds!
Reply
#8
Host CPU: Intel® Core™ i5-2500K CPU @ 3.30GHz, 4 cores available
I reckon this is your problem. A second gen i5 cpu from 13 years ago. It is struggling to process the images for cache.

The first movie has almost 130 pieces of artwork to process.

The reason tv show is faster is that it has less artwork, and episodes only have a single piece of unique artwork, the rest is inherited from the tv show.

This shows the available artwork settings for caching... https://kodi.wiki/view/Advancedsettings....ry_artwork
I am not really sure what to recommend. With your slow hardware, sure the caching is a problem, but so will be the display of those images, especially when you are using a poster wall type display with dozens of images to be rendered.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#9
I forgot some important information kodi was installed on an HDD.
Moving kodi to an SSD the total time took 6 seconds !!! Blush
log : log movies
Reply
#10
Yep, that is a lot faster.
So it was the slower magnetic HDD that was the problem.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#11
Old 4800 rpm drive?  I remember BITD (think intel Core 2 quad) getting a "raptor" 10k drive was the hot ticket.

scott s.
.
Reply
#12
(2024-05-17, 11:01)roby69 Wrote: the time for scanning and caching the images took about 12 seconds.
either: 5 nfo's ; 14 local images tvshow actors;  64 remote images episodes actors; 4 tvshow artworks; 4 episodes thumbs ==> total 83 images and artworks
Hi,
I did a new test without network for the tvshow, only the 14 local tvshow actors images are cached.
Shouldn't the scrapper add all the local images as is the case for films, with or without an available network?
This will reduce API calls for tmdb.org and will be consistent with the movie scrapper.
Reply

Logout Mark Read Team Forum Stats Members Help
kodi 21.0 - Why adding videos from nfo' is slower for movies than for tvshows0