More > Media Center 17
Carnac - Optional
glynor:
--- Quote from: rick.ca on October 27, 2011, 09:17:44 pm ---...And in the unlikely event Carnac would update a field you prefer stay empty, it could be overridden using NEW: Tag On Import.
--- End quote ---
This is actually not working for me reliably. I suspect it has something to do with the "bad files" import stuff, but I'm not sure. Either way, Carnac is overwriting my explicitly defined Tag On Import rules in some cases. I'm also having trouble figuring out what runs first... Carnac or the Tag On Import settings...
As an example, in one of my libraries I'm using at the office, I have ZERO "traditional video files" in the library. In other words, [Media Sub Type]=Other for everything in the library, and everything that will ever BE in the library. These are all corporate videos and seminars and stuff. No TV Shows or Movies.
Carnac is getting in the way.
Most of my new seminar recordings' file names look something like this when they're imported:
\\jaxbhflash02\wowza\content\new\lcc\20111102-1402-auditorium-360pW.mp4
\\jaxbhflash02\wowza\content\new\lcc\20111102-1402-auditorium-720pW.mp4
-or-
\\jaxbhflash02\wowza\content\new\b51\20111027-1628-jms.mp4
From this, I want to apply the following tags on import:
[Place]="lcc" -or- "b51" depending on the file path
[Media Sub Type]=Other
[Public]=0 (this is a custom field)
[Name]=The way MC16 always worked, the filename without the extension.
So, I set up rules that look like they should do that (well, I'm trying). For example, I have a rule with Field set to Media Sub Type, and Value set to Other, and another rule with Field set to Public, and Value set to 0. I'm not even trying to get into parsing the file path for the [Place] tag yet.
Then, I copied a bunch of new files over into the appropriate folder that all matched that type of file naming scheme.
First of all, the [Name] field is wrong for every single file that imports, and I don't have a way to fix it automatically. For whatever reason, Carnac is parsing that file name and is importing the [Name] field like this (using those three example files):
1402-auditorium-360pW
1402-auditorium-720p
1628-Jms
So, it is trimming out the whole date field and doing something with it (I think assigning it to the [Date] field, but I'm not sure). That's fine, but I want it to stay in the [Name] field. Unfortunately, I can't assign this manually using a Tag On Import rule, because: There is no expression you can use to easily return a Filename without the file extension. At least not one documented on the Wiki!
So, if I assign [Name]=[Filename (Name)] (or using the Expression Function version of the same thing), then I get [Name]=blah.mp4. That won't work because then if I do Rename, Move, and Copy files, using the [Name] field (as is the plan after they're tagged), I end up with a file called blah.mp4.mp4. I could, of course, use RemoveRight([Filename (Name)],4) but then what if the a file gets ingested that ends in .mpeg or some other "4 character extension" (or more)? That won't work.
So, Carnac, which I don't need at all for ANYTHING in this particular watched folder, is just getting in the way and will NEVER be helpful.
Secondly... Every single file that will ever end up on this system will be slowly copied via FTP across the network onto that \\jaxbhflash02\ share. They ALL end up in the bad files list. It works as I described above if I move the files into a watched folder from another (unwatched) part of the \\jaxbhflash02\ share (so a "fast move" since it is really just renaming the file). BUT, if I move a file in from my computer's desktop (or from one of my recorders via FTP), they import very differently.
In this case, Carnac takes over, my Tag On Import rules are ignored, and my tags get all messed up. I get a random smattering of [Media Sub Types] (some Movie and some TV Show, probably depending on duration mostly) and the [Name] tags come in differently depending on which Media Sub Type happens to get auto-selected.
What I need to solve these problems are these three things:
1. It would be really nice to be able to disable Carnac on a folder-by-folder basis in the Import settings. A "Use Carnac to Automatically Fill Empty Tags" checkbox, down where it has the Ignore previously removed and Ignore Special files options would be perfect.
2. An expression that will return the Filename without its extension. I'd suggest a "mode" for the existing FileName() expression. The default returns the full filename, but FileName(,1) returns the current file name without its extension, or something like that. I basically need a way to fill the [Name] field the way it would have been under MC16, if Carnac DOES run and messes it up. I've had Carnac messing up the [Name] tag on my files at home too, but I'm not even going into that right now.
3. Tag On Import rules need to work for files that temporarily end up on the "bad files" list. The Tag on Import feature is absolutely useless for me until this is changed, because NONE of them work for the files I care about (which are all video files and are big and almost never import without ending up on that list for a little while).
Matt:
--- Quote from: glynor on November 03, 2011, 10:09:04 am ---2. An expression that will return the Filename without its extension. I'd suggest a "mode" for the existing FileName() expression. The default returns the full filename, but FileName(,1) returns the current file name without its extension, or something like that. I basically need a way to fill the [Name] field the way it would have been under MC16, if Carnac DOES run and messes it up. I've had Carnac messing up the [Name] tag on my files at home too, but I'm not even going into that right now.
--- End quote ---
Next build:
Changed: The expression function FileName(...) suppoprts an optional parameter for whether to include the extension (to get no extension: FileName(,0)).
The first parameter is the filename to analyze (it doesn't have to be the file's filename, it could be the image file, etc.). If it's blank, it defaults to the current file.
So this is the most efficient way to get the name with no extension: FileName(, 0)
Matt:
--- Quote from: glynor on November 03, 2011, 10:09:04 am ---3. Tag On Import rules need to work for files that temporarily end up on the "bad files" list. The Tag on Import feature is absolutely useless for me until this is changed, because NONE of them work for the files I care about (which are all video files and are big and almost never import without ending up on that list for a little while).
--- End quote ---
Next build:
Changed: Import will only mark a file as bad if it hasn't been changed on the file system for an hour (so auto-import won't put a fresh file copy in the bad database and then remove it when the copy finishes).
The bad database should only be used for files that legitimately fail to parse for some reason, to prevent the program from trying to parse them repeatedly ad nauseam.
It shouldn't be used for a simple file copy, and this change should accomplish that.
glynor:
Awesome-sauce.
I got no Number 1, but honestly, if it works without mucking with things (or if I can reliably override it with Tag On Import settings), then I'm golden.
rick.ca:
--- Quote ---I got no Number 1, but honestly, if it works without mucking with things (or if I can reliably override it with Tag On Import settings), then I'm golden.
--- End quote ---
On reading your previous post, I was concerned you were reporting Carnac was overriding a rule you had set for [Name]. I take it that was not the case—you had not specified a rule for [Name] because you didn't believe there was an expression that could do so. I still wonder if it's possible to use a Carnac-set value in a Tag on Import rule—possibly for the same field. For example, can I assume Carnac will have set [Name], and set a rule to use [Name] in an expression to set [Name] to something different?
I have these questions because I haven't found the time to set up a good test for this. My main library already tags all video files automatically (using Sick Beard and PvdImport). I thought I could create a test library by Cloning the main library and then Clearing it, but Clear also resets all the views (making it difficult for me to see how my set-up would be impacted by Carnac's behaviour). I suppose I need to clone my library, delete all the files, then clear the deleted files database... :-\
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version