How to limit MP3 file to 15 seconds?
I have to create out of an existing MP3 file a sample of 15 seconds. Does anybody have a hint how to do it? I have also the original CD to create the MP3 file from scratch too, if that is easier. I use SuSE 8.0 prof. Thanks for your help! bye Ronald -- Ronald Wiplinger (CEO of ELMIT) http://www.elmit.com +886 (0) 915 653-452 - I'm a SpamCon Foundation Member, #694, Verify it at http://www.spamcon.org
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Le Mercredi 6 Novembre 2002 05:10, Ronald Wiplinger a écrit :
I have to create out of an existing MP3 file a sample of 15 seconds. Does anybody have a hint how to do it? I have also the original CD to create the MP3 file from scratch too, if that is easier.
I use SuSE 8.0 prof.
Install Grip from the SuSE CDs. 8.0 has an old version, but it is enough to do what you want. It relies on lame or gogo or bladeenc (etc) being installed, it is only a gui. When extracting, you can specify a start sector and an end sector. You have to make a few tries to know how long a sector is, but it is quite fast. - -- Thibaut Cousin E-mail : cousin@in2p3.fr Web : http://clrwww.in2p3.fr -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE9yMq7v1vqsTa1E4oRAlWgAJsFvztJfN/kVf+0L8jaXh/cabj2FwCfX6H4 DBMsd44tkTmjbEbS9x68T6M= =9Ffa -----END PGP SIGNATURE-----
On Wednesday 06 November 2002 4:10 am, Ronald Wiplinger wrote:
I have to create out of an existing MP3 file a sample of 15 seconds. Does anybody have a hint how to do it? I have also the original CD to create the MP3 file from scratch too, if that is easier. You can use CDParanoia to rip from the original CDs to a wav file, and in the parameters specify times :o)
From the "commandline help" of it - [just type cdparanoia] SPAN ARGUMENT: The span argument may be a simple track number or a offset/span specification. The syntax of an offset/span takes the rough form: 1[ww:xx:yy.zz]-2[aa:bb:cc.dd] Here, 1 and 2 are track numbers; the numbers in brackets provide a finer grained offset within a particular track. [aa:bb:cc.dd] is in hours/minutes/seconds/sectors format. Zero fields need not be specified: [::20], [:20], [20], [20.], etc, would be interpreted as twenty seconds, [10:] would be ten minutes, [.30] would be thirty sectors (75 sectors per second). There you go :o) So you could have 1[00:00:00.00]-1[00:00:15.00] as the span argument for 15 seconds. It would also allow you to rip *any* 15 secs from the CD with ease. You could put it into a shell script to get all the tracks on the CD at 15 seconds each, but I will leave you to figure that one on your own ;o) You could use commandline tools to crop the mp3 files, but this is best if doing it from scratch [in my opinion, anyway :o)] Hope this helps! Jon the purple tiger :o)
participants (3)
-
Ronald Wiplinger
-
The Purple Tiger
-
Thibaut Cousin