INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Write a calculated field into file tag  (Read 1620 times)

89ZEF

  • Recent member
  • *
  • Posts: 40
Write a calculated field into file tag
« on: March 06, 2019, 06:49:16 am »

is it possible for a calculated data field to be stored in the actual file data?

I want to store a custom field "RATING WMP" which basically is [Rating]*51
Display is OK but the tag isn't actually written to the file.

It is needed for my other software to work.
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42047
  • Shoes gone again!
Re: Write a calculated field into file tag
« Reply #1 on: March 06, 2019, 07:53:34 am »

Calculated fields can't be stored in the file tags.  I think this is because they could change all the time, so keeping up to date would be a challenge.

But you can make a field that is stored in the tags and copy all the data from your expression column into it.  You could also in-place edit and enter the expression.
Logged
Matt Ashland, JRiver Media Center

89ZEF

  • Recent member
  • *
  • Posts: 40
Re: Write a calculated field into file tag
« Reply #2 on: March 06, 2019, 10:30:19 am »

Thanks for your answer Matt

But you can make a field that is stored in the tags and copy all the data from your expression column into it.  You could also in-place edit and enter the expression.

How would that work? Are you suggesting a manual copy/paste?
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42047
  • Shoes gone again!
Re: Write a calculated field into file tag
« Reply #3 on: March 06, 2019, 10:41:13 am »

Just use right-click > Library Tools > Move / Copy Fields...

Or to enter an expression when you edit, just put an equal at the front of the edit.
Logged
Matt Ashland, JRiver Media Center

89ZEF

  • Recent member
  • *
  • Posts: 40
Re: Write a calculated field into file tag
« Reply #4 on: March 06, 2019, 10:53:35 am »

well I just gave it a shot and it sure works but doesn't solve my workflow as I want this behavior to be dynamic.
I change my ratings frequently and would like the custom field to be updated straight after any modification.
I guess MC can't do this... And that's a major drawback that would prevent me from using the software in production environment :(
Logged

89ZEF

  • Recent member
  • *
  • Posts: 40
Re: Write a calculated field into file tag
« Reply #5 on: March 25, 2019, 08:44:06 pm »

Thread update

I did not find a technical solution but did not spent too long looking for one either.
I changed my workflow for the better, in a way that would prevent me from being prone to this "issue".

I'm still being curious though as of how one could manage scripting this.
Will keep this thread updated if motivation strikes me
Logged

Matt

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 42047
  • Shoes gone again!
Re: Write a calculated field into file tag
« Reply #6 on: March 25, 2019, 08:48:57 pm »

Is "Rating WMP" a field that would be generally useful for others that we should just add?  Thanks.
Logged
Matt Ashland, JRiver Media Center

89ZEF

  • Recent member
  • *
  • Posts: 40
Re: Write a calculated field into file tag
« Reply #7 on: March 25, 2019, 09:10:37 pm »

Difficult to answer as it "depends".

This field was non standard but because forced by Windows Explorer or Windows Media Player, it became part of the standard.

see mp3tag thread:
https://community.mp3tag.de/t/mp3-ratings/13935
(Check "MrSinatra" answer)

and
https://en.wikipedia.org/wiki/ID3
section: ID3v2 rating tag issue



I encountered the issue when importing FLAC files tagged in Media Center into Traktor (from Native Instruments).
Traktor would not recognize the existing "Rating" field but only the "RATING WMP"
See attachment for MediaInfo outputs.

A workaround would be using AIFF format.
Logged
Pages: [1]   Go Up