[MEncoder-users] CPU-friendly-est "audio only" hack?

Jonas Jermann jjermann at gmx.net
Tue Mar 21 21:07:12 CET 2006


Hi

On Tue, Mar 21, 2006 at 10:36:12AM -0800, Walter Belhaven wrote:
> Oded Shimon wrote:
> 
> > >   Option rawvideo: Unknown suboption on
> > 
> > Fixed
> 
> Nuhhh-uhhh. :) Just kidding.  But seriously, I *just* CVS updated and
> rebuilt and it's still not working.  Is there a specific driver,
> codec, or otherwise I need to make this work?  Here's my environment
> (Cygwin on Windows XP):
> 
> $ ./configure --enable-live --with-livelibdir=`pwd`/live \
>       --with-extraincdir=/usr/local/include
>       --with-extralibdir=/usr/local/lib
> [...]
>   Enabled optional drivers:
>     Input: ftp network edl tv live555 matroska mpdvdkit2 
>     Codecs: qtx x264 libavcodec real xanim dshow/dmo win32 \
>             faad2(internal) libmpeg2 liba52 mp3lib speex \
>             tremor(internal) gif
>     Audio output: esd oss dsound win32 mpegpes(file) 
>     Video output: xvidix winvidix cvidix directx gif89a md5sum \
>             pnm jpeg png mpegpes(file) aa ggi opengl x11 xover tga
>     Audio filters: 
>   Disabled optional drivers:
>     Input: vstream tv-v4l2 tv-v4l tv-bsdbt848 cdda dvdread vcd dvb smb
>     Codecs: opendivx xvid libdv amr_wb amr_nb faac musepack libdts \
>             libtheora twolame toolame libmad liblzo
>     Audio output: sgi sun alsa openal jack polyp arts dxr2 nas sdl
>     Video output: bl zr zr2 dxr3 dxr2 sdl vesa fbdev svga caca xmga \
>             mga dga xvmc xv directfb tdfx_vid tdfxfb 3dfx
>     Audio filters: ladspa 
> 
> $ ./mencoder -rawvideo on:w=1:h=1 -audiofile test.rm -of rawaudio \
>             -o test.mp3 -ovc copy -oac mp3lame -lameopts cbr:br=48 \
>             -endpos 752.00
> 
> MEncoder dev-CVS-060321-09:59-3.4.4 (C) 2000-2006 MPlayer Team
> CPU: Intel Pentium 4/Celeron 4 Northwood; Pentium 4 EE/Xeon \
>             Prestonia,Gallatin (Family: 15, Stepping: 9)
> CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
> Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
> 
> Option rawvideo: Unknown suboption on
> 
> Exiting... (error parsing cmdline)

The fix was in the tool aconvert not mencoder/mplayer:

Try to change "-rawvideo on:w=1:h=1" to "-demuxer rawvideo -rawvideo w=1:h=1".

Also note that this is an ugly hack, not a clean solution to encode from audio
only...


Best Regards
	Jonas Jermann




More information about the MEncoder-users mailing list