LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Lame Decoding Length Specification (https://www.linuxquestions.org/questions/linux-software-2/lame-decoding-length-specification-174181/)

trubkeeg 04-24-2004 06:37 PM

Lame Decoding Length Specification
 
Im trying to decode some mp3's to wav using lame

"lame -decode 1.mp3"

This will decode the entire mp3 to a MS wav file. Now, is it possible to decode just a specific portain of the mp3, say like 3 seconds or something? Is there anyway to pass in a start and end time to lame (or another decoding software) that will decode only that specific time frame?

Thanks for any help!

Ryan Krug

ToniT 04-24-2004 07:05 PM

use mpg321/123 to decode it only partially. --wav, -k and -n options should do it.

RolledOat 04-24-2004 07:07 PM

Audacity and Rezound will open MP3, and with both you can cut and export to virtually all music formats. That doesn't help if you want, say, 3 seconds from the middle of 200 MP3 though.

RO

Andrew Benton 04-25-2004 07:51 AM

Thanks RolledOat for the suggestion to use Rezound. I've tried Audacity before and I was not impressed but Rezound is great. Plenty good enough for my simple needs (cutting the ragged ends of mp3's). This ones a keeper.

trubkeeg 04-25-2004 09:15 AM

Quote:

Originally posted by RolledOat
That doesn't help if you want, say, 3 seconds from the middle of 200 MP3 though.

RO [/B]
This is exactly what I'm looking to do. Will the afore mentioned mpg123(321) options work better in this case?

Ryan Krug

ToniT 04-25-2004 10:24 AM

I think Rezound is better for sound editing; mpg321/123 is primarily a mp3 player.

trubkeeg 04-25-2004 09:39 PM

Quote:

Originally posted by ToniT
I think Rezound is better for sound editing; mpg321/123 is primarily a mp3 player.
But is Rezound scriptable? I have sets of 100 sounds that I need ~3 seconds of music from the middle of each. I have tried using mpg321(123) but it seems to work with only the -k or the -n option (not both). Any help would be great here!

Thanks

Ryan Krug

(would sox do the trick here?)

ToniT 04-25-2004 10:00 PM

Works for me (atleast with mpg123):
Code:

mpg123-oss -k 500 -n 50 --wav part_of_foo.wav foo.mp3

trubkeeg 04-25-2004 10:07 PM

Quote:

Originally posted by ToniT
Works for me (atleast with mpg123):
Code:

mpg123-oss -k 500 -n 50 --wav part_of_foo.wav foo.mp3

hmm.. perhaps ill have to ditch mpg321...

(could i ask what version you are using?)

never mind ... using mpg123 works ...

For some odd reason mpg321 doesn't though, cool enough.

Thanks!!


All times are GMT -5. The time now is 08:06 PM.