[MEncoder-users] mencoder ignores mf h/w (height/width) options?

Alexander Skwar listen at alexander.skwar.name
Sat Jul 15 17:06:17 CEST 2006


Hello!

I've got a number of JPEG files in a directory, which are all 2816x1872
pixels big. I then encoded those JPEGs into a MPEG4 file with mencoder:

$ mencoder 'mf://*jpg' -mf w=800:h=532:fps=2:type=jpeg -ovc lavc -lavcopts \
	vcodec=mpeg4:mbd=2:trell:mpeg_quant:mv0:cbp:qprd:vbitrate=80 -oac \
	copy -o aus.avi

MEncoder 2:0.99+1.0pre7try2+cvs20060117-0ubuntu8 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium M Dothan (Family: 6, Stepping: 8)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
91 audio & 204 video codecs
success: format: 16  data: 0x0 - 0x0
[mf] search expr: *jpg
[mf] number of files: 2 (8)
VIDEO:  [IJPG]  800x532  24bpp  2.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:16  fourcc:0x47504A49  size:800x532  fps: 2.00  ftime:=0.5000
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG decoder)
==========================================================================
VDec: vo config request - 2816 x 1872 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 3)
Movie-Aspect is undefined - no prescaling applied.
videocodec: libavcodec (2816x1872 fourcc=34504d46 [FMP4])
High quality encoding selected (non real time)!
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos:   1.0s      2f ( 0%)  0.37fps Trem:   0min   0mb  A-V:0.000 [0:0]
Flushing video frames
Writing index...
Writing header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream: 5317.072 kbit/s  (664634 B/s)  size: 664634 bytes  1.000 secs  2 frames


When I now try to play this video with mplayer, I get:

alexander at knospe:/dev/shm/cs/2$ mplayer aus.avi
MPlayer 2:0.99+1.0pre7try2+cvs20060117-0ubuntu8 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium M Dothan (Family: 6, Stepping: 8)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.


91 audio & 204 video codecs
Linux RTC init error in ioctl (rtc_irqp_set 1024): Permission denied
Try adding "echo 1024 > /proc/sys/dev/rtc/max-user-freq" to your system startup scripts.
Opening joystick device /dev/input/js0
Can't open joystick device /dev/input/js0: No such file or directory
Can't init input joystick
Setting up LIRC support...
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support.
You will not be able to use your remote control.
Playing aus.avi.
AVI file format detected.
AVI_NI: No audio stream found -> no sound.
AVI: No audio stream found -> no sound.
VIDEO:  [FMP4]  2816x1872  24bpp  2.000 fps  5317.1 kbps (649.1 kbyte/s)
Clip info:
  Software: MEncoder 2:0.99+1.0pre7try2+cvs20060117-0ubuntu8
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
==========================================================================
Audio: no sound
Starting playback...
VDec: vo config request - 2816 x 1872 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.50:1 - prescaling to correct movie aspect.
VO: [xv] 2816x1872 => 2816x1872 Planar YV12
[xv] Source image dimensions are too high: 2816x1872 (maximum is 1920x1200)
FATAL: Cannot initialize video driver.
VDec: vo config request - 2816 x 1872 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.50:1 - prescaling to correct movie aspect.
VO: [xv] 2816x1872 => 2816x1872 Planar YV12
[xv] Source image dimensions are too high: 2816x1872 (maximum is 1920x1200)
FATAL: Cannot initialize video driver.

FATAL: Could not initialize video filters (-vf) or video output (-vo).


Exiting... (End of file)


As you can see, mplayer detected a video with a size of 2816x1872 pixels.

But shouldn't the "-mf h" and "-mf w" options control the output
h/w? In "man mencoder" I find:

        -mf <option1:option2:...>
               Used when decoding from multiple PNG or JPEG files.

               Available options are:

                  w=<value>
                       output width (default: autodetect)
                  h=<value>
                       output height (default: autodetect)

alexander at knospe:/dev/shm/cs/2$ mplayer -version
MPlayer 2:0.99+1.0pre7try2+cvs20060117-0ubuntu8 (C) 2000-2006 MPlayer Team
CPU: Intel Pentium M Dothan (Family: 6, Stepping: 8)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.


Unknown option on the command line: -version
91 audio & 204 video codecs

On Ubuntu Dapper on a 32bit x86 system.

Alexander Skwar
-- 
It is undignified for a woman to play servant to a man who is not hers.
		-- Spock, "Amok Time", stardate 3372.7



More information about the MEncoder-users mailing list