NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Kodi / XBMC v
« Previous 1 … 5 6 7 8 9 … 43 Next »
"Include filesize with recordings" Creates Delays

 
  • 0 Vote(s) - 0 Average
"Include filesize with recordings" Creates Delays
PRBUK
Offline

Junior Member

Posts: 38
Threads: 7
Joined: Jan 2018
#1
2021-08-27, 09:40 AM
I have around 1,000 recordings spread over many Windows Media Centre PCs whose directories are shared over a local Gigabit speed network.  I have added these (with the network filename) to the SCHEDULED_RECORDINGS table of Npvr.db3.  They all show and play correctly in the Kodi TV Recordings folder.

If I activate the "Include filesize with recordings" Kodi Npvr add-on option, Kodi pauses during start up at 75% "Loading Recordings from Clients" and generates significant network activity to every Media Centre device.  This can take some time (1-2 minutes) after which the EPG update is performed and Kodi startup is complete.

If I delete a recording from the recordings list, I get the 'rotating circles' for some time before the list is redisplayed without the now deleted recording.  I am 'guessing' that this is while all recordings are once again rescanned.

If I disable "Include filesize with recordings", both the delay at startup and after deletion disappears.

I would expect Kodi to only scan new recordings (existing recordings will not change size).

I turned on Kodi debug logging, along with component specific logging for SMB, libcURL, JSON-RPC, Video and PVR components.  I am not seeing any log entries to indicate hundreds of files being checked at startup/deletion.  I am seeing a constant stream of messages "DEBUG <general>: PVR::CPVRRecordings::UpdateInProgressSize: Updating recordings size" whilst Kodi is open and running.

I have turned off the option to include filesizes and everything is working fine - so this posting is more flagging the issue in case there is something I have missed.

Running the latest version of everything (Kod 19.1 / Npvr 5.1.4.210802)

I would appreciate your thoughts!
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,458
Threads: 963
Joined: May 2006
#2
2021-08-27, 01:23 PM
It is not the default for a reason and you have close to the worst case scenario with multiple drives and likely shares that need to be opened up. It could be worse if you were multi-user.

Unfortunately sub didn't want to add the file size to the scheduled_recording table so this is a brute force operation each time the recording_list is opened. For Matrix I did try and reduce the number of times it is called but it really should be used with a limited number of recordings and one storage drive.

Because those in progress recording updates your are seeing are so spammy I choose not to try and report back a growing file size. I considered it going to the file system every 1.5 seconds seems overkill.

Martin
PRBUK
Offline

Junior Member

Posts: 38
Threads: 7
Joined: Jan 2018
#3
2021-08-27, 02:58 PM
Thanks for the explanation  - makes sense!  Presumably there is no option to store the data within a local Kodi database as an alternative? 

I had reset back to the default in any event, once I had figured out what was causing the issue!

Could you also please explain the purpose/values and performance implications for the two Chunk Size parameters (they are at their defaults!).  What is gained/lost by increasing/decreasing?

Great Add-On - Npvr and Kodi are a great replacement for Media Centre based on a few months of testing/development!
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,458
Threads: 963
Joined: May 2006
#4
2021-08-27, 03:09 PM
For the chunk size if it works leave them be. Based on comments on the Kodi forum specific cases require tuning but I leave it to users to investigate based on their seutp.

PVR recordings aren't stored in Kodi, unless they are played. Unless sub rethinks this there is no real solution. File size for me is typically not very important except when it and that is on bad or truncated recordings so I too would like to see it but I leave it off for now.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,953
Threads: 770
Joined: Nov 2003
#5
2021-08-27, 06:28 PM
Unfortunately NextPVR doesn't know the recording sizes, and it's time consuming to look it up, so not straight forward to supply this info to Kodi.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,458
Threads: 963
Joined: May 2006
#6
2021-08-27, 06:34 PM
When I requested this change I asked for a row to be added to be populated at the end of the recording. I believe file size is already calculated since there is the zero size warning. Additionally I was asked to recalculated the duration since because of errors it is not always clock time. Since then you have added the duration check for VOD so I know it is possible.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,953
Threads: 770
Joined: Nov 2003
#7
2021-08-27, 07:55 PM
(2021-08-27, 06:34 PM)mvallevand Wrote: When I requested this change I asked for a row to be added to be populated at the end of the recording. 
Yeah, I got that. It was all the existing databases and recordings out there that were putting me off doing it.

I've implemented something like this for the next build though.
mvallevand
Offline

Posting Freak

Ontario Canada
Posts: 53,458
Threads: 963
Joined: May 2006
#8
2021-08-27, 08:06 PM
I understand it is a bit of work (why I asked in early beta) and is low priority. Now I guess we need it in recording.list XML for Kodi (Emby doesn't need it for JSON) plus the file based meta xml the recordings export and import XML

I will update my NextImport utility (now called NextTool) to populate the file sizes assuming I can use the ScheduledRecording Save() method.

Martin
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,953
Threads: 770
Joined: Nov 2003
#9
2021-08-27, 08:15 PM
(2021-08-27, 08:06 PM)mvallevand Wrote: Now I guess we need it in recording.list XML for Kodi  (Emby doesn't need it for JSON) plus the file based meta xml the recordings export and import XML
Yes, I've added it in all those places
PRBUK
Offline

Junior Member

Posts: 38
Threads: 7
Joined: Jan 2018
#10
2021-08-28, 11:57 AM
(2021-08-27, 03:09 PM)mvallevand Wrote: For the chunk size if it works leave them be.  Based on comments on the Kodi forum specific cases require tuning but I leave it to users to investigate based on their seutp.

Could you please describe what the settings are?  Is it a 'block' of data - so that Kodi requires 64 blocks to be received from the server for live and 32 for a recording before attempting playback?  Are these therefore buffer sizes?  Why is live double that of recording?  I like to understand what something is before changing and to understand why changing a parameter may address a specific issue.

Thanks
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Recordings list empty Druhl 6 250 2025-08-07, 06:27 PM
Last Post: Druhl
  Import recordings from Humax FVP-5000T ceejayemm 2 1,089 2024-05-12, 07:44 AM
Last Post: ceejayemm
  Recordings Disappear and Reappear boukmandutty 8 1,491 2024-04-22, 01:38 PM
Last Post: boukmandutty
  Kodi Omega NextPVR Recordings short press context menu (More... item) mmortal03 5 1,499 2024-04-18, 11:19 PM
Last Post: mmortal03
Question Kodi 19.4 not seeing NextPVR v4 Recordings Aussie 3 1,548 2022-07-28, 02:37 PM
Last Post: mvallevand
  Kodi not playing older recordings bobster151 10 2,844 2022-06-28, 10:18 PM
Last Post: mvallevand
  When running Kodi, new recordings not showing up jorrenb 53 13,762 2022-05-18, 12:52 AM
Last Post: mvallevand
  Recordings with Schedules Direct data don't show title? Caesium 4 1,885 2022-02-20, 09:48 PM
Last Post: mvallevand
  Unable to schedule recordings from Kodi Migue 7 2,536 2021-07-28, 01:20 PM
Last Post: mvallevand
  Recordings not playing in Kodi 19.1 ceejayemm 7 2,832 2021-06-18, 08:58 AM
Last Post: ceejayemm

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode