I found this very old thread, not sure whether someone still will see my question:
I would like to copy the Song Length from the MP3 file to the TLEN tag for my MP3 collection. Is this possible to do with MP3Tag?
There should be the possibility to get the information and copy it to the TLEN tag using a script or macro. Did someone already tried such options?
Thanks.
here is a thread from the FAQs about the general procedure.
In your case it would be the field LENGTH and
Format string: %_length%
Please note that if you change the length of the song with an audio editor that this will not be relfected in the field LENGTH but only in the property _LENGTH.
Thanks a lot, I already could indicate the real duration into milliseconds using the formula
$if2(%length%,$mul(%_length_seconds%,1000))
But how do I copy the content of real length (_Length) to the TLEN tag (Length) ?
I understand your points. But at the moment I can only show these tags in the list panel. Nothing is written to the TLEN tag.
Do I need to use Actions (Alt-6) or Scripting ?
In the File List (as in your screenshot) you can use %_length% as Value to show the content of TLEN
Could you please show us the definition of your File List column TLEN?
(Right click on the column header and click on the context entry "Customize Columns")
You can name your column however you like. Even "This is my track length" would be possible.
Exactly.
To get this straight:
TLEN is a tag field from the ID3 standard that can contain more or less any data. MP3tag shows this field as LENGTH. This field does not get updated if the audio part of a file is changed in size.
The real length of a file is written by the audio program and can be seen in MP3tag with _LENGTH - but it cannot be modifed by MP3tag.
If the real length should be displayed, then use _LENGTH.
Thank you all for the feedback, now I successfully wrote the Tag TLEN with my first simple Action. All is perfectly well, just if there is already a value in the TLEN then it will not be updated. But I can delete the value first , then it works super.
By the way the value of my TLEN column was simply %length%, was just to check whether the value was written or not.
In fact I will not use TLEN, rather I was just curious to explore the ID3 tags and on how to manipulate the tags, to get values. I am a beginner rather and I clean my MP3 list to be used in the car.
IMHO, it would have been much more effective to deal with fields and information that have a real value then spent all this effort with screendumps and actions of data that will not be used in the end.
Just a side note: as you do not get more accurate data for the length than with a resolution of 1 second, it is more or less pointless to multiply the value by 1000 to see the same data only this time with the unit milliseconds.
So you could have used %_length_seconds% straightaway.