Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Michael Stutz <stutz@dsl.org>
To: linux-sound@vger.kernel.org
Subject: Re: making wav sample of a big mp3
Date: Fri, 18 Sep 1998 14:28:48 +0000	[thread overview]
Message-ID: <marc-linux-sound-90613218001589@msgid-missing> (raw)
In-Reply-To: <marc-linux-sound-90609207319651@msgid-missing>

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

  reply	other threads:[~1998-09-18 14:28 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-09-17 22:48 making wav sample of a big mp3 Michael Stutz
1998-09-18 14:28 ` Michael Stutz [this message]
1998-09-18 15:37 ` Thomas C Sobczynski
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=marc-linux-sound-90613218001589@msgid-missing \
    --to=stutz@dsl.org \
    --cc=linux-sound@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox