From: Oded Shimon (ods15_at_nonexisting.hamakor.org.il)
Date: Mon 30 Jan 2006 - 12:15:33 IST
On Mon, Jan 30, 2006 at 10:49:17AM +0200, Nadav Har'El wrote:
> On Sun, Jan 22, 2006, Oded Shimon wrote about "Re: Mplayer boo-boo - how can I correct it?":
> > On Sun, Jan 22, 2006 at 02:06:07PM +0200, Nadav Har'El wrote:
> > > A few days ago, I wanted to record some live audio from Galaz. So I
> > > used the following command:
> > >
> > > mplayer -cache 256 -dumpaudio http://213.8.143.165:80/glz-stream
> > >
> > > Only later did I realize that "-dumpaudio" wasn't the appropriate option,
> > > and I should have used "-dumpstream"... Apparently "-dumpaudio" is something
> >...
> > > Does anybody have any idea how I can listen (and hopefully, convert to a
> > > normal format like mp3) the result of mplayer's "-dumpaudio"?
> >...
> > which uses format number 0x161 . If you're lucky, you'll be able to play
> > the file with this command:
> >
> > mplayer -rawaudio on:format=0x161:rate=22050:channels=2:bitrate=32 stream.dump
>
> Thanks for the lead.
>
> Unfortunately, while that "almost" works (mplayer shows sensible output),
> I hear weird bursts of unintelligable sound instead of the radio program
> I recorded.
>
> The only difference I see see between the way mplayer plays the live stram
> and the way it plays the file I saved is that in the live stream I see:
> AUDIO: 22050 Hz, 2 ch, s16le, 32.0 kbit/4.54% (ratio: 4003->88200)
> while in the recorded file (with the above options) I see
> AUDIO: 22050 Hz, 2 ch, s16le, 32.0 kbit/4.54% (ratio: 4000->88200)
>
> note the difference between "4000" and "4003". Does this mean anything?
> Is it something I can change?
>
> I also have to comment that I upgraded mplayer since saving that file, so
> I don't know if that makes a difference. I created that file with
> mplayer 1.0pre2, and now I have mplayer 1.0pre7-3.4.3. Could that have
> made some difference? (pre2 didn't even had the options you suggested me
> to try).
Wow, pre2 is ancient, but I don't think that's the problem. BTW, pre7 is
quiet ancient too, we've been wanting to release a new version for almost
half a year now but have been waiting for server upgrade, I suggest CVS.
But it doesn't matter for this purpose.
You were probably right about the ratio thing, most likely the 'bitrate=32'
I gave you is wrong, try 'bitrate=32.05', or lower/higher as necessary,
until you get correct ratio...
- ods15
=================================================================
To unsubscribe, send mail to linux-il-request_at_linux.org.il with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail linux-il-request_at_linux.org.il
This archive was generated by hypermail 2.1.7 : Mon 30 Jan 2006 - 12:30:14 IST