[MEncoder-users] "Internal buffer inconsistency." Problem

Sebastian Melchior webmaster at mailz.de
Sat May 26 18:05:16 CEST 2007


Hi Everyone!

when trying to convert a MOV file to flv we rarely get an "Internal Buffer 
Inconsistency" Error and mencoder crashes. We tried to recompile lame with -O0 
as it was suggest in some other post on the list, but this did not really help. 
(Seems to have only been a Problem with an old lame version).

mencoder has been comipled with a gcc 4.1.2.

I hope someone can give me a hint how to fix this Problem :)

Sebastian

Here is the output of mencoder:

mencoder -msglevel all=4 1.mov -o 1.flv -of lavf -oac lavc -ovc lavc -lavfopts 
i_certify_that_my_video_stream_does_not_use_b_frames -lavcopts 
vcodec=flv:vbitrate=500:keyint=12:acodec=mp3:abitrate=96 
         -mc 0 -srate 44100 -ofps 25 -vf scale=320:240

MEncoder 1.0rc1-3.3.5 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) D CPU 3.20GHz (Family: 15, Model: 6, Stepping: 2)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0x38cd0d5
ISO: File Type Major Brand: Original QuickTime
ISO: File Type Major Brand: Original QuickTime
Quicktime/MOV file format detected.
VIDEO:  [avc1]  320x240  24bpp  25.000 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7  fourcc:0x31637661  size:320x240  fps:25.00  ftime:=0.0400
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio) decoder)
==========================================================================
** MUXER_LAVF *****************************************************************
You have certified that your video stream does not contain B frames.
REMEMBER: MEncoder's libavformat muxing is presently broken and will 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: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
VDec: vo config request - 320 x 240 (preferred colorspace: Planar YV12)
VDec: using Planar YV12 as output csp (no 0)
Movie-Aspect is undefined - no prescaling applied.
SwScaler: using unscaled yuv420p -> yuv420p special converter
videocodec: libavcodec (320x240 fourcc=766c66 [flv])
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
VIDEO CODEC ID: 0
AUDIO CODEC ID: 15001, TAG: 0
Writing header...

1 duplicate frame(s)!
Internal buffer inconsistency. flushbits <> ResvSizebit reservoir error:
l3_side->main_data_begin: 1880
Resvoir size:             -97832
resv drain (post)         -6
resv drain (pre)          0
header and sideinfo:      288
data bits:                2124
total bits:               2406 (remainder: 6)
bitsperframe:             2512
This is a fatal error.  It has several possible 
causes:90-0XF.FFE81D800000758P+16376ME compiled with buggy version of gcc using 
advanced optimizations 9% Your system is overclocked 1% bug in LAME encoding li
braryInternal buffer inconsistency. flushbits <> ResvSizeInternal buffer 
inconsistency. flushbits <> ResvSizeInternal buffer inconsistency. flushbits <> 
ResvSizeSegmentation fault



More information about the MEncoder-users mailing list