David <[EMAIL PROTECTED]> wrote:
> Hi guys, recently i've been thinking of doing a program that scans a dir,
> reports the TOTAL time of all mp3 (MM:SS) and writes a file with that info.
> 
> Only problem is that i can't seem to find any info on this how to read this
> things out of CBR/VBR files, any1 know where i can get such info ?
> 
> Should not be too hard ... ?

For some self-contained code that does this, check out:

  http://www.mars.org/home/rob/proj/mpeg/maduration.c

A more complete implementation can be found in the MAD distribution:

  http://www.mars.org/home/rob/proj/mpeg/

Although it's not built by default, the program is in `madtime.c'; just do:

  ./configure
  make madtime

An obvious improvement would be to implement directory traversals. Currently
all files must be listed on the command line.

-- 
Rob Leslie
[EMAIL PROTECTED]
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

Reply via email to