Re: Extra non-audio information
Florian Parnigoni <Florian.Parnigoni <at> massresponse.com>
2006-04-10 07:04:36 GMT
Hello Chris,
Thanks for your answer. I looked a bit deeper into this and it seems your are correct about the chunk not in
cooledit format.
As I understand from the changelog and the code in wav.c, sox looks for a chunk starting with "LIST" after the
end of the specified wave-data length.
But the file I have has a the text "bext" on this position, altough it was created by Adobe Audition (which is
the successor of cooledit). As far as I can see, the "bext" marker is part of the "Broadcast Wave
Extension", a standard for extending WAVE files with additional information.
The Question: Does a patch exist that enables sox to treat the "bext" chunk(s) accordingly, or do you have a
hint for me how to do it myself?
Thanks in advance,
Florian
-----Ursprüngliche Nachricht-----
Von: Chris Bagwell [mailto:chris <at> cnpbagwell.com]
Gesendet: Freitag, 07. April 2006 17:22
An: Florian Parnigoni
Cc: sox-users <at> lists.sourceforge.net
Betreff: Re: [SoX-users] Extra non-audio information
On Fri, Apr 07, 2006 at 03:40:16PM +0200, Florian Parnigoni wrote:
> Now I would like to know if there is a way to make sox obey the header
> information, so only the specified amount of data bytes are converted
> into the target file and the rest of the data being discarded or again
> marked as non-audio data?
What file format are you using? I'm guessing WAV files because its
pretty popular to have extra data at the end.
Assuming its WAV file, first make sure your running the latest
version of SoX as there was some bugfixes in this area in 12.17.9.
Next, for WAV files SoX does attempt to detect "cooledit" chunks
at the end of the file. If found then it only reads xxx bytes
as specified by the header.
Probably you have a file that has chunks at the end but not in
standard cooledit format. It should be pretty simple to add
support for new chunk types and ignore them as needed.
Chris
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642