-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
plex stats and analyze and analyze deeply #11
Comments
What does the analyze log say, can you get one id and try to analyze it manually. |
Unless I'm missing something there is no log output for the plex-analyze.cli or analyzedeeply.cli scripts? |
Also, I'm running this every 2 hours with the following cronjob. The files missing analyzation info are not declining. I'm running on Ubuntu and the default paths in the script are correct. Any ideas? I also hit you up on discord. 0 0,2,4,6,8,10,12,14,16,18,20,22 * * * /home/plex/scripts/plex-analyze.cli >/dev/null 2>$1 |
Just to be clear is this telling plex to analyze files during the next scheduled maintenance window? |
I've found the analyze curl to run a lot faster than the cli one. I guess YMMV though. It enumerates a list of everything that has to be analyzed and then analyzes it. The "-a" says to analyze it and the "-o" is the item to analyze. Try running it via a shell as your cron command would not provide any output as you are dropping all the output into /dev/null. I get something like this when I run the curl item and I can see the analyze count down:
I did about 1000 over night in about an 6-7 hour window. |
I have the same issue where it looks at show three times. It led me to believe my database was corrupt so I completely reinstalled Plex. This first time I run the script it analyzes each file once, but upon future scans it does each one three times and the count for media analyzed never declines. |
I'm not sure what you mean, mine definitely is analyzing and the numbers are declining.
after a few minutes
You should remove your cronjob until you get completely caught up and then you can schedule it via cron as you'll only have a few to analyze. I would guess you are running multiple copies over and over again which may be problematic. |
I have removed it from cron. I'll post some details here later. My output looks similar to yours, but the count doesn't decline. If you let the script complete, is your count 0 at the end of files missing analyzation? |
It takes quite some time to analyze 4-5k files on ACD. I won't hit 0 until tomorrow probably. You can see the count drop. I'd suggest just using the curl instead and drop your plex token in there. Seems much faster. |
I think I understand your question a bit better now. I let the analyze run for some time and it seems to have finished, but I have this left after I rerun it:
I pulled up one of the IDs that seemed to show up as not having a bitrate: http://i.imgur.com/VUOKzLO.png I can't figure out how to tie that back to an actual file or show though. @ajkis - any thoughts as I think that is probably @deliverer33 's question as well. |
@animosity22 exactly you got it! This it the problem I'm having. I'm running deep analyze now to see if it has the same issue, but it might take several days to complete. |
I'm seeing a similar issue as @deliverer33 and @animosity22 using analyze. Analyze deeply seems to be lowering the count when i check plex stats |
This is because it is trying to analyze an "extra" not an actual file. |
Have a look at my pull request above. This should fix your issue. |
@hjone72 thanks. I'm testing now. Does the plex analyzedeeply.cli need to be updated as well to fix this? I'm currently running it, but it's going to take a few more days. Can you run this and analyze deeply at same time? |
I haven't had a look at deeply yet. Give me a half hour. Making a few changes to the scripts. I'll post them shortly. |
@hjone72 can I run both analyze scripts at same time? Anyone know? |
Deep and normal? I wouldn't suggest it but nothing is stopping you. To be honest I don't think deep analysis has many benefits. |
Fix for ajkis#11
What's is metadata type 12? Is that non video stuff? |
It is the extras that Plex pulls for your movies and tv shows. |
So the library stats would be fixed with
I ran that and it removes all the extra items. Nice find! |
Sorry, I haven't looked at those statistics scripts. |
@hjone72 I tested your new changes. It runs super fast. But I ran it twice and nothing changes? plex@media ~/scripts $ ./plex-analyze.cli.py plex@media ~/scripts $ ./plex-analyze.cli.py |
@deliverer33, Could you have a look at some of those items and tell me what they are? for reference this is what the output should look like.
|
@hjone72 Here are two examples, ID12 and ID408 ID12 ID408
|
@hjone72 for the reanalyeItem.sh script I didn't change anything. All my directories are the default as the scripts reference and I'm running Ubuntu 16.04. Was I supposed to change anything in this script? |
@deliverer33, Just reading through the above info now. You shouldn't have to change anything in |
@deliverer33, Could you please confirm that when you press play on one of the affected files your player If they do... |
@hjone72 when I attempted to play the two examples, Plex said they could not play them. I then clicked Analyze on both of them. After they were analyzed, they played fine. I then ran the script again, and they were no longer on it. here is the complete output of the script. To me it's like it's identifying what needs to be analyzed, but not taking the next step. There are 34 files that need to be analyzed. |
@deliverer33, Ahhh! I think I found the issue. Make the changes from this commit bd559c8 |
@deliverer33, what is wrong with the library stats? Is it this issue here #11 (comment)? |
@hjone72 exactly. I took a chance and just guessed where that fix should go and now it displays 0 when ran. I'm ok with linux, but not a guru by any means. |
@deliverer33 I'm not really sure what the point of the library stats is and I'm not running this script myself. Have a go with these changes. hjone72@323cce4 |
I've been using plex stats to see I have media missing analysis information. Even after I run both analyze scripts, it shows the same amount of objects missing data. Am I doing something wrong? Do I need to shutdown plex first before running?
5127 files in library
1141 files missing analyzation info
0 media_parts marked as deleted
0 metadata_items marked as deleted
0 directories marked as deleted
1365 files missing deep analyzation info.
The text was updated successfully, but these errors were encountered: