Re: Trimming heads and tails for audio
Re: Trimming heads and tails for audio
- Subject: Re: Trimming heads and tails for audio
- From: "Paul Sanders" <email@hidden>
- Date: Mon, 15 Mar 2010 11:17:59 -0000
The simplest way is to decompress the file, trim it and then
recompress it. Working with compressed formats directly is
complicated and depends (obviously) on the file format you are
working with. You have to get to grips with the way the data is
organised into frames, basically.
For MP3 this is relatively simple, except for the hated 'bit
reservoir' problem which makes life hugely more complicated.
Gabriel Bouvigne (of LAME fame) has documented the MP3 frame
header format here:
http://www.mp3-tech.org/programmer/frame_header.html
For AAC, you need to learn about the structure of MP4 files.
Most of what you want to know is in ISO document 14496-12 (which
you can buy from ISO). I don't know of any sample code, sorry.
HTH,
Paul Sanders
http://www.alpinesoft.co.uk
----- Original Message -----
From: "Phil K" <email@hidden>
To: <email@hidden>
Sent: Monday, March 15, 2010 10:52 AM
Subject: Trimming heads and tails for audio
...
There is a very interesting thread on trimming compressed audio
so it loops correctly but I am confused as to how to trim the
beginning or end of the file and save it as a new file.
Are then any tutorials or sample code or books that describe the
process?
...
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden