[paranoia] splitting sound files?
Ralph Corderoy
ralph at inputplus.demon.co.uk
Wed Feb 14 02:06:15 PST 2001
Hi,
> Sound files can be split very simply using system utilities like
> head, tail, or split. If the file is in raw format, you simply need
> to be careful to split it so every part has a size in bytes divisible
> by four (assuming a stereo recording with 2 bytes per sample).
If your head and tail prefer text files then use dd(1).
dd if=big.raw of=part0.raw bs=1024k skip=0 count=1
dd if=big.raw of=part1.raw bs=1024k skip=1 count=1
dd if=big.raw of=part2.raw bs=1024k skip=2 count=1
...
It's simple to put this in a little shell script with a loop that keeps
going until the whole file's split.
Ralph.
--- >8 ----
List archives: http://www.xiph.org/archives/
Paranoia homepage: http://www.xiph.org/paranoia/
To unsubscribe from this list, send a message to 'paranoia-request at xiph.org'
containing only the word 'unsubscribe' in the body. No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.
More information about the Paranoia
mailing list