[Solved] Matching problems

Hello,

I tried matching fairly popular movies Logan, Ghost in the Shell and Rogue One: A Star Wars Story - but to my surprise Plex failed to find these titles with the Plex Movies scanner and the Movies Database Scanner. After some fiddling with the options, it found the titles, but only partially populated the meta tags, only filling in the title and poster without anything else. Does anyone have any idea what’s going on? Is there a temporary malfunction of the matching servers?

Thanks in advance for your advice. I enabled anonymous reporting of Plex matching if that helps.

The formal name for Rogue One is just that.

[chuck@lizum Rogue One (2016).102]$ ls -la
total 38210276
drwxr-xr-x   2 chuck users        4096 Mar 25 20:51 ./
drwxr-xr-x 244 chuck users       16384 May 12 19:24 ../
-rw-r--r--   1 chuck users 39127290482 Mar 25 12:12 Rogue One (2016).mkv
[chuck@lizum Rogue One (2016).103]$ 

It matches quickly and easily

What are your exact names and directory structure?

The exact names are

Ghost in the Shell (2017).avi
Logan (2017).avi
Rogue One (2016).avi

The directory structure is Media> and then the media files without additional directories.

This is what it looks like:

Is your lack of metadata problems confined to AVI files? The AVI container can carry a lot of bad information.

Before going any further, I need to see your log files.

With PMS quiet (nobody streaming) , Refresh the metadata for a few “selected” files.
When this is done (wait about 60 seconds),
Go to Setting - server - help and Download Logs.

Please post that ZIP file here.

I would also like to see the XML for “Rogue One”

Ok, I will do that tomorrow. I’ve got to catch some sleep now, it’s quite late here. Thanks in advance, I hope we can resolve the problem tomorrow.

It doesn’t seem to have anything to do with .avi files. Some .avi files in the same directory match perfectly and fill in all metadata.

sleep well. 02:30 / 03:30 is indeed late

@ChuckPA Here are the log files after refreshing the metadata of 3 movies that resulted in no metadata added to them.

@ChuckPa And here is the XML for Rogue One:

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="9" librarySectionTitle="Movies" librarySectionUUID="08cf87bf-bbc6-4d2d-bafb-5d0bb8995855" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1492538818"> <Video ratingKey="10432" key="/library/metadata/10432" guid="com.plexapp.agents.imdb://tt3748528?lang=en" librarySectionID="9" librarySectionKey="/library/sections/9" type="movie" title="Rogue One: A Star Wars Story" summary="" thumb="/library/metadata/10432/thumb/1494673259" art="/library/metadata/10432/art/1494673259" duration="8037238" addedAt="1494628694" updatedAt="1494673259"> <Media videoResolution="576" id="14218" duration="8037238" bitrate="1477" width="720" height="304" aspectRatio="2.35" audioChannels="6" audioCodec="ac3" videoCodec="mpeg4" container="avi" videoFrameRate="24p" videoProfile="advanced simple"> <Part accessible="1" exists="1" id="14218" key="/library/parts/14218/1494628694/file.avi" duration="8037238" file="/Users/aeon/Desktop/Media/Rogue One (2016).avi" size="1483777472" container="avi" videoProfile="advanced simple"> <Stream id="24832" streamType="1" codec="mpeg4" index="0" bitrate="1212" bitDepth="8" chromaSubsampling="4:2:0" frameRate="23.976" height="304" level="5" profile="advanced simple" refFrames="1" width="720"/> <Stream id="24833" streamType="2" selected="1" codec="ac3" index="1" channels="6" bitrate="256" audioChannelLayout="5.1(side)" samplingRate="48000" streamIdentifier="1"/> <Stream id="24867" key="/library/streams/24867" streamType="3" selected="1" codec="srt" language="English" languageCode="eng"/> <Stream id="24866" key="/library/streams/24866" streamType="3" codec="srt" language="Deutsch" languageCode="ger"/> <Stream id="24865" key="/library/streams/24865" streamType="3" codec="srt" language="Français" languageCode="fre"/> </Part> </Media> <Extras size="0"></Extras> </Video> </MediaContainer>

Formatted:

I’m seeing the errors and am a little confused.

A. PMS can’t access the information it thinks it has.

2017-05-13 03:20:06,614 (70000e51c000) :  ERROR (model:205) - Cannot read model from /Users/aeon/Library/Application Support/Plex Media Server/Metadata/Movies/1/f81bdbc9acc3321dc592b1a109ca075731b549a.bundle/Contents/com.plexapp.agents.movieposterdb

B. TMDB comes up with a complete empty match .

2017-05-13 03:15:15,622 (70000d5e3000) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt2975590%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D'
2017-05-13 03:15:30,682 (70000d5e3000) :  ERROR (networking:219) - Error opening URL 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt2975590%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D'
2017-05-13 03:15:30,682 (70000d5e3000) :  INFO (__init__:1454) - Error fetching JSON from The Movie Database: http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt2975590%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D
2017-05-13 03:15:30,688 (70000d5e3000) :  DEBUG (networking:166) - Requesting 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt2975590%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D'
2017-05-13 03:15:45,798 (70000d5e3000) :  ERROR (networking:219) - Error opening URL 'http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt2975590%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D'
2017-05-13 03:15:45,799 (70000d5e3000) :  INFO (__init__:1454) - Error fetching JSON from The Movie Database: http://127.0.0.1:32400/services/tmdb?uri=%2Fmovie%2Ftt2975590%3Fappend_to_response%3Dreleases%2Ccredits%26language%3D
2017-05-13 03:15:45,799 (70000d5e3000) :  INFO (__init__:500) - Skipping title/year match (doesn't meet percentage threshold):  () percentage=0
2017-05-13 03:15:45,799 (70000d5e3000) :  INFO (__init__:500) - Skipping title/year match (doesn't meet percentage threshold):  () percentage=0
2017-05-13 03:15:45,800 (70000d5e3000) :  INFO (__init__:500) - Skipping title/year match (doesn't meet percentage threshold):  () percentage=0
2017-05-13 03:15:45,800 (70000d5e3000) :  INFO (__init__:511) - ---- TMDb RESULTS MAP ----

I would like to suggest a test.

  1. get the AVI files (yuck, btw) into something more reasonable
  2. Pull the AVI out of the library then scan, empty trash, and clean bundles.
  3. drop the new file (MKV) in place instead.

if you don’t have ffmpeg on your Mac at this point, I would like to suggest getting it. It’s a very handy tool to have available and it’s free ( best part ) :slight_smile:

next we do the following:

ffmpeg -i input_file.avi -c copy output_file.mkv

Now, if you have the standard mac media tools, you should be able to examine the properties of the video file more easily and edit them (title, etc).
MKV file tags aren’t used (makes it nice). MP4 files will be scanned for embedded title (but are also directly playable by all apple products) so if you choose to use MP4 as the new container, be certain to clean up (or fully remove) the embedded metadata for Title & Name, etc… Let the file name be what’s used to govern the match.

Thanks, @ChuckPA! I’ll do the test as soon as I can and then report back here.

Hmmm, I seem to be doing something wrong. I’m not very adept at using terminal commands.

! > Nautilus:Media aeon$ /Users/aeon/Desktop/Media/ffmpeg -i ghost1.avi -c copy ghost2.mkv ! > ffmpeg version 3.3-tessus Copyright (c) 2000-2017 the FFmpeg developers ! > built with Apple LLVM version 8.0.0 (clang-800.0.42.1) ! > configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-libzvbi --enable-version3 --disable-ffplay --disable-indev=qtkit ! > libavutil 55. 58.100 / 55. 58.100 ! > libavcodec 57. 89.100 / 57. 89.100 ! > libavformat 57. 71.100 / 57. 71.100 ! > libavdevice 57. 6.100 / 57. 6.100 ! > libavfilter 6. 82.100 / 6. 82.100 ! > libswscale 4. 6.100 / 4. 6.100 ! > libswresample 2. 7.100 / 2. 7.100 ! > libpostproc 54. 5.100 / 54. 5.100 ! > Input #0, avi, from 'ghost1.avi': ! > Metadata: ! > encoder : VirtualDubMod 1.5.10.2 (build 2540/release) ! > Duration: 01:38:37.57, start: 0.000000, bitrate: 2005 kb/s ! > Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], 1738 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc ! > Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp, 256 kb/s ! > Output #0, matroska, to 'ghost2.mkv': ! > Metadata: ! > encoder : Lavf57.71.100 ! > Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 720x400 [SAR 1:1 DAR 9:5], q=2-31, 1738 kb/s, 30 fps, 30 tbr, 1k tbn, 30 tbc ! > Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, fltp, 256 kb/s ! > Stream mapping: ! > Stream #0:0 -> #0:0 (copy) ! > Stream #0:1 -> #0:1 (copy) ! > Press [q] to stop, [?] for help ! > [matroska @ 0x7fce7200c400] Timestamps are unset in a packet for stream 0. This is deprecated and will stop working in the future. Fix your code to set the timestamps properly ! > [matroska @ 0x7fce7200c400] Can't write packet with unknown timestamp ! > av_interleaved_write_frame(): Invalid argument ! > frame= 1 fps=0.0 q=-1.0 Lsize= 17kB time=00:00:00.48 bitrate= 289.1kbits/s speed= 909x ! > video:27kB audio:16kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown ! > Conversion failed! ! >

I’ll just do the conversion with Handbrake, I know how to do that.

Still, no luck. I’ve converted the movies to .mkv but it’s not filling in the metadata.

Strike my last…

Yes, you need to handbrake it. Now you know why PMS can’t see it right.

While using HandBrake, clear out any tags… make the output filename the correct name “Rogue One (2016).mkv”

Ok, so I’ve converted two of those movies from .avi to .mkv using Handbrake and cleaned out all tags. I’ve deleted the library in PMS and created a new one with a new folder that contains these two movies. But still, no luck. It downloads the poster and recognizes the title, but it doesn’t fill in any metadata. This is what it looks like:

And attached are the new log files after I’ve added the two movies.

Here is the XML file for Logan:

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="11" librarySectionTitle="Movies 2" librarySectionUUID="2ca5f341-7688-497e-bea6-29cfa5471362" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1492538818"> <Video ratingKey="10447" key="/library/metadata/10447" guid="com.plexapp.agents.imdb://tt3315342?lang=en" librarySectionID="11" librarySectionKey="/library/sections/11" type="movie" title="Logan" summary="" viewOffset="1017942" lastViewedAt="1494634084" thumb="/library/metadata/10447/thumb/1494715805" art="/library/metadata/10447/art/1494715805" duration="8240037" addedAt="1494715679" updatedAt="1494715805"> <Media videoResolution="576" id="14233" duration="8240037" bitrate="1168" width="720" height="400" aspectRatio="1.78" audioChannels="2" audioCodec="aac" videoCodec="h264" container="mkv" videoFrameRate="NTSC" audioProfile="lc" videoProfile="main"> <Part accessible="1" exists="1" id="14233" key="/library/parts/14233/1494715529/file.mkv" duration="8240037" file="/Users/aeon/Desktop/Media/New/Logan (2017).mkv" size="1203518275" audioProfile="lc" container="mkv" videoProfile="main"> <Stream id="24925" streamType="1" default="1" codec="h264" index="0" bitrate="1168" bitDepth="8" chromaSubsampling="4:2:0" colorRange="tv" colorSpace="smpte170m" frameRate="29.762" hasScalingMatrix="0" height="400" level="31" profile="main" refFrames="4" scanType="progressive" width="720"/> <Stream id="24926" streamType="2" selected="1" default="1" codec="aac" index="1" channels="2" audioChannelLayout="stereo" profile="lc" samplingRate="48000" title="Stereo"/> <Stream id="24927" key="/library/streams/24927" streamType="3" selected="1" codec="srt" language="English" languageCode="eng"/> </Part> </Media> <Extras size="0"></Extras> </Video> </MediaContainer>

Formatted:

Sorry to be the bearer of bad news. Don’t rush analyzing what is going wrong, I’m not in a hurry. Take your time. :smile:

Show me your Settings - Server - Agents. Those persist (maintained by Plex.tv) .

@ChuckPa Here are the agent settings.