Standalone Music Video section (without dependence on music files!)

Hi @ecomaniac

I’m happy to share my method. It’s a bit complex to set up, but once you have it running it’s pretty much automatic.

Unfortunately this isn’t a free solution as both apps I’m using are paid products I bought for other projects. Maybe there are alternatives out there?

OK, so I’m using Hazel, BBEdit, and a custom AppleScript.

First, I manually rename the file with this pattern:

Artist - Title (Year).extension

For instance: Cazwell - Tonight (2009).mkv

Hazel watches whatever folder you tell it to and then does stuff based on rules you give it. The Hazel rule I made for the Music Videos folder follows below. (The bulleted words are tokens you make inside Hazel. I won’t explain that part as it’s explained on the Hazel site and it’s pretty straightforward.)

If all the following conditions are met for the current file or folder

Name matches •Artist - •Title (•Year)
Kind is not Folder

Do the following to the matched files or folder:

Sort into subfolder with pattern •Artist - •Title (•Year)
Run AppleScript embedded script:

set Artist to item 1 of inputAttributes
set Title to item 2 of inputAttributes
set Year to item 3 of inputAttributes

set nfoFile to "/Volumes/Haunted Glen HD/Plex Media/Music Videos/" & Artist & " - " & Title & " (" & Year & ")/" & Artist & " - " & Title & " (" & Year & ").nfo"
tell application "System Events"
	if exists file nfoFile then
		
	else
		tell application "BBEdit"
			activate
			make new document
			set text of document 1 to "<?xml version=\"1.0\" encoding=\"UTF-8\"?>
<movie>
    <title>" & Artist & ": " & Title & "</title>
    <sorttitle>" & Artist & ": " & Title & "</sorttitle>
    <originaltitle>" & Artist & ": " & Title & "</originaltitle>
    <year>" & Year & "</year>
    <releasedate>" & Year & "-07-15" & "</releasedate>
    <tag>" & Artist & "</tag>
</movie>" as text
			save document 1 to "/Volumes/Haunted Glen HD/Plex Media/Music Videos/" & Artist & " - " & Title & " (" & Year & ")/" & Artist & " - " & Title & " (" & Year & ").nfo"
			quit
			
		end tell
	end if
end tell

So when I put “Cazwell - Tonight (2009).mkv” in the “Music Videos” folder, Hazel sees it, makes a folder called “Cazwell - Tonight (2009)”, adds the file in there, sees there’s no .nfo file, opens BBEdit and creates it, and saves it into the “Cazwell - Tonight (2009)” folder.

Since I am using using XBMCnfoMoviesImporter, the script also adds the artist as a “tag”, so when the music video is imported into Plex, it’s put into a collection named after the artist.

I usually don’t know the exact date, so the script just uses the year and (random date) July 15th in the .nfo file. If I do know the date, it’s easy enough to open the .nfo file and change it with a text editor.

You can also use an .nfo file manager like ViMediaManager to add more details like director, if you know them. It’s also handy to add genres, ratings, sort titles, etc.

Better yet, some music videos are already listed on IMDB and you can use ViMediaManager to download those details directly into the .nfo file.

(I didn’t script any of these extra details because I often don’t know them, and I just want a basic way to add the files to Plex. I can always add more details later.)

The only drawback is that Hazel needs to open BBEdit onscreen, so if you’re doing something else, it will steal the Mac’s focus while it creates the file. It’s super quick though, so after I add a file to the folder I just wait until the script is done.

I hope I explained that clearly enough. Feel free to ask questions if I left something out.

2 Likes

Thanks very much for the detailed response. I’m using Windows, but there are equivalent apps that can do what you describe.

Where we differ the most, however, is with respect to organization. You are apparently using the “Movies” library type, whereas I’m using “Other Videos” with the “Personal Media” agent. This came about because I keep all the music vids by a particular artist within a folder named for that artist - like my music structure (on a different drive). Using the “Other Videos” type prevents Plex from mangling all the video names every time a new video is added to that folder. The Movies library type expects only 1 main movie file per folder (except for appropriately named extras). So even tho the title field is “locked”, Plex will still change that field unpredictably when that folder gets added to.

Coincidentally, I name my files exactly the way you do. With my setup, when a new file is added to an artist folder, Plex uses the whole filename as a title, so I have to manually cut & paste the year from the title field into the date field and then add the appropriate collection(s). That’s manageable when adding only a few vids at a time.

What I was hoping for was something like your ViMediaManager to scrape IMVDb for metadata and then generate an NFO file for PLEX. This would provide me with more genres, which would be nice; as would the access to other fields to play with; and if automated, easy to implement. Unfortunately, the XBMCnfoMoviesImporter is only for movies and TV shows, so I’d have to change my library type and whole organizational structure. With over 2000 vids, that’s a daunting prospect. It’s either that, or coax the dev for that nfo importer to add “Other Videos” to that plugin’s functionality.

As it is, it’s not too much trouble to add a new vid manually, and I get most of the functionality I need. Shuffle play through the vids by collection is easy and fun except for that annoying 15 sec delay on occasion, as I mentioned before. To play by artist, I switch view on my Roku from Collections to Library/Folders and can play through all from a particular artist. Another wish list item would be replay gain tagging as in music. The volume difference between vids can be huge, as you probably know.

Thanks again for your effort. Here’s to hoping Plex surprises us all with some support. :astonished:

2 Likes

Gotcha. I’d love to get access to IMVDb in Plex somehow. Music videos are a big part of pop culture, and they really are short films with directors, casts, etc. These credits shouldn’t be lost to time!

4 Likes

I have to admire you guys for the pure dedication you’ve had to trying to get music videos to work as a standalone library - organized and attractive.

In the “movie” library solution though, one problem I feel is that every music video thumbnail is poster format (portrait style) - when there are no posters for music videos.

Music videos just need to show up as 4:3 or 16:9 thumbnails - or whatever Plex currently shows them in.

Credit to you for building these amazing workarounds. But it’s crazy that anybody has to do this, in a media serving product as old as Plex is now.

In summary again: Plex has the capability to do music video files perfectly, right now, today. It just needs to get rid of the ill-conceived dependency where music videos won’t appear in the library unless there are also corresponding music files. And allow music videos to exist in their own library - With files named like audio tracks. And everything indexed by artist.

But honestly, what gives? :rofl:

Plex team added the music video capability 5yrs ago. Then never touched it again and never listened to any feedback from users who try to use it? Has there ever been any feedback in Plex user history that said:

“Hey it would be great if we could have music videos in the library - but make them dependent on music files first!”

It’s all a bit like Plex Sync. I think I bought my lifetime Plex Pass in about 2012.
The larger the music library you use with Plex Sync in 2020, the slower the sync gets - hanging on “updating information” status, for hours and hours. In nearly a decade, the problems still have not been resolved with Plex Sync. So much for “product maturity” and “progressive enhancement”. Plex just decides that a feature which works 60-70% the way it should, is enough :man_shrugging:t2:

In the meantime, all I hear about in Plex News is more Plex products, apps and platforms - instead of fixing and finishing what you already have on existing apps and platforms. And really listening to your users.

5 Likes

OK, I have a very easy solution for this. If you hace your Music Video in .mp4, you can download mp3tag and put them the info inside the file, and when you refresh in Plex, the Artist is added in Cast. Only you have to do, is Matching with Personal Media.
If you Music Video has more than 1 Artist, you only have to do is put a comma ( , ) between each Artist and Done.
Only works with the Artist name and Genre, because the other tags aren’t useful for this.

3 Likes

I use Kodi for my music videos.

Because Plex is just garbage for music videos.

In plex, an optional menu entry for Music Videos should be up there on the left with Movies, TV Programmes, etc. The Music we listen to and Music Videos we watch are two different types of media. I should NOT have to delve into Music>Artist to try and find a music video!! It’s a joke, like you just don’t care.

I have everything working fine in Kodi, lots of lovely metadata, etc. and it works spectacularly well. Including “party mode” where it just random plays all my music videos. I enable party mode and cook dinner and get involved with the music with the videos and try not to cut my fingers off…

Why can’t we do the same thing in Plex? Come on folks!!! Lets pretend the Music videos are independent of the Music. Grab metadata for the music videos from the various sources out there, once done, work your own magic to find matches between artists from the two different libraries (Music and Music Video) and link them together if you really really want to (I could care less to be honest, I’m happy to have them separated). But seriously, it can’t be that hard.

3 Likes

Well I certainly agree that Plex is sadly garbage for music videos. But I just spent about 3hours investigating Kodi.

It does have a specific Music Videos library, to which you can attach a music videos metadata scraper, like IMVDB. But no matter which scraper plugin you use, if it can’t exactly or closely match your music video based on name (or the video name is correct, but the video is simply not in the DB service)… you would assume the video would still appear in your library and let you manually name it and add a thumbnail. But nope. Instead, the video does not appear in the library at all. Or it auto-matches to an incorrect item, then cannot be “unmatched” like in Plex.

For example. My music video:
"Kylie Minogue - Red Blooded Woman"

Was matched and indexed in Kodi by one of it’s 2 music video scrapers (the one considered the “better” one) as:
"Kylie Minogue - Crystallize"

Close, huh :face_with_raised_eyebrow: And then it doesn’t let you change it.

Cue: lots of nerds trying to create their own workarounds using homemade filename-only scrapers that kick in when the auto match causes problems:

Music video scraping still sucks! ← similar rage from Kodi user, as my rage.
Looking for a method to scrape by filename

But honestly, this should all be resolved in native behaviour of Kodi. Otherwise we are going down the rabbit hole again, of cottage plugins and scripts to get around the problem. Life is just too short for the average end user to fiddle with that for hours.

All these servers need to do with music videos is:

  • Scrape based on filename or metadata.

  • Automatch exact matches. But offer an unmatch option.

  • Non-exact matches = suggest nearest matches.

  • If that’s no good, then fallback even further to populating fields based on filename or metadata.

  • .:. Whatever the end result (matched or manual) - show a goddamn landscape thumbnail for the video, and index it by artist name.

The end.
Nothing it seems, can achieve this sequence, without the user jumping through hoops, getting incorrect results, videos not appearing at all, or videos just looking craptastic in the library.

They’re just basic little videos :rofl: Often with correct artist names in filename. Even with zero metadata scraping, they could look perfectly ok and be indexed by artist name. If only there was a competent system offering this.

2 Likes

Hi All,

I come back to this issue every few months, as it really bugs me that we can’t have a stand alone Music Videos library - with all the functionality and features of the Music library.

I’ve tried all the suggestions, and some experiments of my own, but haven’t found a suitable solution.

Today I tried something new - I set up a bunch of MP4’s using the standard music folder layout - Artist, Album, Track.

I then created a new (test) music library

As expected, the Plex scanner found nothing in my library.

I then changed all the file extensions from MP4 to MP3, and ran the scanner again.

Low and behold, the library was populated, and looked just like a normal music library, with all the features. (Strangely, when I play the tracks I just get audio. I didn’t expect them to play???)

It seems to me there’s a simple solution to this issue - just allow video file types to exist in music libraries. I expect the Plex parameters for music libraries only include audio file types - MP3, WAV, FLAC, WMA, AAC, etc. This list could be expanded to include video file types, MP4, MKV, AVI, WMV, etc. This feature could be turned on or off as required by the user.

Any thoughts?

1 Like

I would be content to have custom filter where there I can say specify if a music track has an attacked video for that to appear in playlist. Apply this to my whole music collection in addition to other filters I add like ratings must be >3stars or genre or whatever. Seems like it should be an easy condition to add to the filtering that is already there.

Well I’ve been reading these comments all morning hoping to find a simple way out of the fix I put myself in three years ago when I simply created an “other video” directory called Music Videos and then proceeded to amass over 8,000 music videos there without creating artist folders. I find the required relationship between music videos and music only files hard to understand as I have far fewer mp3’s than I do mp4’s and have basically stopped collecting audio only files. My only saving grace, if there is one, is that I was fairly consistent in naming my music videos with the artist name first, followed by a dash, and then the title of the song. I have no idea about what the album name is or the year produced.

The idea of creating individual artist folders manually at this point and moving 8,000 files into the correct folder seems a bit daunting and I was hoping there was a way I could automate that task.

Diving back in to add artist subfolders under my “Music Videos” folder. All of my videos have a title that begins with the artist name, a dash, and then the song title. My question is will I have to remove the artist name from the file name now that I am putting the songs under each individual artist sub folder?

Example:
image

Personally, I wouldn’t move a single video, but create symlinks instead, as suggested here: The Best Setup for Music Videos Using Both the Music and Video Scanners

On topic - it’s infuriating to witness how a ‘smart’ product like Plex can behave so immensely dumb when it comes to Music Videos. So I’m all for implementing the suggested feature. Just too bad my LG TV only has a Plex app, otherwise I’d probably have switched to an alternative by now.

I spent two days rearranging my files into artist folders but that is a deep as I carried it. I have over 2700 Artist Folders for videos and only about 650 artist folders for MP3’s. So to place an MP3 into each Music Video folder I would have to go out and find 2050 more MP3’s and place them in each artist folder under Music Videos. That is the way I understand it at least. Won’t be happening anytime soon.

Now here is another odd thing I can’t figure out. I put about 10 hours of work into making sure my music video files had the artist, then a dash, then the title followed by other artist on the song or some other bits of info. In most cases I see that displayed in the folder listing but if the artist begins with the word “The” as in, “The Beatles”, etc… the dash disappears! Why would the dash disappear just because the artist had a “The” in front of their name? image

Bumping this again.
If anyone wants this feature, please VOTE for it at the top of this thread. With only 32 votes at time of writing, I suspect this will never get improved (we will, literally, all die before it gets any attention)… unless the votes increase.

@distantearth I did an extensive write up about implementing Music Video support which may interest you.

I WANT MY MTV!

:rofl: Agreed!!!

Every single Plex user should put their vote right here, right now! :slight_smile:

@distantearth I did an extensive write up about implementing Music Video support which may interest you.

I’m getting “Oops! That page doesn’t exist or is private.”

1 Like

The post was moved to the main feature request so it would get more eyeballs.

I WANT MY MTV!