[MPlayer-dev-eng] audio out feature (not a request) NOVIRUS

William Man billybahlah at hotmail.com
Mon Jun 13 22:58:28 CEST 2005


Yes.  However, I am doing a 24hr recording, and i think my hd will collapse 
before the whole pcm file is streamed.

I have sucessfully done it using pipes and lame, but I wanted to make a 
windows version that doesn't support piping.  A hacky solution I have 
managed to do is make mplayer output pcm to stdout, then lame can encode 
using stdin, but windows inserts 2 chars for a return carriage which 
corrupts the stream.  So the solutions are
1) Fix memcoder
2) Make a mplayer with mp3 ao module.

I haven't looked at mencoder, but 2) is partially done pending some 
debugging.

I just wondered what the best option is.

W

>From: Corey Hickey <bugfood-ml at fatooh.org>
>Reply-To: mplayer-dev-eng at mplayerhq.hu
>To: mplayer-dev-eng at mplayerhq.hu
>Subject: Re: [MPlayer-dev-eng] audio out feature (not a request)
>Date: Mon, 13 Jun 2005 12:21:22 -0700
>MIME-Version: 1.0
>Received: from mail.mplayerhq.hu ([192.190.173.45]) by mc7-f6.hotmail.com 
>with Microsoft SMTPSVC(6.0.3790.211); Mon, 13 Jun 2005 12:21:46 -0700
>Received: from mail.mplayerhq.hu (localhost [127.0.0.1])by 
>mail.mplayerhq.hu (Postfix) with ESMTPid 9E3CA42AFF; Mon, 13 Jun 2005 
>21:21:43 +0200 (CEST)
>Received: by mail.mplayerhq.hu (Postfix, from userid 94)id 112C129E4B; Mon, 
>13 Jun 2005 21:21:39 +0200 (CEST)
>Received: from localhost (localhost [127.0.0.1])by mail.mplayerhq.hu 
>(Postfix) with ESMTP id 7BDBE40DD9for <mplayer-dev-eng at mplayerhq.hu>;Mon, 
>13 Jun 2005 21:20:37 +0200 (CEST)
>Received: from mail.fatooh.org (fire.casa-z.org [64.32.175.22])by 
>mail.mplayerhq.hu (Postfix) with ESMTP id 02AAC42786for 
><mplayer-dev-eng at mplayerhq.hu>;Mon, 13 Jun 2005 21:20:30 +0200 (CEST)
>Received: from [10.1.0.0] (c-24-7-69-43.hsd1.ca.comcast.net 
>[24.7.69.43])(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))(No 
>client certificate requested)by mail.fatooh.org (Postfix) with ESMTP id 
>52DBF2E7CEfor <mplayer-dev-eng at mplayerhq.hu>;Mon, 13 Jun 2005 12:20:19 
>-0700 (PDT)
>X-Message-Info: 0jbW5ANosZIyZK/oxwZcRkcVoH5WUDnCIfmuXU335f0=
>X-Original-To: mplayer-dev-eng at mplayerhq.hu
>Delivered-To: mplayer-dev-eng at mplayerhq.hu
>User-Agent: Debian Thunderbird 1.0.2 (X11/20050402)
>X-Accept-Language: en-us, en
>References: <BAY103-F31E15C554E6DA1D82B734BB3F00 at phx.gbl>
>X-Virus-Scanned: by AMaViS 0.3.12-A1 at mail.mplayerhq.hu
>X-DCC-xmailer-Metrics: mail 1192; IP=ok Body=1 Fuz1=1 Fuz2=1
>X-Spam-Checker-Version: SpamAssassin 3.0.1 (2004-10-22) on 
>mail.mplayerhq.hu
>X-Spam-Level: X-Spam-Status: No, score=-8.0 required=4.0 
>tests=AWL,BAYES_00,FORGED_RCVD_HELO,TW_MK autolearn=ham version=3.0.1
>X-BeenThere: mplayer-dev-eng at mplayerhq.hu
>X-Mailman-Version: 2.1.4
>Precedence: list
>List-Id: MPlayer development <mplayer-dev-eng.mplayerhq.hu>
>List-Unsubscribe: 
><http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng>,<mailto:mplayer-dev-eng-request at mplayerhq.hu?subject=unsubscribe>
>List-Archive: </pipermail>
>List-Post: <mailto:mplayer-dev-eng at mplayerhq.hu>
>List-Help: <mailto:mplayer-dev-eng-request at mplayerhq.hu?subject=help>
>List-Subscribe: 
><http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng>,<mailto:mplayer-dev-eng-request at mplayerhq.hu?subject=subscribe>
>Errors-To: mplayer-dev-eng-bounces at mplayerhq.hu
>Return-Path: mplayer-dev-eng-bounces at mplayerhq.hu
>X-OriginalArrivalTime: 13 Jun 2005 19:21:46.0580 (UTC) 
>FILETIME=[23D3C140:01C5704D]
>
>William Man wrote:
> > Hi,
> >
> > I wanted to ask if there exists a audio out for mp3?  This allows 
>real-time
> > encoding of mp3 from live streams.
> >
> > I could not find any reference in the source from the website, so I 
>compiled
> > myself a version to do this, and can be used like "mplayer inputsource 
>-ao
> > mp3:file=save.mp3:bitrate=128", it still requires some debugging but it
> > works (currently only a windows version as it links to the lame_enc.dll)
> >
> > However, I was thinking of using the current lame encoding in mencoder 
>to
> > generate a mp3 output for mplayer so the encoding is compiled into 
>mplayer
> > (and not use any libraries).  Does it already exist and I'm wasting my 
>time,
> > or is there any reason it isn't implemented (legal or otherwise).
> >
> > Thanks for any replies.
> >
> > William
> >
>
>MPlayer has PCM output. Though an internal mp3 encoder could be a bit
>more efficient, using PCM as an intermediate format is much more
>versatile. You can just use lame, or oggenc, or probably just about any
>other audio encoder you want.
>
>I don't know if windows has anything like named pipes, but on a unix
>system you can skip the intermediate file.
>
>$ mkfifo audiodump.wav
>$ lame audiodump.wav output.mp3
>
>lame will sit there waiting for data; go to another terminal, and:
>
>$ mplayer some-file-or-url -ao pcm
>
>-Corey
>
>_______________________________________________
>MPlayer-dev-eng mailing list
>MPlayer-dev-eng at mplayerhq.hu
>http://mplayerhq.hu/mailman/listinfo/mplayer-dev-eng





More information about the MPlayer-dev-eng mailing list