Windows metadata always returns 0 for 'Length' (.mp4 files)

Bulk Rename Utility How-To's

Windows metadata always returns 0 for 'Length' (.mp4 files)

Postby Jack2 » Sat Feb 05, 2022 2:58 pm

Hi

I'm trying to add-in some text with the Lengths of some mp4 files. (The Length ("duration") times is to be taken from the Windows metadata). I'm using the field: 'Length' , aka 'System.Media.Duration', which is listed in BRU's properties for the files.

In the Add box, I'm using the syntax <(System.Media.Duration)> , as-per the userguide page 160.

It kinda works, but returns the length as a single digit, "0", every time. Same result if I use <(Length)>

The files are all pretty short (0 to 2 minutes). Is it possible that BRU is returning the Length in hours, or something? Can I change that? I'm happy to just use seconds; or hh:mm:ss format or similar.

I do have 'Renaming Options' switched on in the BRU menu.
BRU version 3.4.3.0. Windows 10 home, latest build.

thanks
Jack2
 
Posts: 30
Joined: Wed Nov 14, 2018 4:32 pm

Re: Windows metadata always returns 0 for 'Length' (.mp4 files)

Postby Admin » Mon Feb 07, 2022 1:03 am

Hello, what does it show in Windows itself (File Explorer then File Properties) for these files? thanks
Admin
Site Admin
 
Posts: 2354
Joined: Tue Mar 08, 2005 8:39 pm

Re: Windows metadata always returns 0 for 'Length' (.mp4 files)

Postby Jack2 » Mon Feb 07, 2022 10:36 am

Win explorer shows the actual file lengths in hh:mm:ss format (under field 'Length')
Jack2
 
Posts: 30
Joined: Wed Nov 14, 2018 4:32 pm

Re: Windows metadata always returns 0 for 'Length' (.mp4 files)

Postby Jack2 » Mon Feb 07, 2022 10:39 am

Oh hold on, I've just done a restart (had something protracted yesterday) and now it's working fine, showing hh-mm-ss format actual lengths.

Sorry about the diversion, it's fine!
Jack2
 
Posts: 30
Joined: Wed Nov 14, 2018 4:32 pm

Re: Windows metadata always returns 0 for 'Length' (.mp4 files)

Postby Jack2 » Mon Feb 07, 2022 10:41 am

>now it's working fine

meaning BRU is working fine, as expected. thanks :)
Jack2
 
Posts: 30
Joined: Wed Nov 14, 2018 4:32 pm

Re: Windows metadata always returns 0 for 'Length' (.mp4 files)

Postby Admin » Tue Feb 08, 2022 12:54 am

Great that it's working again! 8)
Admin
Site Admin
 
Posts: 2354
Joined: Tue Mar 08, 2005 8:39 pm


Return to How-To