Local Media Assets and MKV Metadata

@BrianSmith said:
I don’t understand where it comes from either! :slight_smile:

Screenshots attached, but I’m not sure if this is what you want. It basically appears everywhere.

!(https://15254b2dcaab7f5478ab-24461f391e20b7336331d5789078af53.ssl.cf1.rackcdn.com




/plex.vanillacommunity.com/editor/6r/iazbrhu2tj7i.png “”)

Settings>Server>Agents>Shows, I have Local Media Assets (TV) at the top of each, closely followed by TheTVDB where it’s an option.

If I edit that Library and go to Advanced, under Agent, I had TheTVDB. I switched to Personal Media Shows, to see what it would do. The same.

I also noticed that, when I tell it to Fix Incorrect Match and have it redo everything, that one first pulls in 2016-05-18 as the title, then switches to the spam shortly after.

Settings for Local Media Assets (TV) has nothing. There is nothing in the box for Local music video path.
The next one, TheTVDB has no settings, The Movie Database has all boxes checked and United States selected, OpenSubtitles.org has my login and English, Spanish, Japanese, and FanArt.tv has my Personal API Key entered.

Thanks!
Brian

Better late than never with this solution.

So Plex will override the downloaded metadata with what is tagged in the original file. To get rid of this do the following:

  1. Go to original MP4 file
  2. Right click, Properties, Details tab
  3. Locate the “Title” and “Comment” tags which one or both will have the tagged data pulled into Plex. Clear these boxex and then click Apply/Ok.
  4. Go back into your Plex server web ui, go to the TV show root folder, click the “…”, then click “Refresh”, Give it a second to scan that series and refresh.
  5. Tagged items will now be fixed.

Done.

@TheTrunks said:

@BrianSmith said:
I don’t understand where it comes from either! :slight_smile:

Screenshots attached, but I’m not sure if this is what you want. It basically appears everywhere.

!(https://15254b2dcaab7f5478ab-24461f391e20b7336331d5789078af53.ssl.cf1.rackcdn.com




/plex.vanillacommunity.com/editor/6r/iazbrhu2tj7i.png “”)

Settings>Server>Agents>Shows, I have Local Media Assets (TV) at the top of each, closely followed by TheTVDB where it’s an option.

If I edit that Library and go to Advanced, under Agent, I had TheTVDB. I switched to Personal Media Shows, to see what it would do. The same.

I also noticed that, when I tell it to Fix Incorrect Match and have it redo everything, that one first pulls in 2016-05-18 as the title, then switches to the spam shortly after.

Settings for Local Media Assets (TV) has nothing. There is nothing in the box for Local music video path.
The next one, TheTVDB has no settings, The Movie Database has all boxes checked and United States selected, OpenSubtitles.org has my login and English, Spanish, Japanese, and FanArt.tv has my Personal API Key entered.

Thanks!
Brian

Better late than never with this solution.

So Plex will override the downloaded metadata with what is tagged in the original file. To get rid of this do the following:

  1. Go to original MP4 file
  2. Right click, Properties, Details tab
  3. Locate the “Title” and “Comment” tags which one or both will have the tagged data pulled into Plex. Clear these boxex and then click Apply/Ok.
  4. Go back into your Plex server web ui, go to the TV show root folder, click the “…”, then click “Refresh”, Give it a second to scan that series and refresh.
  5. Tagged items will now be fixed.

Done.

Sorry, but the information isn’t contained there, and the goal here isn’t so much removing the tags, but figuring out where they are so I can replicate them.

See, Plex isn’t supposed to read tags from MKVs, just MP4s. I have a lot of content that doesn’t show up in the databases Plex pulls from, so I’m trying to tag that content permanently so I don’t have to manually redo titles every time there’s a database issue. That example is an example of where someone has, somehow added tag metadata to a MKV file and Plex is reading from it. I’d love to know how they did that.


Brian

@TheTrunks said:
Settings>Server>Agents>Shows, I have Local Media Assets (TV) at the top of each, closely followed by TheTVDB where it’s an option.

This is the culprit. ^^^
Simply drag the LMA downwards, then Refresh the movie or tv show.
(Sometimes you need to perform the Plex Dance to clear a “mismatch” caused by embedded metadata.)

@OttoKerner said:

@TheTrunks said:
Settings>Server>Agents>Shows, I have Local Media Assets (TV) at the top of each, closely followed by TheTVDB where it’s an option.

This is the culprit. ^^^
Simply drag the LMA downwards, then Refresh the movie or tv show.
(Sometimes you need to perform the Plex Dance to clear a “mismatch” caused by embedded metadata.)

I don’t want to prevent this kind of thing. I want to harness it. Somehow, people are putting metadata into MKVs and Plex is reading it. I want to figure out how they are doing it so I can use it for my “special features” content that isn’t in the TVDB or any other database.


Brian

@BrianSmith said:
I don’t want to prevent this kind of thing. I want to harness it. Somehow, people are putting metadata into MKVs and Plex is reading it. I want to figure out how they are doing it so I can use it for my “special features” content that isn’t in the TVDB or any other database.

Plex doesn’t read embedded metadata from MKV files.
This only works with .mp4 / .m4v files.

@OttoKerner said:

@BrianSmith said:
I don’t want to prevent this kind of thing. I want to harness it. Somehow, people are putting metadata into MKVs and Plex is reading it. I want to figure out how they are doing it so I can use it for my “special features” content that isn’t in the TVDB or any other database.

Plex doesn’t read embedded metadata from MKV files.
This only works with .mp4 / .m4v files.

Except that, it does. It may not be intended, but there are MKV files I have obtained that have embedded metadata that Plex reads. Someone knows how to do it. I’m just trying to figure out how they did it.


Brian

1 Like

Has anyone come up with an answer to this? I have the exact same situation. Only I do go into file properties and remove all personal tags. I even went so far as to remove all entries and replace them with different encodes (non-rarbg)and it still shows up. I use rebox.net to change mkv wrapper to mp4. This info has to be cached somewhere in Plex because it will not go away. I even removed and changed the directory name also.

Edit, found the answer to my problem. I unchecked local media assets under agent settings. Now I don’t even have to remove tags. I also understand this won’t help the OP because he wants to use tags but also ignore some. This seems like a Plex problem. Maybe they could have a tag depth setting so you can scan for deep/hidden tags or not.

Now you can’t use:
Subtitles
Local artwork
And everything else LMA does.

You should just drag LMA to the bottom of the lists.

@sonomazr2 said:
Has anyone come up with an answer to this? I have the exact same situation. Only I do go into file properties and remove all personal tags. I even went so far as to remove all entries and replace them with different encodes (non-rarbg)and it still shows up. I use rebox.net to change mkv wrapper to mp4. This info has to be cached somewhere in Plex because it will not go away. I even removed and changed the directory name also.

Edit, found the answer to my problem. I unchecked local media assets under agent settings. Now I don’t even have to remove tags. I also understand this won’t help the OP because he wants to use tags but also ignore some. This seems like a Plex problem. Maybe they could have a tag depth setting so you can scan for deep/hidden tags or not.

If it’s an MKV, use MKVToolNix to remove all tags and global tags. Use the Multiplexer tool.
If it’s an MP4, use to delete all tags. There is a button for Extended tags. Use that.

I still don’t know how to use them to create tags for MKVs, but writing this has given me an idea! I’ll have to wait to try it. No time now.


Brian

@BrianSmith said:
I still don’t know how to use them to create tags for MKVs,

I hear that mp3tag has now support for tags in MKVs.
Although I haven’t tested that particular feature yet.

@OttoKerner said:

@BrianSmith said:
I still don’t know how to use them to create tags for MKVs,

I hear that mp3tag has now support for tags in MKVs.
Although I haven’t tested that particular feature yet.

It does now, but I’m not sure exactly sure how well it works.
I still have to use MKVToolNix to remove all the tags to remove their annoying “title” tag.

Also, just to clarify, because I re read what I wrote and i was not terribly clear, I DO know how to use each to create tags for MKVs, but I don’t know how to make those tags show up as a title that Plex will read and take as local meta data. The jerks who tag these MKVs do, or do it accidentally, and I’d love to figure out how they do it.


Brian

Yes, due to the very annoying @OttoKerner and the level of my OCD, I recently had to re-arrange the sequence of ‘pre-processing’ here at Juice-Central. Xmedia Recode writes mystery global tags into MKVs. This never was an issue and I can’t even find what’s being written and where and Plex doesn’t react - good or bad - to those global tags, but they’re there, none the less and now I have to remove them with MKVToolNix before they go in the library.

@JuiceWSA said:
Yes, due to the very annoying @OttoKerner and the level of my OCD, I recently had to re-arrange the sequence of ‘pre-processing’ here at Juice-Central. Xmedia Recode writes mystery global tags into MKVs. This never was an issue and I can’t even find what’s being written and where and Plex doesn’t react - good or bad - to those global tags, but they’re there, none the less and now I have to remove them with MKVToolNix before they go in the library.

I’ve been trying to figure it out, because I have a lot of TV Show “special features” that are not in any database, and I encode MKV. I’ve started encoding those files as MP4 and tagging them sp Plex has something to find for the title, but, I’d rather encode as MKV and I’d rather not convert hundreds of files to MP4 just to be able to tag them in a way that Plex can read.
Plex isn’t SUPPOSED to be able to read MKV tags, but someone figured out how to make it do it.

Also, I wonder if I’ve stepped into a friendly ribbing or a long standing dispute…


Brian

I was ribbing Otto, but as far as I know Plex is unable to read data in MKV files.

I have a lot of both types and strip data from both. If I need to add data for unmatchable files I hand edit in Plex. I fail to see any benefit or time saving in remuxing then editing metadata opposed to simple Plex editing.

@JuiceWSA said:
I was ribbing Otto, but as far as I know Plex is unable to read data in MKV files.

I have a lot of both types and strip data from both. If I need to add data for unmatchable files I hand edit in Plex. I fail to see any benefit or time saving in remuxing then editing metadata opposed to simple Plex editing.

Plex reads those mystery tags in MKVs somehow.

I used to do the same. I had a lot of files that had custom fields. A lot. Then, a disaster. I lost my Plex database. They all lost their data. I was faced with redoing it all in Plex and risking losing it again, or finding a better, more automatic solution. A solution that works as smoothly as Plex does when you add properly named files. Tags accomplish that. …in MP4s. They can in MKVs too, if I can just figure out how.


Brian

I have tested this.
mp3tag supports tagging mkv now.
I tagged some things like Title and Artist in one of my test MKVs.

Then I placed this into my test library which uses only the Local Media Assets agent.
None of the tags was read and imported into Plex.

The only information that gets into Plex from MKV files are the tags on individual streams, like ‘Language’, ‘Title’ or ‘Forced’.
But that doesn’t matter for the matching process. These ‘Stream titles’ do only appear in the Plex Mediainfo and nowhere else:

Besides: @JuiceWSA I’ve seen that mp3tag does indeed write these ‘Global Tags’ now.
And it also has a way to erase them from the files. And this is way quicker than remuxing them in MKVtoolinx:

Cool - I’ve just about got two ready for the strip-search so I’ll pull em up in MP3Tag and find out what the hell Xmedia Recode is putting in them that’s so dam important.

(it’s gonna have to be pretty quick to beat 2 seconds - but I’ll take your word for it - lol)

Edit:

I had to get the new MP3Tag - to get it to look at MKVs (needed to do that anyway, I guess) - but here’s a before and after a ‘wash’ of ‘Xmedia Recode Global Tags’ by MKVToolNix revealing the mystery continues…:

Uh… Nevermind:

Edit 2 - Duh…:

Extend Tags under ‘View’ was necessary revealing these two - and removing them was indeed quicker than a remux. Nearly instant is quicker than 2 seconds… no doubt about it.

Before I’m raked over the coals - FileBot is the final station on the Juice-Town Conveyor Belt…

:slight_smile:

Hello,

I haven’t read all of the posts but I have had this problem in the past and used to avoid RARBG videos, until I learned how to remove, alter or add my own information.

Filebot did NOT work for me but what did, was VLC believe it or not. I opened the video with VLC, then went to ‘Window’ tab and beneath that is ‘Media Information’. Click there and you will find how Plex is naming that file. This is the Mac version but I’m sure it’s in the Windows and Linux versions as well.

This is what worked for me and hopefully, it will help others remove their irritating naming scheme as well.

I am using nowadays a slightly more convenient way, particularly for tv shows.

For future reference if you right click the file and click properties you can see the spam in the Details tab