Posts: 140
Threads: 13
Joined: Jan 2016
Reputation:
26
[Not Solved]
Sep 27, 2016, 10:43 AM
Hello,
I was hoping there is a way to strip media files of their metadata. Plex uses the media files' metadata as display name rather than file name. This can get quite messy sometimes and editing them all manually is a lot of work.
Does anyone know of a way to do this (on Ubuntu server 16.04.1), preferably automated?
Sent from my iPhone using Tapatalk
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Not Solved]
Sep 28, 2016, 11:20 PM
For mkvs it looks like a good start. I'd suggest doing some tests if you can. If you verify it works for mkvs we can script it to loop.
Posts: 140
Threads: 13
Joined: Jan 2016
Reputation:
26
[Not Solved]
Sep 29, 2016, 12:36 AM
(This post was last modified: Sep 29, 2016, 01:11 AM by Gompy.)
Right, so I was about to start testing the above bash script and started looking for a "misbehaving" .mkv file in my plex library.
Turns out, all "misbehaving" media files (e.g. listed in plex library by their metadata tags rather than filename) are .mp4 files.
Now either this is a bizarre coincidence or plex only "mislists" .mp4 files.
Long story short: as the above script is for .mkv files, I can't test it atm.
hmm, I think I'm on to something: "exiftool"
Posts: 1,646
Threads: 2
Joined: Aug 2015
Reputation:
42
[Not Solved]
Sep 29, 2016, 04:27 PM
Cool, let us know how exiftool works out
Posts: 140
Threads: 13
Joined: Jan 2016
Reputation:
26
[Not Solved]
Sep 30, 2016, 11:33 AM
ran some tests with exiftool.
When running #exiftool <filename> it displays metadata of the media file (.mp4 in this case). The problematic entry is either "Title" or "Comment"
Changing the Title entry of a file # exiftool -title=<newtitle> <filename>
Exiftool says it has written the new Title value successfuly. And when running # exiftool <filename> again it indeed shows the new Title value.
Plex updates (because i've set it to do so whenever a file changes on disk) the library, but keeps the old list name (Title value).
Also leaving the -title= blank like so: # exiftool -title= <filename> should remove the title value altogether yet when I do so on a file previously processed with # exiftool -title=<newtitle> <filename> the OLD title value returns, rather than a blank one. This leads me to believe exiftool is not editing the data I want it to edit, maybe there are multiple "metadata variants" holding the information.