[MEncoder-users] Can you slow down mencoder?

D Richard Felker III dalias at aerifal.cx
Fri Mar 11 06:08:55 CET 2005


On Thu, Mar 10, 2005 at 09:24:02PM +0200, Oded Shimon wrote:
> On Thursday 10 March 2005 17:39, Martin Ankerl wrote:
> > # start capturing
> > captureprog | tee testfilename.avi | mencoder settings-for-high-quality
> > cat testfilename.avi | mencoder settings-for-low-quality
> 
> Whats the cat for?... That's redundant
> 
> This is very hackish, but it does work and I don't see a better solution.
> You said your capture program is MEncoder, so:
> 
> mkfifo input output1
> mencoder tv:// -endpos 30:00 -o input -ovc raw -oac pcm &
> cat input | tee output1 | mencoder - -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=100000 -oac pcm -o goodquality.avi &

Do NOT use cat here. All it will do is increase cpu usage. Instead:
tee output1 < input | mencoder - -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=100000 -oac pcm -o goodquality.avi &

> Change options as necessary obviously.
> Do NOT use mencoder for capturing directly to stdout and then to tee.
> MEncoder outputs too much garbage on stdout and on stderr.

Very true.. :)

Rich




More information about the MEncoder-users mailing list