 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Georgis Kiriadis Guest
|
Posted: Tue May 10, 2005 3:43 pm Post subject: MP3 operations |
|
|
Hello,
I need to cut starting piece of MP3 file, and also
to change bitrate. Lets say the original is 128kbps
8 minutes, i need to get 1.5 minutes 64kbps.
Are there any Delphi toos for the job?
Also, what is the maximum bitrate possible for MP3?
Are there codecs which can produce 192kbps or higher?
Thanx.
|
|
| Back to top |
|
 |
Jens Gruschel Guest
|
Posted: Wed May 11, 2005 12:27 am Post subject: Re: MP3 operations |
|
|
| Quote: | I need to cut starting piece of MP3 file
|
Cutting a MP3 file with constant bitrate is simple. Find the end of a
frame (each MP3 file consists of many small frames) and cut the file
there. See http://www.wotsit.org
Cutting a MP3 file with variable bitrate is more difficult, because you
need to restore the Xing header (which is used to jump foreward /
backward within the file and also to find the length).
| Quote: | to change bitrate. Lets say the original is 128kbps
8 minutes, i need to get 1.5 minutes 64kbps.
|
So I assume it's better to decode the MP3 to a WAV file, cut the WAV
file (which is very, very easy, you just have to generate a new header),
and encode the WAV back to a MP3 file.
| Quote: | Are there any Delphi toos for the job?
|
AFAIK there are no native Delphi tools, which do this directly (maybe
there are components, which make use of Windows / Media player). But
there are some pretty good non-Delphi tools, which can be used with
Delphi (you need some DLL):
Decoding:
http://www.fmod.org/
or
http://www.un4seen.com/
(both free for freeware projects, both cheap for shareware projects)
Encoding:
I cannot provide you are direct link, but there must be a Lame DLL out
there, and I've heared there is another library called Blade (both free
AFAIK).
| Quote: | Also, what is the maximum bitrate possible for MP3?
Are there codecs which can produce 192kbps or higher?
|
I think the maximum bitrates are 448kbps (version 1-3, layer 1), 384kbps
(version 1, layer 2), 320kbps (version 1, layer 3), and 160 kbps
(version 2 & 3, layer 2 and 3). Since V1L3 seems to be the most common
version / layer, 320kbps is the most common limit (V1L3 has following
bitrates: 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256,
320). But I don't know the technical maximum of Lame / Blade.
Jens
|
|
| Back to top |
|
 |
Georgis Kiriadis Guest
|
Posted: Wed May 11, 2005 6:29 am Post subject: Re: MP3 operations |
|
|
Thank you Jens.
"Jens Gruschel" <nospam (AT) thisurldoesnotexist (DOT) com> wrote
| Quote: | I need to cut starting piece of MP3 file
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|