[MEncoder-users] output format and mencoder.conf profiles

Dave Puryear Dave.Puryear at dataconversions.biz
Mon Apr 16 18:19:13 CEST 2007


I'm wondering why MEncoder's verbose output states the following:
WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help.

I am aware of the need to specify output format when using containers
other than avi.
Below you'll find my profile settings, build info, command output when
using -profile,
and command output when typing everything at the prompt.

mencoder.conf profile:

[MPEG2_NTSC_640x480p] 
profile-desc="        ...4000k (640x480)"
oac=lavc=1
ovc=lavc=1
of=mpeg=1
vf=pp=lb,scale=presize=sntsc
mpegopts=format=dvd:tsaf=1:vbitrate=4000:vframerate=30000/1001:vwidth=64
0:vheight=480:vaspect=4/3
lavcopts=vcodec=mpeg2video:mbd=2:cgop=1:sc_threshold=1000000000:vstrict=
-1:vmax_b_frames=2:vb_strategy=0:b_sensitivity=10:brd_scale=2:vrc_eq=1:v
rc_strategy=0:vrc_buf_size=1835:vrc_maxrate=4000:vrc_minrate=4000:vbitra
te=4000:vpsize=2048:keyint=18:acodec=mp2:abitrate=128:autoaspect=1
ofps=30000/1001

build info:

MEncoder Sherpya-SVN-r22870-4.1.2 (C) 2000-2006 MPlayer Team
CPU: Genuine Intel(R) CPU           T2050  @ 1.60GHz (Family: 6, Model:
14, Stepping: 8)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Configuration: --prefix=/usr --language=all --enable-win32dll
--enable-static --enable-qtx
--enable-real --enable-md5sum --enable-menu --disable-vidix-internal
--disable-sdl --enable-caca
--enable-gl --enable-matrixview --enable-freetype --enable-png
--enable-jpeg --enable-gif
--enable-tga --enable-mad --disable-tv --disable-dvb --disable-dvbhead
--with-extraincdir=/j/Devel/mplayer/live --flavor=p4

Profile command ouptut:

C:\MPlayer070401>mencoder -ss 60 -endpos 10 C:\A-V\Net\file_01.wmv
-profile
MPEG2_NTSC_640x480p -o C:\A-V\Net\file_01_edit.mpg
MEncoder Sherpya-SVN-r22870-4.1.2 (C) 2000-2006 MPlayer Team
CPU: Genuine Intel(R) CPU           T2050  @ 1.60GHz (Family: 6, Model:
14, Step
ping: 8)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help.
success: format: 0  data: 0x0 - 0xa8cfa262
ASF file format detected.
VIDEO:  [WMV3]  720x480  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:6  fourcc:0x33564D57  size:720x480  fps:29.97  ftime:=0.0334
========================================================================
==
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 96.0 kbit/6.25% (ratio: 12000->192000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
========================================================================
==
PACKET SIZE: 2048 bytes, deltascr: 43885
MPEG MUXER, patching resolution to 640x480 framerate to 29.97 fps aspect
ratio t
o 4/3 bitrate to 4000
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale presize=sntsc]
Opening video filter: [pp=lb]
========================================================================
==
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
GetOutput r=0x0   size:1036800  align:1
StreamCount r=0x0  1  1
Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555
RGB565 R
GB24 RGB32
Decoder is capable of YUV output (flags 0x1b)
VDec: vo config request - 720 x 480 (preferred colorspace: Packed YUY2)
[PP] Using external postprocessing filter, max q = 6.
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 6 -> 8
SwScaler: reducing / aligning filtersize 1 -> 1
SwScaler: reducing / aligning filtersize 1 -> 1
[swscaler @ 00C8D020]SwScaler: BICUBIC scaler, from yuv420p to yuv420p
using MMX
2
[swscaler @ 00C8D020]SwScaler: using 8-tap MMX scaler for horizontal
luminance s
caling
[swscaler @ 00C8D020]SwScaler: using 8-tap MMX scaler for horizontal
chrominance
 scaling
[swscaler @ 00C8D020]SwScaler: using 1-tap MMX "scaler" for vertical
scaling (YV
12 like)
[swscaler @ 00C8D020]SwScaler: 720x480 -> 640x480
videocodec: libavcodec (640x480 fourcc=3267706d [mpg2])
[VE_LAVC] High quality encoding selected (non-realtime)!
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
========================================================================
==
Limiting audio preload to 0.4s.
Increasing audio density to 4.
Writing header...2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.003 [0:0]
INITV: 0.200, 0.167, fps: 29.970
Pos:   0.7s     22f ( 0%)  0.00fps Trem:   1min   0mb  A-V:0.070 [0:128]
Skipping frame!
Pos:   0.9s     31f ( 0%)  0.00fps Trem:   1min   0mb  A-V:0.067 [0:128]
Skipping frame!
Pos:   1.3s     42f ( 0%)  0.00fps Trem:   2min   0mb  A-V:0.070
[3855:128]
Skipping frame!
Pos:   1.6s     52f ( 0%) 48.24fps Trem:   3min   0mb  A-V:0.069
[3882:128]
Skipping frame!
Pos:   2.0s     65f ( 0%) 48.47fps Trem:   3min 136mb  A-V:0.068
[3906:128]
Skipping frame!
Pos:   2.3s     77f ( 0%) 48.58fps Trem:   4min 178mb  A-V:0.067
[3921:128]
Skipping frame!
Pos:   8.2s    254f ( 0%) 46.52fps Trem:  14min 623mb  A-V:0.067
[3977:128]
Skipping frame!
Pos:  10.0s    309f ( 0%) 46.47fps Trem:  16min 727mb  A-V:0.050
[3981:128]
Flushing video frames.
Writing index...

Overhead: 2.064% (106752 / 5170944)
Writing header...

Video stream: 3981.770 kbit/s  (497721 B/s)  size: 5015404 bytes  10.077
secs  3
09 frames

Audio stream:  128.000 kbit/s  (16000 B/s)  size: 160128 bytes  10.008
secs

The output file is definitely MPEG-2, playable by wmp, real, vlc,
mplayer,
and ffplay, but why the AVI warning?

Freehand CL typing produces no such warnings:

C:\MPlayer070401>mencoder -ss 60 -endpos 10 -oac lavc -ovc lavc -of mpeg
-mpegop
ts
format=dvd:tsaf:vbitrate=4000:vwidth=640:vheight=480:vframerate=30000/10
01:va
spect=4/3 -lavcopts
vcodec=mpeg2video:mbd=2:cgop:sc_threshold=1000000000:vstrict
=-1:vmax_b_frames=2:vb_strategy=0:b_sensitivity=10:brd_scale=2:vrc_eq=1:
vrc_stra
tegy=0:vrc_buf_size=1835:vrc_maxrate=4000:vrc_minrate=4000:vbitrate=4000
:vpsize=
2048:keyint=18:acodec=mp2:abitrate=128:autoaspect -ofps 30000/1001
C:\A-V\Net\fi
le_01.wmv -o C:\A-V\Net\file_01_edit.mpg

MEncoder Sherpya-SVN-r22870-4.1.2 (C) 2000-2006 MPlayer Team
CPU: Genuine Intel(R) CPU           T2050  @ 1.60GHz (Family: 6, Model:
14, Step
ping: 8)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2

success: format: 0  data: 0x0 - 0xa8cfa262
ASF file format detected.
VIDEO:  [WMV3]  720x480  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:6  fourcc:0x33564D57  size:720x480  fps:29.97  ftime:=0.0334
========================================================================
==
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 96.0 kbit/6.25% (ratio: 12000->192000)
Selected audio codec: [ffwmav2] afm: ffmpeg (DivX audio v2 (FFmpeg))
========================================================================
==
PACKET SIZE: 2048 bytes, deltascr: 43885
MPEG MUXER, patching resolution to 640x480 framerate to 29.97 fps aspect
ratio t
o 4/3 bitrate to 4000
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
========================================================================
==
Opening video decoder: [dmo] DMO video codecs
DMO dll supports VO Optimizations 0 1
DMO dll might use previous sample when requested
GetOutput r=0x0   size:1036800  align:1
StreamCount r=0x0  1  1
Decoder supports the following formats: YV12 YUY2 UYVY YVYU RGB8 RGB555
RGB565 R
GB24 RGB32
Decoder is capable of YUV output (flags 0x1b)
VDec: vo config request - 720 x 480 (preferred colorspace: Packed YUY2)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x480 fourcc=3267706d [mpg2])
[VE_LAVC] High quality encoding selected (non-realtime)!
Selected video codec: [wmv9dmo] vfm: dmo (Windows Media Video 9 DMO)
========================================================================
==
Limiting audio preload to 0.4s.
Increasing audio density to 4.
Writing header...2f ( 0%)  0.00fps Trem:   0min   0mb  A-V:0.003 [0:0]
INITV: 0.200, 0.167, fps: 29.970
Pos:   0.7s     22f ( 0%)  0.00fps Trem:   1min   0mb  A-V:0.070 [0:128]
Skipping frame!
Pos:   0.9s     31f ( 0%)  0.00fps Trem:   1min   0mb  A-V:0.067 [0:128]
Skipping frame!
Pos:   1.3s     42f ( 0%)  0.00fps Trem:   2min   0mb  A-V:0.070
[3855:128]
Skipping frame!
Pos:   1.6s     52f ( 0%)  0.00fps Trem:   2min   0mb  A-V:0.069
[3882:128]
Skipping frame!
Pos:   2.0s     65f ( 0%) 55.27fps Trem:   3min 136mb  A-V:0.068
[3906:128]
Skipping frame!
Pos:   2.3s     77f ( 0%) 55.48fps Trem:   3min 178mb  A-V:0.067
[3921:128]
Skipping frame!
Pos:   8.2s    254f ( 0%) 53.10fps Trem:  12min 623mb  A-V:0.067
[3977:128]
Skipping frame!
Pos:  10.0s    309f ( 0%) 53.04fps Trem:  14min 727mb  A-V:0.050
[3981:128]
Flushing video frames.
Writing index...

Overhead: 2.064% (106752 / 5170944)
Writing header...

Video stream: 3981.770 kbit/s  (497721 B/s)  size: 5015404 bytes  10.077
secs  3
09 frames

Audio stream:  128.000 kbit/s  (16000 B/s)  size: 160128 bytes  10.008
secs

I just don't understand why my profile produces the -of warning.

TIA,
--
Dave P.



More information about the MEncoder-users mailing list