August 16, 2004

Do It In Software, Baby!

Posted in General at 3:11 pm by Ian

Somone asked Slashdot about how to sample small bits out of long mp3s. Apparently as part of an ambient noise study, they needed to do this. The approach they’d been taking was to design custom chips for mp3 players that would switch them on and off. But that was a hassle with constantly changing mp3 players. How hard, he asks, would it be to write some software that woud do some semi-random sampling of a long mp3?

About halfway down the page, someone responds with:
perl -MMP3::Splitter -e ‘mp3_split($_,{},[ rand(64800), 30 ], …) for @ARGV’ filename.mp3

Not hard at all, apparently.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: