Suggestions regarding media index file creation

I have a couple of suggestions for the creation of the media index file.

 

As mentioned on the feature announcement enabling the media index file creation can make low powered systems cry :) I have a dual core HP microserver acting as my media server and it certainly weeps a little. After I kick off a scan of a bunch of new media files I renice the scan process and transcoder process to nice level 20. It still completed eventually but not at the expense of killing media streaming.

 

Could we have the scanner run at nice 20 by default?

 

Second - I have a whole bunch of media already in my library. The media index creation only gets kicked off when the media is added. Could we get a button in Plex/Web to mark a series as requiring a media index file creation on the next scan?

 

 

Second - I have a whole bunch of media already in my library. The media index creation only gets kicked off when the media is added. Could we get a button in Plex/Web to mark a series as requiring a media index file creation on the next scan?

when you enable "generate indexes", any media in the library already can have the indexes generated by analysing it. There are existing options to do that at the episode, movie, show, section and library level.

There are existing options to do that at the episode, movie, show, section and library level.

http://wiki.plexapp.com/index.php/PlexNine_AdvancedInfo#Terminal_Commands

/Tommy

when you enable "generate indexes", any media in the library already can have the indexes generated by analysing it. There are existing options to do that at the episode, movie, show, section and library level.

Thanks for the tip. Anyway to get the process priority reniced automatically?

These dont seem to work for me. I can't even list the sections...


[root@medianas plexmediaserver]# pms
Plex Media Scanner (c) 2010, 2011 Plex Development Team.

  -h, --help           Display this message.
  -v, --verbose        Show more output.
  -p, --progress       Show special progress output.

 Actions:

  -r, --refresh        Refresh the metadata.
  -a, --analyze        Analyze media information.
  -b, --index          Generate a media index file.
  -s, --scan           Scan for new media.
  -i, --info           Get information.
  -l, --list           List.
  -g, --generate       Regenerate thumbnails/fanart.
  -t, --tree           Show a section tree.
  -w, --reset          Delete all media out of a section.
  -n, --add-section --type --location      Add a new section.
  -D, --del-section    Delete a section.

 Items to which actions apply:

  -c, --section        A library section ID.
  -o, --item           An item ID.
  -d, --directory      A directory path.
  -f, --file           A file.

 Modifiers to actions:

  -x, --force          Force an operation (e.g. refresh).
  -e, --deep           Perform a deep scan.
  --no-thumbs          Do not regenerate thumbs when analyzing.
  --thumbOffset Percent offset into video for thumbnail image generated during media analysis.
  --artOffset Percent offset into video for fanart image generated during media analysis.

[root@medianas plexmediaserver]# pms --list
[root@medianas plexmediaserver]#

These dont seem to work for me. I can't even list the sections...

looks like you are on linux, you need to setup the right user environment stuff first...

sudo su - plex -c "export LD_LIBRARY_PATH="/usr/lib/plexmediaserver";/usr/lib/plexmediaserver/Plex\ Media\ Scanner --scan --refresh"

etc etc

You also have...

ionice --class=3 

...that makes the command to do I/O only when I/O is idle.

Early 2021 clean-up: implemented/answered