Mass editing the titles of downloaded youtube videos

Over the last few years I’ve been downloading youtube Let’s Plays from various channels and of various video games; I currently have over 7300 videos. I have these named as {Video Game} - {Release Date} - {Playlist Position (if applicable)} - {Video Title}.mp4 and Plex presents each video’s title as being the entire file name. For example, Rimworld - Critical Chaos - 2019-03-30 - E01 - Smarter Than An Elk whereas I simple want the video title to be “Smarter Than An Elk”. I could go through each video and manually change the title but that’s horribly impractical.

Is there a tool that lets me bulk rename videos using a regular expression or something similar?

1 Like

Mp3tag can do that with its
Convert - Filename->Tag
feature.
https://www.mp3tag.de/en/index.html

1 Like

Will that work with videos? It appears to be an audio only program.

It handles mp4 files just fine.

Hmm. I’ll give it a try. Thanks.

I tried using MP3Tag on a folder with 5 videos in it, the videos have the correct title now according to MP3Tag, for example, the video Civilization 5 - 2018-09-06 - E01 - Barbs Are Back.mp4 has the Title tag “Barbs Are Back” but in Plex scanning the library’s files doesn’t update Plex’s metadata.

“Scanning” won’t update metadata.
But “Refresh Metadata” should do it, provided you have

  • written the title into the right meta tag and
  • have activated the Local Media Assets agent and
  • the item is not “unmatched”

I have the Local Media Assets enabled for movies, tv shows and the like but I don’t see any agent options for Other Video libraries.

Other Videos libraries are actually Movie libraries, with the agent set to “Personal Video” and the scanner to “Plex Video”.

Okay so I’ve set the library’s scanner to Plex Video Files Scanner and the agent to Plex Movie which has the LAM as its highest priority agent, but I don’t understand how I’m supposed to match a bunch of effectively random videos.

No, Plex Movie is not the right choice.
Leave it at Personal Media.

Okay. Plex still isn’t reading the Title tag from the videos that I’ve corrected with MP3Tag.

Could you make a screenshot of mp3tag, with one of the videos open in it?

Also please take a look at the Plex XML info of this video in Plex. please copy the content of the guid="...." property.

Here’s the listing of one series of Civilization 5: https://i.imgur.com/Q3Wp4wL.png

The first video in the series, Double Decking Cities, has the guid value of com.plexapp.agents.none://8a18e34480e558b62e437e2f611d9fce635d4e35?lang=xn

OK, this means that it is already correctly matched as ‘Personal Media’.
Settings - Server - Agents - Movies - Personal Media
Is the line ‘Local Media Assets’ activated and at the top position?

1 Like

It was not, but it is now.

Refresh Metadata again, pls.

Hey hey their titles are correct now. Fantastic. Now I have 2TB of videos to process (ouch!). Thanks.

1 Like

Okay I got all my videos titles editing using MP3Tag but now I have another problem: Plex is sorting the videos by their title rather than by their file name. So videos that are in a series (nearly all of them) are effectively unplayable because there’s no order to them.

Then you must either name them so, that the episode name is “sorting” them correctly

or

you must make them into a tv show (and therefore apply the naming rules for tv shows and put them into a library of the type ‘TV Shows’)
https://support.plex.tv/articles/200265256-naming-home-series-media/