IPB

Welcome Guest ( Log In | Register )

> Notice!

Please take a minute to check our Frequently Asked Questions. Use Search to reveal possible related topics.

Also make sure you've read the Forum Guidelines before posting in this forum.

 
Reply to this topicStart new topic
> Average file time, Establishing the length of a "typical" track
Zerow
post Jul 18 2017, 00:10
Post #1


Member


Group: Full Members
Posts: 693
Joined: 31-January 15
From: East of Eurolandia
Member No.: 20375
Mp3tag Version: 2.84



Does anyone know how to count the average time of files?

I guess all what would had to be done would be adding numbers from the LENGTH tag field and then dividing by the overall number of files. But time is not counted in a decimal system, as files are
Go to the top of the page
 
+Quote Post
stevehero
post Jul 18 2017, 00:36
Post #2


Member


Group: Full Members
Posts: 830
Joined: 3-December 10
From: Ireland
Member No.: 13334
Mp3tag Version: 2.84



QUOTE (Zerow @ Jul 18 2017, 00:10) *
Does anyone know how to count the average time of files?

I guess all what would had to be done would be adding numbers from the LENGTH tag field and then dividing by the overall number of files. But time is not counted in a decimal system, as files are

Lower right hand coner of UI. Has file count, time and size.

Best you can do is divide the total time of selected by selected file count.

This post has been edited by stevehero: Jul 18 2017, 00:38


--------------------
Go to the top of the page
 
+Quote Post
ohrenkino
post Jul 18 2017, 08:28
Post #3


Member


Group: Full Members
Posts: 9124
Joined: 9-December 09
From: Norddeutschland / Northern Germany
Member No.: 11458
Mp3tag Version: 2.84d



ZITAT(Zerow @ Jul 18 2017, 01:10) *
Does anyone know how to count the average time of files?

I guess all what would had to be done would be adding numbers from the LENGTH tag field and then dividing by the overall number of files. But time is not counted in a decimal system, as files are

Start with the lowest unit and use $mod(xxx,60) to find the remainder.
Use $div(xxx,60) to find the integer of the division and add it to the next unit.
Go on like that until you have calculated all sub-values.

Did you know: most people drown in rivers that have an average depth of 1.5 meters.

This post has been edited by ohrenkino: Jul 18 2017, 09:45


--------------------
42 - wie war die Frage / what was the question / quelle était la question
Go to the top of the page
 
+Quote Post
DetlevD
post Jul 18 2017, 10:20
Post #4


Member


Group: Full Members
Posts: 6671
Joined: 26-May 06
From: Wuppertal, Germany, Planet Earth
Member No.: 3194
Mp3tag Version: 2.84c



QUOTE (Zerow @ Jul 18 2017, 01:10) *
Does anyone know how to count the average time of files? ...

Maybe have look at ...
https://forums.mp3tag.de/index.php?showtopi...ost&p=26423

In general you can add %_length_seconds% per file and divide the sum by %_total_files%.

Try this export file (one line):
$filename($getEnv('USERPROFILE')'\Desktop\Export.Time.Files.Avg.txt',UTF-8)'Total Time [s]: '%_total_time_raw%', Total files: '%_total_files%', Average Duration [s]: '$div(%_total_time_raw%,%_total_files%)

Output examples:
Total Time [s]: 28, Total files: 4, Average Duration [s]: 7
Total Time [s]: 344, Total files: 4, Average Duration [s]: 86
Total Time [s]: 330, Total files: 2, Average Duration [s]: 165
Total Time [s]: 507, Total files: 3, Average Duration [s]: 169
Total Time [s]: 146, Total files: 29, Average Duration [s]: 5

What do these values tell us?

DD.20170718.1120.CEST, DD.20170719.1846.CEST

This post has been edited by DetlevD: Jul 19 2017, 17:46


--------------------
* Beyond that, don't ask, when you don't know what to do with the answer. *
♥ home is where the heart is ♥
Go to the top of the page
 
+Quote Post
poster
post Jul 18 2017, 12:49
Post #5


Member


Group: Full Members
Posts: 1400
Joined: 22-March 09
Member No.: 9241
Mp3tag Version: 2.84c



ZITAT(stevehero @ Jul 18 2017, 01:36) *
Lower right hand coner of UI. Has file count, time and size.

Best you can do is divide the total time of selected by selected file count.

That gives you an average-result that does not make really sense.

For instance:
If you have 10 files that have a length of 5 minutes und ten songs that have a length of 2 minutes you get 3,5 minutes as average result for a song despite the fact that you oown no song of this length and even no song that comes near this.
Go to the top of the page
 
+Quote Post
Zerow
post Jul 18 2017, 14:31
Post #6


Member


Group: Full Members
Posts: 693
Joined: 31-January 15
From: East of Eurolandia
Member No.: 20375
Mp3tag Version: 2.84



QUOTE (stevehero @ Jul 18 2017, 01:36) *
Lower right hand coner of UI. Has file count, time and size.

Best you can do is divide the total time of selected by selected file count.
How stupid am I not to realize this on my own? Thanks

[(days x 24 + hours) x 60 minutes x 60 seconds] / number of files

And the answer is: 162 seconds

2:42- hmmm, how interesting and valuable that piece of information that is...

This post has been edited by Zerow: Jul 18 2017, 17:38
Go to the top of the page
 
+Quote Post
Zerow
post Jul 18 2017, 21:24
Post #7


Member


Group: Full Members
Posts: 693
Joined: 31-January 15
From: East of Eurolandia
Member No.: 20375
Mp3tag Version: 2.84



QUOTE (poster @ Jul 18 2017, 13:49) *
That gives you an average-result that does not make really sense.

For instance:
If you have 10 files that have a length of 5 minutes und ten songs that have a length of 2 minutes you get 3,5 minutes as average result for a song despite the fact that you oown no song of this length and even no song that comes near this.
My math teacher in high school used to said: "I have drunk 1 liter of vodka and you have drank zero. So, on average we both have drank 0.5 liter, right?" So of course on small scale it does not make any sense. But it does with thousands of objects

And I was not trying to know what is the average length of songs in history of mankind. And even if, then what- I you should then take into consideration that fist vinyl records could not hold more than 3 minutes or so? And do what with that issue? And what about all those club and album / extened mixes- count them in or out?

I just wanted to know what I have. But later on I realized I should take out of equation files from albums that are scores and OST [as the also may contain non-songs]. And also take out songs that have smooth transition [and I keep them as a single file]. And also leave out tracks that I do not keep in 100% [if I like only a guitar solo from a breakdown then I keep only the solo and not the whole song]. And so, the second time I ended up with 4:14

This post has been edited by Zerow: Jul 18 2017, 22:47
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 17th October 2017 - 10:50