# Display LENGTH in column

**URL:** https://community.mp3tag.de/t/display-length-in-column/59930
**Category:** Support
**Created:** [February 2, 2023, 2:44pm UTC](https://community.mp3tag.de/t/display-length-in-column/59930 "2023-02-02T14:44:17Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![fasu](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/c89c15/32.png) [@fasu](https://community.mp3tag.de/u/fasu)
#### Post date: [February 2, 2023, 2:44pm UTC](https://community.mp3tag.de/t/display-length-in-column/59930/1 "2023-02-02T14:44:17Z")

</div>

Hello,  
After several hours of fruitless research, I come to seek help here !

I have many files for which the ''Length'' column is empty. My goal is therefore to fill this column (or another) with the duration of each track (in miliseconds, it will be perfect).

I create a new Column New:

- value: empty
- Field: empty
- Sort by: empty

I create a new action group

- Name of group action: duration  
In this "duration", I create only one "action type": FORMAT VALUE

In Format Value I can't select my command (this is the first thing I don't understand)

- So I select: Field = LENGTH
- and FORMAT STRING = %\_length\_seconds%

I apply the actions, taking care to check only the "duration" action that I created.

Then, I select my audio files, and I click: Actions \> Duration.

And nothing happens 😉  
Even the "Length" column does not change.

I have read the documentations and a bit the forum, but I can't find the solution.

Counting on your help,

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [February 2, 2023, 2:56pm UTC](https://community.mp3tag.de/t/display-length-in-column/59930/2 "2023-02-02T14:56:30Z")

</div>

Please note that LENGTH is a field that has no significance in respect to the length of a track as determined by the creating program.  
The property for the length can be displayed with the variable\_LENGTH.

If you create a column with

> [@fasu](#):
>
> - value: empty
> - Field: empty
> - Sort by: empty

then it does not show any data.  
If you want to see the length as found in the file header, use  
`value: %_length%`  
Please note, that the propery \_LENGTH cannot be written my MP3tag.  
if you want to see your user-defined field (which could contain anything), use  
`value: %length%`  
If you want to also modify this field in the column, then also fill  
`Field: %length%`  
More about the customization of the file list, see

> **[File List – Mp3tag Documentation](https://docs.mp3tag.de/customization/file-list/)**
>
> Customization options for the File List, including adding, removing, hiding, and rearranging of columns. Mp3tag is the universal Tag Editor.

For the files that you have treated with your action, check the extended tags dialogue Alt+T to see if a field LENGTH has been created.

If you have files where the column displaying the data from \_LENGTH stays empty, then you have a file that has to be checked as it apparently has a broken header.

---

<div class="post-metadata">

### Author: ![LyricsLover](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/l/c6cbf5/32.png) [@LyricsLover](https://community.mp3tag.de/u/LyricsLover)
#### Post date: [February 2, 2023, 3:14pm UTC](https://community.mp3tag.de/t/display-length-in-column/59930/3 "2023-02-02T15:14:01Z")

</div>

> [@fasu](#):
>
> I have many files for which the ''Length'' column is empty.

If your files really don't show content for %\_LENGTH% as @ohrenkino wrote above, I highly suggest to use the recommended programs here:

> [@How to check files for errors?](https://community.mp3tag.de/t/how-to-check-files-for-errors/44633):
>
> It’s required and often helps to reduce support cycles to check files for errors before filing a bug report. Symptoms of erroneous files are often missing or wrong bitrate or length audible blips or skips tags seem to be sticky and cannot be removed There are some really good tools to check the files for errors, namely MP3 Diags — identifies many different issues in MP3 files Website: [http://mp3diags.sourceforge.net](http://mp3diags.sourceforge.net) Download: [MP3 Diags - Getting MP3 Diags](http://mp3diags.sourceforge.net/010_getting_the_program.html#binWindows) If the font size in MP3 Diags is …

---

<div class="post-metadata">

### Author: ![fasu](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/c89c15/32.png) [@fasu](https://community.mp3tag.de/u/fasu)
#### Post date: [February 2, 2023, 3:26pm UTC](https://community.mp3tag.de/t/display-length-in-column/59930/4 "2023-02-02T15:26:04Z")

</div>

Thank you for your help.  
Ahhh, I understand that Mp3tag cannot calculate the length itself: the length must have been created beforehand by the MP3 creation software...  
So I'm going to look on this side (maybe with an FFMPEG or FFPROBE command??)

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [February 2, 2023, 3:30pm UTC](https://community.mp3tag.de/t/display-length-in-column/59930/5 "2023-02-02T15:30:07Z")

</div>

I don't understand your intention.  
Don't you have an existing file?  
That will show the length but not in the field LENGTH but in the property that is shown with \_LENGTH (with a leading underscore).

---

<div class="post-metadata">

### Author: ![fasu](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/c89c15/32.png) [@fasu](https://community.mp3tag.de/u/fasu)
#### Post date: [February 2, 2023, 3:36pm UTC](https://community.mp3tag.de/t/display-length-in-column/59930/6 "2023-02-02T15:36:44Z")

</div>

Sorry for not being clear enough: my files are produced by a tool that uses the Google Text to Speech API. And it appears that the files do not include information on their duration.  
By the way, all the files are tagged with "ERROR: MP3 header parse error".  
This is why indeed, I think that the problem comes from there.

---

<div class="post-metadata">

### Author: ![ohrenkino](https://community.mp3tag.de/user_avatar/community.mp3tag.de/ohrenkino/32/4843_2.png) [@ohrenkino](https://community.mp3tag.de/u/ohrenkino)
#### Post date: [February 2, 2023, 3:40pm UTC](https://community.mp3tag.de/t/display-length-in-column/59930/7 "2023-02-02T15:40:00Z")

</div>

> [@fasu](#):
>
> By the way, all the files are tagged with "ERROR: MP3 header parse error".

An MP3 without the proper information in the header is a broken file.  
The error message indicates that.  
In that case it would not make a difference whatever you added as tag data.  
Please follow @LyricsLover 's advice and check the files for integrity first.  
All further efforts are vain as long as the file is broken.

---

<div class="post-metadata">

### Author: ![fasu](https://community.mp3tag.de/letter_avatar_proxy/v4/letter/f/c89c15/32.png) [@fasu](https://community.mp3tag.de/u/fasu)
#### Post date: [February 2, 2023, 3:43pm UTC](https://community.mp3tag.de/t/display-length-in-column/59930/8 "2023-02-02T15:43:04Z")

</div>

Yes, I'm looking at this and I have contacted the developers of the tool that produces the MP3s. The solution is there.

Thanks again for your help everyone!

---

<div class="post-metadata">

### Author: ![system](https://community.mp3tag.de/uploads/default/original/2X/c/ce7035d426cb755a7916793326d23b465222a407.png) [@system](https://community.mp3tag.de/u/system)
#### Post date: [March 4, 2023, 3:43pm UTC](https://community.mp3tag.de/t/display-length-in-column/59930/9 "2023-03-04T15:43:52Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
