Skip to content
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

Open
deliverer33 opened this issue Mar 29, 2017 · 34 comments
Open

plex stats and analyze and analyze deeply #11

deliverer33 opened this issue Mar 29, 2017 · 34 comments

Comments

@deliverer33
Copy link

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.

@ajkis
Copy link
Owner

ajkis commented Apr 10, 2017

What does the analyze log say, can you get one id and try to analyze it manually.

@deliverer33
Copy link
Author

Unless I'm missing something there is no log output for the plex-analyze.cli or analyzedeeply.cli scripts?

@deliverer33
Copy link
Author

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

@deliverer33
Copy link
Author

Just to be clear is this telling plex to analyze files during the next scheduled maintenance window?

@Animosity022
Copy link

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:

plex@plex:/home/plex/scripts/plex$ ./plex-analyze.curl
To analyze: 2609
4969
4969
4969
4970
4970

I did about 1000 over night in about an 6-7 hour window.

@deliverer33
Copy link
Author

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.

@Animosity022
Copy link

I'm not sure what you mean, mine definitely is analyzing and the numbers are declining.

18256 files in library
2593 files missing analyzation info

after a few minutes

18256 files in library
2581 files missing analyzation info

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.

@deliverer33
Copy link
Author

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?

@Animosity022
Copy link

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.
You should see in your plex activity log to:
http://i.imgur.com/A4Awdc3.png

I'd suggest just using the curl instead and drop your plex token in there. Seems much faster.

@Animosity022
Copy link

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:

18259 files in library
1977 files missing analyzation info

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.

@deliverer33
Copy link
Author

@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.

@sennico
Copy link

sennico commented Apr 20, 2017

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

@hjone72
Copy link
Contributor

hjone72 commented Apr 20, 2017

This is because it is trying to analyze an "extra" not an actual file.

@hjone72
Copy link
Contributor

hjone72 commented Apr 20, 2017

Have a look at my pull request above. This should fix your issue.

@deliverer33
Copy link
Author

deliverer33 commented Apr 20, 2017

@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?

@hjone72
Copy link
Contributor

hjone72 commented Apr 20, 2017

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.

@deliverer33
Copy link
Author

@hjone72 can I run both analyze scripts at same time? Anyone know?

@hjone72
Copy link
Contributor

hjone72 commented Apr 20, 2017

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.

hjone72 pushed a commit to hjone72/plexScripts that referenced this issue Apr 20, 2017
@Animosity022
Copy link

What's is metadata type 12? Is that non video stuff?

@hjone72
Copy link
Contributor

hjone72 commented Apr 21, 2017

It is the extras that Plex pulls for your movies and tv shows.

@Animosity022
Copy link

So the library stats would be fixed with

query="select count(*) From media_items Inner Join metadata_items On media_items.metadata_item_id = metadata_items.id Where media_items.bitrate Is Null And Not metadata_items.metadata_type = 12"

I ran that and it removes all the extra items. Nice find!

@hjone72
Copy link
Contributor

hjone72 commented Apr 21, 2017

Sorry, I haven't looked at those statistics scripts.

@deliverer33
Copy link
Author

@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
There are 36 files that need to be analyzed.
Going to analyze the following ID's: 12,72,73,95,117,128,177,186,188,191,193,236,273,300,324,336,382,387,408,428,468,511,512,515,530,537,583,588,675,770,818,838,856,937,938,2795
Input items are: 12,72,73,95,117,128,177,186,188,191,193,236,273,300,324,336,382,387,408,428,468,511,512,515,530,537,583,588,675,770,818,838,856,937,938,2795
Finished analyzing all items.

plex@media ~/scripts $ ./plex-analyze.cli.py
There are 36 files that need to be analyzed.
Going to analyze the following ID's: 12,72,73,95,117,128,177,186,188,191,193,236,273,300,324,336,382,387,408,428,468,511,512,515,530,537,583,588,675,770,818,838,856,937,938,2795
Input items are: 12,72,73,95,117,128,177,186,188,191,193,236,273,300,324,336,382,387,408,428,468,511,512,515,530,537,583,588,675,770,818,838,856,937,938,2795

@hjone72
Copy link
Contributor

hjone72 commented Apr 23, 2017

@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.

There are 36 files that need to be analyzed.
Going to analyze the following ID's: 12,72,73,95,117,128,177,186,188,191,193,236,273,300,324,336,382,387,408,428,468,511,512,515,530,537,583,588,675,770,818,838,856,937,938,2795
Input items are: 12,72,73,95,117,128,177,186,188,191,193,236,273,300,324,336,382,387,408,428,468,511,512,515,530,537,583,588,675,770,818,838,856,937,938,2795
GUI: Media analysis on Marvel's Agents of S.H.I.E.L.D. S02 E21
GUI:
GUI: Media analysis on Marvel's Agents of S.H.I.E.L.D. S02 E22
GUI:
GUI: Media analysis on All in Time
GUI:
GUI: Media analysis on A Very Murray Christmas
GUI:
GUI: Media analysis on Baby, Baby, Baby
GUI:
GUI: Media analysis on Mr. Woodcock
GUI:
GUI: Media analysis on Charmed S06 E22
GUI:
GUI: Media analysis on NBA S1516 E1701242274
GUI:
GUI: Media analysis on Doctor Strange
GUI:
Finished analyzing all items.

@deliverer33
Copy link
Author

deliverer33 commented Apr 23, 2017

@hjone72 Here are two examples, ID12 and ID408

ID12
This XML file does not appear to have any style information associated with it. The document tree is shown below. <MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="1" librarySectionTitle="Movies" librarySectionUUID="414e1f60-3e87-417a-b081-0635d181f9cc" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1491331668"> <Video ratingKey="12" key="/library/metadata/12" guid="com.plexapp.agents.imdb://tt2980210?lang=en" librarySectionID="1" librarySectionKey="/library/sections/1" studio="X-Filme Creative Pool" type="movie" title="A Hologram for the King" titleSort="Hologram for the King" contentRating="R" summary="Alan Clay, a struggling American businessman, travels to Saudi Arabia to sell a new technology to the King, only to be challenged by endless Middle Eastern bureaucracy, a perpetually absent monarch, and a suspicious growth on his back." rating="7.0" audienceRating="5.7" year="2016" tagline="How far will you go? To find yourself." thumb="/library/metadata/12/thumb/1492231541" art="/library/metadata/12/art/1492231541" duration="5890352" originallyAvailableAt="2016-04-22" addedAt="1490119119" updatedAt="1492231541" audienceRatingImage="rottentomatoes://image.rating.spilled" chapterSource="media" primaryExtraKey="/library/metadata/57" ratingImage="rottentomatoes://image.rating.ripe"> <Media id="12" duration="5890352" audioProfile="dts" videoProfile="high"> <Part accessible="1" exists="1" id="12" key="/library/parts/12/1490119119/file.mkv" duration="5890352" file="/home/plex/union-acd-upload/movies/A Hologram for the King (2016)/A Hologram for the King (2016).mkv" size="4694574697" audioProfile="dts" container="mkv" videoProfile="high"> <Stream id="104" key="/library/streams/104" streamType="3" selected="1" codec="idx" subIndex="0" language="English" languageCode="eng" format="vobsub"/> <Stream id="105" key="/library/streams/105" streamType="3" codec="idx" subIndex="1" language="English" languageCode="eng" format="vobsub"/> </Part> </Media> <Genre id="97" filter="genre=97" tag="Drama"/> <Director id="422" filter="director=422" tag="Tom Tykwer"/> <Writer id="423" filter="writer=423" tag="Tom Tykwer"/> <Producer id="436" filter="producer=436" tag="Uwe Schott"/> <Producer id="437" filter="producer=437" tag="Gary Goetzman"/> <Producer id="438" filter="producer=438" tag="Arcadiy Golubovich"/> <Producer id="439" filter="producer=439" tag="Stefan Arndt"/> <Producer id="440" filter="producer=440" tag="Tim O'Hair"/> <Country id="127" filter="country=127" tag="USA"/> <Role id="424" filter="actor=424" tag="Tom Hanks" role="Alan Clay" thumb="http://image.tmdb.org/t/p/original/a14CNByTYALAPSGlwlmfHILpEIW.jpg"/> <Role id="425" filter="actor=425" tag="Sarita Choudhury" role="Dr. Zahra Hakeem" thumb="https://thetvdb.com/banners/actors/339720.jpg"/> <Role id="426" filter="actor=426" tag="Sidse Babett Knudsen" role="Hanne" thumb="http://image.tmdb.org/t/p/original/gLetgzQ0RburJJT2UaCQMWAzKfX.jpg"/> <Role id="427" filter="actor=427" tag="Ben Whishaw" role="Dave" thumb="http://image.tmdb.org/t/p/original/3WEK2CBsiNgzxKxadhzMN3PB3VQ.jpg"/> <Role id="428" filter="actor=428" tag="Tom Skerritt" role="Ron Clay" thumb="http://image.tmdb.org/t/p/original/fVuxSZ8VoPxRJDm3VohtDDz5x8l.jpg"/> <Role id="429" filter="actor=429" tag="Tracey Fairaway" role="Kitty Clay" thumb="http://image.tmdb.org/t/p/original/uU94KQj5nBaf3qafDI2mZwvpQSe.jpg"/> <Role id="430" filter="actor=430" tag="David Menkin" role="Brad" thumb="http://image.tmdb.org/t/p/original/3oRbG8drPD9Ohj59NpmDQzAmTcJ.jpg"/> <Role id="431" filter="actor=431" tag="Alexander Black" role="Yousef"/> <Role id="432" filter="actor=432" tag="Jane Perry" role="Ruby Clay"/> <Role id="433" filter="actor=433" tag="Amira El Sayed" role="Maha"/> <Role id="434" filter="actor=434" tag="Christy Meyer" role="Cayley" thumb="http://image.tmdb.org/t/p/original/pv4h70F7IsyfktAMSLcZMToBFhL.jpg"/> <Role id="435" filter="actor=435" tag="Khalid Laith" role="Karim Al-Ahmad"/> <Extras size="1"> <Video ratingKey="57" key="/library/metadata/57" guid="iva://api.internetvideoarchive.com/2.0/DataService/VideoAssets(514627)?lang=en&bitrates=80,212,450,600,750,1500,2500,5000,8000&duration=110&adaptive=1&dts=0" type="clip" title="A Hologram For The King" titleSort="Hologram For The King" summary="" index="1" year="2016" thumb="/library/metadata/57/thumb/1492220919" duration="110000" originallyAvailableAt="2016-03-10" addedAt="1492220919" extraType="1"> <Media id="89" duration="110000" optimizedForStreaming="1" premium="1"> <Part id="89" duration="110000" container="mp4" key="/services/iva/assets/514627/video.mp4?bitrate=2500" optimizedForStreaming="1"/> </Media> <Media id="90" duration="110000" optimizedForStreaming="1" premium="1"> <Part id="90" duration="110000" container="mp4" key="/services/iva/assets/514627/video.mp4?bitrate=1500" optimizedForStreaming="1"/> </Media> <Media id="91" duration="110000" optimizedForStreaming="1" premium="1"> <Part id="91" duration="110000" container="mp4" key="/services/iva/assets/514627/video.mp4?bitrate=450" optimizedForStreaming="1"/> </Media> </Video> </Extras> </Video> </MediaContainer>

ID408

This XML file does not appear to have any style information associated with it. The document tree is shown below. <MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="1" librarySectionTitle="Movies" librarySectionUUID="414e1f60-3e87-417a-b081-0635d181f9cc" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1491331668"> <Video ratingKey="408" key="/library/metadata/408" guid="com.plexapp.agents.imdb://tt4520364?lang=en" librarySectionID="1" librarySectionKey="/library/sections/1" studio="Twentieth Century-Fox" type="movie" title="Morgan" contentRating="R" summary="A corporate risk-management consultant must determine whether or not to terminate an artificial being's life that was made in a laboratory environment." rating="3.9" audienceRating="3.0" viewCount="1" lastViewedAt="1492387040" year="2016" tagline="Don't let it out" thumb="/library/metadata/408/thumb/1492759605" art="/library/metadata/408/art/1492759605" duration="5512683" originallyAvailableAt="2016-09-01" addedAt="1481745788" updatedAt="1492759605" audienceRatingImage="rottentomatoes://image.rating.spilled" chapterSource="media" primaryExtraKey="/library/metadata/1168" ratingImage="rottentomatoes://image.rating.rotten"> <Media id="568" duration="5512683" audioProfile="dts" videoProfile="high"> <Part accessible="1" exists="1" id="571" key="/library/parts/571/1481745788/file.mkv" duration="5512683" file="/home/plex/union-acd-upload/movies/Morgan (2016)/Morgan (2016).mkv" size="4691290098" audioProfile="dts" container="mkv" videoProfile="high"> <Stream id="3440" key="/library/streams/3440" streamType="3" selected="1" codec="idx" subIndex="0" language="English" languageCode="eng" format="vobsub"/> <Stream id="3441" key="/library/streams/3441" streamType="3" codec="idx" subIndex="1" language="English" languageCode="eng" format="vobsub"/> <Stream id="3442" key="/library/streams/3442" streamType="3" codec="idx" subIndex="2" language="English" languageCode="eng" format="vobsub"/> </Part> </Media> <Genre id="1184" filter="genre=1184" tag="Sci-Fi"/> <Genre id="415" filter="genre=415" tag="Horror"/> <Genre id="248" filter="genre=248" tag="Thriller"/> <Director id="8742" filter="director=8742" tag="Luke Scott"/> <Writer id="830" filter="writer=830" tag="Seth W. Owen"/> <Producer id="8753" filter="producer=8753" tag="Mark Huffam"/> <Producer id="8754" filter="producer=8754" tag="Michael Schaefer"/> <Producer id="1827" filter="producer=1827" tag="Ridley Scott"/> <Country id="127" filter="country=127" tag="USA"/> <Role id="8743" filter="actor=8743" tag="Kate Mara" role="Lee Weathers" thumb="http://image.tmdb.org/t/p/original/vK6eOzrFmQNoRyHIP8N5p5Ri4fp.jpg"/> <Role id="8744" filter="actor=8744" tag="Anya Taylor-Joy" role="Morgan" thumb="http://image.tmdb.org/t/p/original/9plCdI97YKSuJtxleOR7F5a7O0J.jpg"/> <Role id="8745" filter="actor=8745" tag="Rose Leslie" role="Dr. Amy Menser" thumb="https://thetvdb.com/banners/actors/346218.jpg"/> <Role id="736" filter="actor=736" tag="Toby Jones" role="Dr. Simon Ziegler" thumb="http://image.tmdb.org/t/p/original/7Flo5oYhQmcX5vc0TfAA6FB4ncS.jpg"/> <Role id="4822" filter="actor=4822" tag="Boyd Holbrook" role="Skip Vronsky" thumb="http://image.tmdb.org/t/p/original/dVt9VBr19Gqvxw9uqy73n0LeseX.jpg"/> <Role id="8746" filter="actor=8746" tag="Jennifer Jason Leigh" role="Dr. Kathy Grieff" thumb="http://image.tmdb.org/t/p/original/tncFH9YfrK2ql1cNXGEkEAJ5zIz.jpg"/> <Role id="15" filter="actor=15" tag="Paul Giamatti" role="Dr. Alan Shapiro" thumb="https://thetvdb.com/banners/actors/351827.jpg"/> <Role id="8100" filter="actor=8100" tag="Michelle Yeoh" role="Dr. Lui Cheng" thumb="http://image.tmdb.org/t/p/original/OhW6BfeZBRn7iupeI8elngV2EN.jpg"/> <Role id="8747" filter="actor=8747" tag="Sam Spruell" role="Jim Bryce" thumb="http://image.tmdb.org/t/p/original/koso3a7kqYdQUmQGp0G2qjXtjyh.jpg"/> <Role id="8748" filter="actor=8748" tag="Jonathan Aris" role="David Chance" thumb="http://image.tmdb.org/t/p/original/7TeDsZnTqhuvorTBlYYofNvwalk.jpg"/> <Role id="6007" filter="actor=6007" tag="Chris Sullivan" role="Dr. Darren Finch" thumb="https://thetvdb.com/banners/actors/390520.jpg"/> <Role id="8749" filter="actor=8749" tag="Vinette Robinson" role="Dr. Brenda Finch" thumb="http://image.tmdb.org/t/p/original/2OpiDiS6K7XpziaNW7s2D4vPbat.jpg"/> <Role id="8750" filter="actor=8750" tag="Charlotte Asprey" role="Executive Assistant" thumb="http://image.tmdb.org/t/p/original/ffhSdCyqsX9uVOxA2xHLxEaPX9k.jpg"/> <Role id="8751" filter="actor=8751" tag="Yare Michael Jegbefume" role="Ted Brenner"/> <Role id="8752" filter="actor=8752" tag="Crispian Belfrage" role="Charles Grimes" thumb="http://image.tmdb.org/t/p/original/q28WEsy1oqgngI1vD7I7VKVFqgW.jpg"/> <Extras size="8"> <Video ratingKey="1168" key="/library/metadata/1168" guid="iva://api.internetvideoarchive.com/2.0/DataService/VideoAssets(270744)?lang=en&bitrates=80,212,450,600,750,1500,2500,5000,8000&duration=144&adaptive=1&dts=0" type="clip" title="Morgan" summary="" index="1" year="2016" thumb="/library/metadata/1168/thumb/1492228060" duration="144000" originallyAvailableAt="2016-05-25" addedAt="1492228060" extraType="1"> <Media id="2224" duration="144000" optimizedForStreaming="1" premium="1"> <Part id="2229" duration="144000" container="mp4" key="/services/iva/assets/270744/video.mp4?bitrate=2500" optimizedForStreaming="1"/> </Media> <Media id="2225" duration="144000" optimizedForStreaming="1" premium="1"> <Part id="2230" duration="144000" container="mp4" key="/services/iva/assets/270744/video.mp4?bitrate=1500" optimizedForStreaming="1"/> </Media> <Media id="2226" duration="144000" optimizedForStreaming="1" premium="1"> <Part id="2231" duration="144000" container="mp4" key="/services/iva/assets/270744/video.mp4?bitrate=450" optimizedForStreaming="1"/> </Media> </Video> <Video ratingKey="1169" key="/library/metadata/1169" guid="iva://api.internetvideoarchive.com/2.0/DataService/VideoAssets(794853)?lang=en&bitrates=80,212,450,600,750,1500,2500,5000,8000&duration=9&adaptive=1&dts=0" type="clip" title="Rose Leslie On Her Character" summary="" index="2" year="2016" thumb="/library/metadata/1169/thumb/1492228060" duration="9000" originallyAvailableAt="2016-08-29" addedAt="1492228060" extraType="5"> <Media id="2227" duration="9000" optimizedForStreaming="1" premium="1"> <Part id="2232" duration="9000" container="mp4" key="/services/iva/assets/794853/video.mp4?bitrate=2500" optimizedForStreaming="1"/> </Media> <Media id="2228" duration="9000" optimizedForStreaming="1" premium="1"> <Part id="2233" duration="9000" container="mp4" key="/services/iva/assets/794853/video.mp4?bitrate=1500" optimizedForStreaming="1"/> </Media> <Media id="2229" duration="9000" optimizedForStreaming="1" premium="1"> <Part id="2234" duration="9000" container="mp4" key="/services/iva/assets/794853/video.mp4?bitrate=450" optimizedForStreaming="1"/> </Media> </Video> <Video ratingKey="1170" key="/library/metadata/1170" guid="iva://api.internetvideoarchive.com/2.0/DataService/VideoAssets(936226)?lang=en&bitrates=80,212,450,600,750,1500,2500,5000,8000&duration=27&adaptive=1&dts=0" type="clip" title="Paul Giamatti On His Knowledge About Science Fiction" summary="" index="3" year="2016" thumb="/library/metadata/1170/thumb/1492228060" duration="27000" originallyAvailableAt="2016-08-29" addedAt="1492228060" extraType="5"> <Media id="2230" duration="27000" optimizedForStreaming="1" premium="1"> <Part id="2235" duration="27000" container="mp4" key="/services/iva/assets/936226/video.mp4?bitrate=2500" optimizedForStreaming="1"/> </Media> <Media id="2231" duration="27000" optimizedForStreaming="1" premium="1"> <Part id="2236" duration="27000" container="mp4" key="/services/iva/assets/936226/video.mp4?bitrate=1500" optimizedForStreaming="1"/> </Media> <Media id="2232" duration="27000" optimizedForStreaming="1" premium="1"> <Part id="2237" duration="27000" container="mp4" key="/services/iva/assets/936226/video.mp4?bitrate=450" optimizedForStreaming="1"/> </Media> </Video> <Video ratingKey="1171" key="/library/metadata/1171" guid="iva://api.internetvideoarchive.com/2.0/DataService/VideoAssets(302199)?lang=en&bitrates=80,212,450,600,750,1500,2500,5000,8000&duration=25&adaptive=1&dts=0" type="clip" title="Toby Jones On His Character" summary="" index="4" year="2016" thumb="/library/metadata/1171/thumb/1492228060" duration="25000" originallyAvailableAt="2016-08-29" addedAt="1492228060" extraType="5"> <Media id="2233" duration="25000" optimizedForStreaming="1" premium="1"> <Part id="2238" duration="25000" container="mp4" key="/services/iva/assets/302199/video.mp4?bitrate=2500" optimizedForStreaming="1"/> </Media> <Media id="2234" duration="25000" optimizedForStreaming="1" premium="1"> <Part id="2239" duration="25000" container="mp4" key="/services/iva/assets/302199/video.mp4?bitrate=1500" optimizedForStreaming="1"/> </Media> <Media id="2235" duration="25000" optimizedForStreaming="1" premium="1"> <Part id="2240" duration="25000" container="mp4" key="/services/iva/assets/302199/video.mp4?bitrate=450" optimizedForStreaming="1"/> </Media> </Video> <Video ratingKey="1172" key="/library/metadata/1172" guid="iva://api.internetvideoarchive.com/2.0/DataService/VideoAssets(541211)?lang=en&bitrates=80,212,450,600,750,1500,2500,5000,8000&duration=67&adaptive=1&dts=0" type="clip" title="Modified Organism: The Science Behind Morgan" summary="" index="5" year="2016" thumb="/library/metadata/1172/thumb/1492228060" duration="67000" originallyAvailableAt="2016-12-05" addedAt="1492228060" extraType="5"> <Media id="2236" duration="67000" optimizedForStreaming="1" premium="1"> <Part id="2241" duration="67000" container="mp4" key="/services/iva/assets/541211/video.mp4?bitrate=2500" optimizedForStreaming="1"/> </Media> <Media id="2237" duration="67000" optimizedForStreaming="1" premium="1"> <Part id="2242" duration="67000" container="mp4" key="/services/iva/assets/541211/video.mp4?bitrate=1500" optimizedForStreaming="1"/> </Media> <Media id="2238" duration="67000" optimizedForStreaming="1" premium="1"> <Part id="2243" duration="67000" container="mp4" key="/services/iva/assets/541211/video.mp4?bitrate=450" optimizedForStreaming="1"/> </Media> </Video> <Video ratingKey="1173" key="/library/metadata/1173" guid="iva://api.internetvideoarchive.com/2.0/DataService/VideoAssets(378671)?lang=en&bitrates=80,212,450,600,750,1500,2500,5000,8000&duration=18&adaptive=1&dts=0" type="clip" title="Anya Taylor-Joy On What Morgan Is And How She Was Created" summary="" index="6" year="2016" thumb="/library/metadata/1173/thumb/1492228060" duration="18000" originallyAvailableAt="2016-08-29" addedAt="1492228060" extraType="5"> <Media id="2239" duration="18000" optimizedForStreaming="1" premium="1"> <Part id="2244" duration="18000" container="mp4" key="/services/iva/assets/378671/video.mp4?bitrate=2500" optimizedForStreaming="1"/> </Media> <Media id="2240" duration="18000" optimizedForStreaming="1" premium="1"> <Part id="2245" duration="18000" container="mp4" key="/services/iva/assets/378671/video.mp4?bitrate=1500" optimizedForStreaming="1"/> </Media> <Media id="2241" duration="18000" optimizedForStreaming="1" premium="1"> <Part id="2246" duration="18000" container="mp4" key="/services/iva/assets/378671/video.mp4?bitrate=450" optimizedForStreaming="1"/> </Media> </Video> <Video ratingKey="1174" key="/library/metadata/1174" guid="iva://api.internetvideoarchive.com/2.0/DataService/VideoAssets(243552)?lang=en&bitrates=80,212,450,600,750,1500,2500,5000,8000&duration=36&adaptive=1&dts=0" type="clip" title="Kate Mara On Her Character And Her Character's Background" summary="" index="7" year="2016" thumb="/library/metadata/1174/thumb/1492228060" duration="36000" originallyAvailableAt="2016-08-29" addedAt="1492228060" extraType="5"> <Media id="2242" duration="36000" optimizedForStreaming="1" premium="1"> <Part id="2247" duration="36000" container="mp4" key="/services/iva/assets/243552/video.mp4?bitrate=2500" optimizedForStreaming="1"/> </Media> <Media id="2243" duration="36000" optimizedForStreaming="1" premium="1"> <Part id="2248" duration="36000" container="mp4" key="/services/iva/assets/243552/video.mp4?bitrate=1500" optimizedForStreaming="1"/> </Media> <Media id="2244" duration="36000" optimizedForStreaming="1" premium="1"> <Part id="2249" duration="36000" container="mp4" key="/services/iva/assets/243552/video.mp4?bitrate=450" optimizedForStreaming="1"/> </Media> </Video> <Video ratingKey="1175" key="/library/metadata/1175" guid="iva://api.internetvideoarchive.com/2.0/DataService/VideoAssets(900972)?lang=en&bitrates=80,212,450,600,750,1500,2500,5000,8000&duration=41&adaptive=1&dts=0" type="clip" title="Jennifer Jason Leigh On Morgan's Character" summary="" index="8" year="2016" thumb="/library/metadata/1175/thumb/1492228060" duration="41000" originallyAvailableAt="2016-08-29" addedAt="1492228060" extraType="5"> <Media id="2245" duration="41000" optimizedForStreaming="1" premium="1"> <Part id="2250" duration="41000" container="mp4" key="/services/iva/assets/900972/video.mp4?bitrate=2500" optimizedForStreaming="1"/> </Media> <Media id="2246" duration="41000" optimizedForStreaming="1" premium="1"> <Part id="2251" duration="41000" container="mp4" key="/services/iva/assets/900972/video.mp4?bitrate=1500" optimizedForStreaming="1"/> </Media> <Media id="2247" duration="41000" optimizedForStreaming="1" premium="1"> <Part id="2252" duration="41000" container="mp4" key="/services/iva/assets/900972/video.mp4?bitrate=450" optimizedForStreaming="1"/> </Media> </Video> </Extras> </Video> </MediaContainer>

@deliverer33
Copy link
Author

@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?

@hjone72
Copy link
Contributor

hjone72 commented Apr 23, 2017

@deliverer33, Just reading through the above info now. You shouldn't have to change anything in reanalyeItem.sh unless your paths are different, which as you stated they aren't.

@hjone72
Copy link
Contributor

hjone72 commented Apr 23, 2017

@deliverer33, Could you please confirm that when you press play on one of the affected files your player
looks like this?

image

If they do...
I have a few files doing something similar. Every time I 'Analyze' them, including through the web interface, they never collect the information (bitrate, etc). When I play them they look like the image above. I think there is something wrong with those specific files...

@deliverer33
Copy link
Author

deliverer33 commented Apr 23, 2017

@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.
Going to analyze the following ID's: 72,73,95,117,128,177,186,188,191,193,236,273,300,324,336,382,387,428,468,511,512,515,530,537,583,588,675,770,818,838,856,937,938,2795
Input items are: 72,73,95,117,128,177,186,188,191,193,236,273,300,324,336,382,387,428,468,511,512,515,530,537,583,588,675,770,818,838,856,937,938,2795
Finished analyzing all items.

@hjone72
Copy link
Contributor

hjone72 commented Apr 23, 2017

@deliverer33, Ahhh! I think I found the issue. Make the changes from this commit bd559c8

@deliverer33
Copy link
Author

@hjone72 you are a rock star! I'm down to 3 shows now and I can confirm they are corrupt. Now we just need @ajkis to fix the plexlibrarystats to correctly reflect the right information.

@hjone72
Copy link
Contributor

hjone72 commented Apr 23, 2017

@deliverer33, what is wrong with the library stats? Is it this issue here #11 (comment)?

@deliverer33
Copy link
Author

@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.

@hjone72
Copy link
Contributor

hjone72 commented Apr 25, 2017

@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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants