* Re: making wav sample of a big mp3
1998-09-17 22:48 making wav sample of a big mp3 Michael Stutz
@ 1998-09-18 14:28 ` Michael Stutz
1998-09-18 15:37 ` Thomas C Sobczynski
` (4 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Michael Stutz @ 1998-09-18 14:28 UTC (permalink / raw)
To: linux-sound
On Thu, 17 Sep 1998, Michael Stutz wrote:
> I need to make a 15-second WAV sample from a 3-minute mp3 file that I have.
> Does anyone know an easy way to do this?
This is how I do it (improvements welcome!):
dd if=<input.mp3> of=tmp.mp3 count=X [where X = 14.2 * number-of-seconds-desired]
mpg123 -s tmp.mp3 > tmp.raw
sox -r44100 -s -w -c2 tmp.raw sample.wav
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: making wav sample of a big mp3
1998-09-17 22:48 making wav sample of a big mp3 Michael Stutz
1998-09-18 14:28 ` Michael Stutz
@ 1998-09-18 15:37 ` Thomas C Sobczynski
1998-09-18 15:42 ` Michael Stutz
` (3 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Thomas C Sobczynski @ 1998-09-18 15:37 UTC (permalink / raw)
To: linux-sound
Out of curiosity, I tried this, and just got noise with "play sample.wav"
> This is how I do it (improvements welcome!):
>
> dd if=<input.mp3> of=tmp.mp3 count=X [where X = 14.2 * number-of-seconds-des
> ired]
>
> mpg123 -s tmp.mp3 > tmp.raw
>
> sox -r44100 -s -w -c2 tmp.raw sample.wav
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: making wav sample of a big mp3
1998-09-17 22:48 making wav sample of a big mp3 Michael Stutz
1998-09-18 14:28 ` Michael Stutz
1998-09-18 15:37 ` Thomas C Sobczynski
@ 1998-09-18 15:42 ` Michael Stutz
1998-09-18 15:46 ` Thomas C Sobczynski
` (2 subsequent siblings)
5 siblings, 0 replies; 7+ messages in thread
From: Michael Stutz @ 1998-09-18 15:42 UTC (permalink / raw)
To: linux-sound
On Fri, 18 Sep 1998, Thomas C Sobczynski wrote:
> Out of curiosity, I tried this, and just got noise with "play sample.wav"
Was is a mono mp3? If so, use "-c1" instead of "-c2" on the last line..
>
> > This is how I do it (improvements welcome!):
> >
> > dd if=<input.mp3> of=tmp.mp3 count=X [where X = 14.2 * number-of-seconds-des
> > ired]
> >
> > mpg123 -s tmp.mp3 > tmp.raw
> >
> > sox -r44100 -s -w -c2 tmp.raw sample.wav
>
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: making wav sample of a big mp3
1998-09-17 22:48 making wav sample of a big mp3 Michael Stutz
` (2 preceding siblings ...)
1998-09-18 15:42 ` Michael Stutz
@ 1998-09-18 15:46 ` Thomas C Sobczynski
1998-09-19 12:54 ` Chris Reed
1998-09-19 22:43 ` Michael Stutz
5 siblings, 0 replies; 7+ messages in thread
From: Thomas C Sobczynski @ 1998-09-18 15:46 UTC (permalink / raw)
To: linux-sound
> Was is a mono mp3? If so, use "-c1" instead of "-c2" on the last line..
MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: making wav sample of a big mp3
1998-09-17 22:48 making wav sample of a big mp3 Michael Stutz
` (3 preceding siblings ...)
1998-09-18 15:46 ` Thomas C Sobczynski
@ 1998-09-19 12:54 ` Chris Reed
1998-09-19 22:43 ` Michael Stutz
5 siblings, 0 replies; 7+ messages in thread
From: Chris Reed @ 1998-09-19 12:54 UTC (permalink / raw)
To: linux-sound
On Thu, 17 Sep 1998 18:48:31 -0400 (EDT) , Michael Stutz wrote:
>I need to make a 15-second WAV sample from a 3-minute mp3 file that I have.
>Does anyone know an easy way to do this?
>
[this does not belong in linux-sound...]
mpg123 --help shows:
...
-k n skip first n frames [0] -n n decode only n frames [all]
Use these options with -s to grab the output; the no. of frames /s will
depend on the mp3, but a bit of trial and error should work OK.
-- Christopher Reed, Selwyn College, Cambridge --
E-Mail: cr212@cam.ac.uk WWW: http://dura.sel.cam.ac.uk/ [~cr212/]
r2 T1 cSEL dCS hEn/Chi A4 S+ C*$+++L/UdP W+++ y# a VTsj (Cantab) 1.0
"Offer me solutions, offer me alternatives and I decline"
^ permalink raw reply [flat|nested] 7+ messages in thread* Re: making wav sample of a big mp3
1998-09-17 22:48 making wav sample of a big mp3 Michael Stutz
` (4 preceding siblings ...)
1998-09-19 12:54 ` Chris Reed
@ 1998-09-19 22:43 ` Michael Stutz
5 siblings, 0 replies; 7+ messages in thread
From: Michael Stutz @ 1998-09-19 22:43 UTC (permalink / raw)
To: linux-sound
On Sat, 19 Sep 1998, Chris Reed wrote:
> On Thu, 17 Sep 1998 18:48:31 -0400 (EDT) , Michael Stutz wrote:
>
> >I need to make a 15-second WAV sample from a 3-minute mp3 file that I have.
> >Does anyone know an easy way to do this?
>
> [this does not belong in linux-sound...]
Why?
^ permalink raw reply [flat|nested] 7+ messages in thread