Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Apr 2004 14:03:27 -0400
From:      Mathew Kanner <mat@cnd.mcgill.ca>
To:        Karl Jeacle <karl@jeacle.ie>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: stdout from mplayer/mencoder?
Message-ID:  <20040429180327.GB3402@cnd.mcgill.ca>
In-Reply-To: <20040429175118.GA24989@cl.cam.ac.uk>
References:  <20040429175118.GA24989@cl.cam.ac.uk>

next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 29, Karl Jeacle wrote:
> I am using mplayer and lame to convert RealAudio files to MP3.
> Everything works, but I'd like to avoid large temporary WAV files.
> 
> Currently, I do something like:
> 
>         mplayer -ao pcm -aofile $WAVFILE $RAFILE
>         lame $WAVFILE $MP3FILE
> 
> But what I'd like to do is more like:
> 
> 	mplayer -ao pcm -aofile /dev/stdout $RAFILE | lame - $MP3FILE
> 
> The problem is that the resulting MP3 file is just white noise. I'm not
> sure what's going wrong. (I've tried specifying -r & -s lame flags.)
> 
> Is it possible to get mplayer to write to stdout?
> Or for mplayer/lame to convert RA->MP3 in a single pipeline?

	Karl,
	I would guess that other output from mplayer is confusing the
encoding.  There are probablt many different options, I would suggest
you try:
	- Use mencoder :)
	- use a named pipe.

	--Mat
-- 
	It's impossible to awaken a man who is pretending to be
	asleep.
			- Navajo saying



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040429180327.GB3402>