* Converting .rm2mp3?
@ Hart Larry
` Lukas Loehrer
0 siblings, 1 reply; 2+ messages in thread
From: Hart Larry @ UTC (permalink / raw)
To: Blinux Discussion List
I used m player to rip an audio stream. I want to convert it from a dot rm to
an mp3. I first tried wedit, its wed2mp3 did convert, but I lost alot of
quality, especially highs. Chuck suggested I try wed2ogg where I could select
type of quality. Well, with this also, quality lost. I then tried lame. All
I got was white noise. The manual I think mentions a -s or sfrq option.
Anyway, are their other programs maybe a bit simpler which will convert,
keeping the high-frequencies?
With m player, I wish I could use the -dumpstream and make an mp3 on the fly
from the stream.
Thanks in advance for tips-and-trix
Hart
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Converting .rm2mp3?
Converting .rm2mp3? Hart Larry
@ ` Lukas Loehrer
0 siblings, 0 replies; 2+ messages in thread
From: Lukas Loehrer @ UTC (permalink / raw)
To: Linux for blind general discussion
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
Converting .rm2mp3? Hart Larry
` Lukas Loehrer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).