🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.multimedia
Article #638

How to get duration of a vbr-mp3 file?

#638
From: MR
Date: Sun, 16 May 2004 22:15
23 lines
1604 bytes
Having been happy when found a possibility to get the duration of a
mp3-file by just reading out 

 TMediaPlayer::Length

I finally found that this value is not always correct, at least not
for the vbr-files my mp3-recorder creates. In fact there was a huge
difference for a file which real duration was about 7h and
TMediaPlayer::Length holds a value about 4h.

Is there another possibility/library to get the exact duration of such
kind of mp3-files? 

(The motivation was to prefix the files being created with the
date/time when recording started. Unfortunately the files have a
time-stamp, when recording ended. So I had to calculate the
starting-time by substractiing the duration from the end-of-record.
Unfortunately the recorder only records in this
variable-bitrate-format.)

Thanks a lot,

MR
Technical Details
Message-ID: <dipfa0110nb2ipl7kneq2fpkiga1802v82@4ax.com>
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d0fc,8c881f1e81bec7ed,start
X-Google-Attributes: gid10d0fc,public
From: M_R <>
Newsgroups: borland.public.cppbuilder.multimedia
Subject: How to get duration of a vbr-mp3 file?
Date: Mon, 17 May 2004 00:15:41 +0200
Message-ID: <dipfa0110nb2ipl7kneq2fpkiga1802v82@4ax.com>
X-Newsreader: Forte Free Agent 2.0/32.646
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 213.54.211.241
X-Trace: newsgroups.borland.com 1084745738 213.54.211.241 (16 May 2004 15:15:38 -0700)
Lines: 23
Path: arc1-ca.pugleaf.net!controlnews3.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail