LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-24-2004, 06:37 PM   #1
trubkeeg
LQ Newbie
 
Registered: Apr 2004
Posts: 4

Rep: Reputation: 0
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
 
Old 04-24-2004, 07:05 PM   #2
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
use mpg321/123 to decode it only partially. --wav, -k and -n options should do it.
 
Old 04-24-2004, 07:07 PM   #3
RolledOat
Member
 
Registered: Feb 2003
Location: San Antonio
Distribution: Suse 9.0 Professional
Posts: 843

Rep: Reputation: 30
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
 
Old 04-25-2004, 07:51 AM   #4
Andrew Benton
Senior Member
 
Registered: Aug 2003
Location: Birkenhead/Britain
Distribution: Linux From Scratch
Posts: 2,073

Rep: Reputation: 64
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.
 
Old 04-25-2004, 09:15 AM   #5
trubkeeg
LQ Newbie
 
Registered: Apr 2004
Posts: 4

Original Poster
Rep: Reputation: 0
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
 
Old 04-25-2004, 10:24 AM   #6
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
I think Rezound is better for sound editing; mpg321/123 is primarily a mp3 player.
 
Old 04-25-2004, 09:39 PM   #7
trubkeeg
LQ Newbie
 
Registered: Apr 2004
Posts: 4

Original Poster
Rep: Reputation: 0
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?)

Last edited by trubkeeg; 04-25-2004 at 09:48 PM.
 
Old 04-25-2004, 10:00 PM   #8
ToniT
Senior Member
 
Registered: Oct 2003
Location: Zurich, Switzerland
Distribution: Debian/unstable
Posts: 1,357

Rep: Reputation: 47
Works for me (atleast with mpg123):
Code:
mpg123-oss -k 500 -n 50 --wav part_of_foo.wav foo.mp3
 
Old 04-25-2004, 10:07 PM   #9
trubkeeg
LQ Newbie
 
Registered: Apr 2004
Posts: 4

Original Poster
Rep: Reputation: 0
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!!

Last edited by trubkeeg; 04-25-2004 at 10:12 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SuSe specification undeadpoll SUSE / openSUSE 1 09-18-2005 07:37 AM
lame decoding to wav, entire /dir instead of one by one? mipia Linux - Software 6 04-19-2005 03:52 AM
List Hardware Specification arch4n93l Linux - Hardware 1 01-04-2005 07:06 AM
Lame .ogg decoding r_jensen11 Linux - Software 2 06-12-2004 01:59 AM
[help]Using Ssh, How To See Server Specification one1coolone1 Linux - Software 2 04-23-2004 09:19 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration