[MPlayer-users] possible bug in mencoder command line parsing

Gavin McCullagh gmccullagh at gmail.com
Fri Nov 7 16:10:59 CET 2008


Hi there,

first of all I should say that mencoder is an absolute lifesaver, saves me
tonnes of time and has opened up tonnes of opportunities both in work and
at home.  Many thanks to all concerned.

Second, I think I may have found a bug in the command line parsing.  If I
try and re-encode a single DV file into FLV it works fine, including a
video rescale and an audio lavcresample.  If I pass multiple DVs into a
single FLV, mencoder complains that I cannot create an FLV with that audio
sample rate and that I should pick from (44100,22050,10025).  However, I
actually have a resample to 22050 in the command and apart from having two
input files, the entire process is identical.

I find this with 2 or more dvd:// inputs and with 2 or more files so it
seems to simply relate to having more than one source.  I can stitch the
files together afterward using "-oac copy -ovc copy", but that's so much
more interactive than I want to be!  I presume there is no practical reason
why I cannot load up two files like this, they are of exactly the same type
(though I wouldn't think they need to be in this instance).

The full command and output for both a failed and a successful run are
below.  If you need any more info, please let me know.

If a fix jumps out at someone quickly that would be awesome.  If time presents
itself I'll try and get a look at the source code myself but I suspect
there'll be people on this list far more familiar with it than me.

Thanks in advance,
Gavin

gavinmc at ceartgoleor:~$ mencoder dvd://1 dvd://2 -o test.flv  -of lavf -ovc lavc -oac lavc -lavcopts vcodec=flv:vbitrate=250:autoaspect:acodec=libmp3lame:abitrate=64 -vf scale=320:240 -srate 22050 -af lavcresample=22050
MEncoder 2:1.0~rc2-0ubuntu13 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (Family: 15, Model: 4, Stepping: 1)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
*** Zero check failed in ifo_read.c:436
    for vmgi_mat->zero_3 = 0x00000000010000000000000000000000000000
There are 4 titles on this DVD.
There are 1 chapters in this DVD title.
There are 1 angles in this DVD title.
audio stream: 0 format: ac3 (stereo) language: unknown aid: 128.
number of audio channels on disk: 1.
number of subtitles on disk: 0
success: format: 2  data: 0x0 - 0x669000
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  9400.0 kbps (1175.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
** MUXER_LAVF *****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
Could not find matching colorspace - retrying with -vf scale...
Opening video filter: [scale]
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
videocodec: libavcodec (720x576 fourcc=31564c46 [FLV1])
VIDEO CODEC ID: 22f ( 9%)  0.00fps Trem:   0min   0mb  A-V:0.004 [0:0]
AUDIO CODEC ID: 15001, TAG: 0
Writing header...
[NULL @ 0x8814710]flv does not support that sample rate, choose from (44100, 22050, 11025).
Floating point exception


gavinmc at ceartgoleor:~$ mencoder dvd://1  -o test1.flv  -of lavf -ovc lavc -oac lavc -lavcopts
vcodec=flv:vbitrate=250:autoaspect:acodec=libmp3lame:abitrate=64 -vf scale=320:240 -srate 22050 -af lavcresample=22050
MEncoder 2:1.0~rc2-0ubuntu13 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (Family: 15, Model: 4, Stepping: 1)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
*** Zero check failed in ifo_read.c:436
    for vmgi_mat->zero_3 = 0x00000000010000000000000000000000000000
There are 4 titles on this DVD.
There are 1 chapters in this DVD title.
There are 1 angles in this DVD title.
audio stream: 0 format: ac3 (stereo) language: unknown aid: 128.
number of audio channels on disk: 1.
number of subtitles on disk: 0
success: format: 2  data: 0x0 - 0x669000
MPEG-PS file format detected.
VIDEO:  MPEG2  720x576  (aspect 2)  25.000 fps  9400.0 kbps (1175.0 kbyte/s)
[V] filefmt:2  fourcc:0x10000002  size:720x576  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 256.0 kbit/16.67% (ratio: 32000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
** MUXER_LAVF *****************************************************************
REMEMBER: MEncoder's libavformat muxing is presently broken and can generate
INCORRECT files in the presence of B frames. Moreover, due to bugs MPlayer
will play these INCORRECT files as if nothing were wrong!
*******************************************************************************
OK, exit
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=320 h=240]
==========================================================================
Opening video decoder: [mpegpes] MPEG 1/2 Video passthrough
VDec: vo config request - 720 x 576 (preferred colorspace: Mpeg PES)
The selected video_out device is incompatible with this codec.
Try appending the scale filter to your filter list,
e.g. -vf spp,scale instead of -vf spp.
VDecoder init failed :(
Opening video decoder: [libmpeg2] MPEG 1/2 Video decoder libmpeg2-v0.4.0b
Selected video codec: [mpeg12] vfm: libmpeg2 (MPEG-1 or 2 (libmpeg2))
==========================================================================
VDec: vo config request - 720 x 576 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is 1.33:1 - prescaling to correct movie aspect.
SwScaler: reducing / aligning filtersize 10 -> 12
SwScaler: reducing / aligning filtersize 10 -> 12
SwScaler: reducing / aligning filtersize 11 -> 10
SwScaler: reducing / aligning filtersize 11 -> 10
[swscaler @ 0x880f730]SwScaler: BICUBIC scaler, from yuv420p to yuv420p using MMX2
[swscaler @ 0x880f730]SwScaler: using n-tap MMX scaler for horizontal luminance scaling
[swscaler @ 0x880f730]SwScaler: using n-tap MMX scaler for horizontal chrominance scaling
[swscaler @ 0x880f730]SwScaler: using n-tap MMX scaler for vertical scaling (YV12 like)
[swscaler @ 0x880f730]SwScaler: 720x576 -> 320x240
videocodec: libavcodec (320x240 fourcc=31564c46 [FLV1])
VIDEO CODEC ID: 22f ( 9%)  0.00fps Trem:   0min   0mb  A-V:0.004 [0:0]
AUDIO CODEC ID: 15001, TAG: 0
Writing header...

1 duplicate frame(s)!
Pos:   0.8s     22f (16%)  0.00fps Trem:   0min   0mb  A-V:0.084 [0:63]
Skipping frame!
Pos:   1.2s     32f (19%)  0.00fps Trem:   0min   0mb  A-V:0.084 [441:63]
Skipping frame!
Pos:   1.6s     42f (23%)  0.00fps Trem:   0min   0mb  A-V:0.084 [374:63]
Skipping frame!
Pos:  10.8s    276f (100%) 65.50fps Trem:   0min   0mb  A-V:0.034 [188:63]
Flushing video frames.
Writing index...

Video stream:  188.661 kbit/s  (23582 B/s)  size: 255635 bytes  10.840 secs  276 frames

Audio stream:   63.999 kbit/s  (7999 B/s)  size: 85263 bytes  10.658 secs







More information about the MPlayer-users mailing list