From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by listman.util.phx.redhat.com (8.13.1/8.13.1) with ESMTP id k6FGcp00005611 for ; Sat, 15 Jul 2006 12:38:52 -0400 Received: from mx3.redhat.com (mx3.redhat.com [172.16.48.32]) by int-mx1.corp.redhat.com (8.12.11.20060308/8.12.11) with ESMTP id k6FGcpVn015426 for ; Sat, 15 Jul 2006 12:38:51 -0400 Received: from mail.gmx.net (mail.gmx.net [213.165.64.21]) by mx3.redhat.com (8.13.1/8.13.1) with SMTP id k6FGch5C016900 for ; Sat, 15 Jul 2006 12:38:44 -0400 Received: (qmail invoked by alias); 15 Jul 2006 16:38:38 -0000 Received: from 80-218-68-110.dclient.hispeed.ch (EHLO vaio) [80.218.68.110] by mail.gmx.net (mp035) with SMTP; 15 Jul 2006 18:38:38 +0200 X-Authenticated: #395120 From: Lukas Loehrer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17593.6668.447527.564844@gargle.gargle.HOWL> Date: Sat, 15 Jul 2006 18:38:36 +0200 To: Linux for blind general discussion In-Reply-To: References: X-Mailer: VM 7.19 under Emacs 21.4.1 X-Y-GMX-Trusted: 0 X-RedHat-Spam-Score: 0.805 X-loop: blinux-list@redhat.com Cc: Subject: Re: Converting .rm2mp3? X-BeenThere: blinux-list@redhat.com X-Mailman-Version: 2.1.5 Precedence: junk Reply-To: listaddr1@gmx.net, Linux for blind general discussion List-Id: Linux for blind general discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 15 Jul 2006 16:38:52 -0000 Hart Larry writes ("Converting .rm2mp3?"): > I used m player to rip an audio stream. I want to convert it from a dot rm to > an mp3. Below is the script I use for this. I got the idea from some mailing list post whose origin I forgot. You can specify the encoding quality by providing additional options to lame. I usually stick to the presets. Examples: any2mp3 stream.dump test1.mp3 any2mp3 http://some.stream.com/playit test2.mp3 mplayer will show some error messages but they are not prolematic in my experience. > With m player, I wish I could use the -dumpstream and make an mp3 on the fly > from the stream. I think you can also specify the URL of your stream as the first parameter to the script instead of a local input file. See the above example. Hth, Lukas -- Script follows here -- #!/bin/sh # Converts anything mplayer can play to mp3 # Usage: any2mp3 infile outfile # Command line arguments INFILE="$1" OUTFILE="$2" # Lame options QUALITY=cd MORE_LAME_ARGS="" pipe=/tmp/mp3pipe.$$ # Set up fifo rm -f $pipe mkfifo $pipe # Do the conversion mplayer -novideo -vc null -vo null -really-quiet -ao pcm:file=$pipe "$INFILE" > /dev/null & lame -S --preset $QUALITY $MORE_LAME_ARGS $pipe "$OUTFILE" # Clean up rm -f $PIPE