[MEncoder-users] [BUG] mencoder fails to encode VOB file

jay sig jaysig at yahoo.com
Fri Dec 30 17:26:38 CET 2005


When mencoder is invoked as follows it fails to encode
the VOB file.

  for VPASS in 1 2; do
    mencoder -ss 0:05:27.3 -endpos 0:0:0.53 \
    -oac lavc -ovc lavc -vf crop=720:416:0:80 \
    -lavcopts \
    /cdrom/VIDEO_TS/VTS_01_1.VOB -o out.avi; \

This always fails on the 2nd pass and I have narrowed
it down to the timeframe shown in the command.  The
error is as follows:

  mencoder: ratecontrol.c:661:
ff_rate_estimate_qscale: Assertion `pict_type == rc

Using avidemux the offending segment was saved into a
916 KB file and the above mencoder command fails on
this: http://www.yucc.org.uk/jay/clip.avi

If the offending clip is saved using "mencoder -oac
copy -ovc copy" and encoded with the above command,
mencoder succeeds.

My original list of lavcopts was longer. The
combination shown above was the shortest I could find
that would fail. Taking any one option away makes the
encoding succeed. It also works if there is no crop.
The following lavcopts combinations succeed:


Hope this report is useful as it has taken me a few
days to prune everything down. 

Mencoder version and system information follows:

MEncoder 1.0pre7-3.3.5 (C) 2000-2005 MPlayer Team
CPU: Advanced Micro Devices Athlon MP/XP/XP-M Barton
(Family: 6, Stepping: 0)
Detected cache-line size is 64 bytes
MMX2 supported but disabled
SSE supported but disabled
3DNow supported but disabled
3DNowExt supported but disabled
CPUflags: Type: 6 MMX: 1 MMX2: 0 3DNow: 0 3DNow2: 0
SSE: 0 SSE2: 0
Compiled for x86 CPU with extensions: MMX

Package: mencoder-k6
Version: 1:1.0-pre7-0.0

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.26
Locale: LANG=en_GB, LC_CTYPE=en_GB

Versions of packages mencoder-k6 depends on:
ii  libasound2          1.0.8-3              ALSA
ii  libavcodeccvs       3:20050427-0sarge0.1 library
to encode decode multimedi
ii  libc6               2.3.2.ds1-22         GNU C
Library: Shared libraries an
ii  libcdparanoia0      3a9.8-11             Shared
libraries for cdparanoia (r
ii  libdivxdecore0      1:5.0.1-1            DivX
MPEG-4 Codec - decoder librar
ii  libdivxencore0      1:5.0.1-1            DivX
MPEG-4 Codec - encoder librar
ii  libdv4              0.103-2              software
library for DV format dig
ii  libdvdread3         0.9.4-5              Simple
foundation for reading DVDs
ii  libfaad2-0          2.0.0-0.7            freeware
Advanced Audio Decoder -
ii  libfontconfig1      2.3.2-1              generic
font configuration library
ii  libfreetype6        2.1.7-2.4            FreeType
2 font engine, shared lib
ii  libfribidi0         0.10.4-6             Free
Implementation of the Unicode
ii  libgcc1             1:3.4.3-13           GCC
support library
ii  libjpeg62           6b-10                The
Independent JPEG Group's JPEG
ii  liblame0            3.96.1-1             LAME
Ain't an MP3 Encoder
ii  liblircclient0      0.7.1pre2-2          LIRC
client library
ii  liblzo1             1.08-1.2             A
real-time data compression libra
ii  libmad0             0.15.1b-1.1          MPEG
audio decoder library
ii  libncurses5         5.4-4                Shared
libraries for terminal hand
ii  libogg0             1.1.2-1              Ogg
Bitstream Library
ii  libpng12-0          1.2.8rel-1           PNG
library - runtime
ii  libpostproc0        3:20050427-0sarge0.1 postproc
shared libraries
ii  libsmbclient        3.0.14a-3sarge1      shared
library that allows applica
ii  libstdc++5          1:3.3.5-13           The GNU
Standard C++ Library v3
ii  libtheora0          0.0.0.alpha4-1.1     The
Theora Video Compression Codec
ii  libungif4g          4.1.3-2sarge1        shared
library for GIF images (run
ii  libvorbis0a         1.1.0-1              The
Vorbis General Audio Compressi
ii  libxvidcore4        2:1.1.0-beta2-0.0    High
quality ISO MPEG4 codec libra
ii  xmms                1.2.10+cvs20050209-2 Versatile
X audio player that look
ii  zlib1g              1:1.2.2-4.sarge.2   
compression library - runtime

Yahoo! for Good - Make a difference this year. 

More information about the MEncoder-users mailing list