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

Sebastian Melchior webmaster at mailz.de
Sun May 27 22:43:17 CEST 2007


Hi,
I was mistaken and copied the wrong output (even if the end result is the same).

This is now (hopefully ;)) the correct one, lame and mencoder both compiled with 
gcc 4.1.2:

RC1:
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.000' -vf scale=320:240
MEncoder 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (Family: 15, Model: 4, Stepping: 9)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
98 audio & 216 video codecs
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


SVN:
mencoder-dev -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.000' -vf scale=320:240
MEncoder dev-SVN-r23385-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (Family: 15, Model: 4, Stepping: 9)
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.
[mov] Audio stream found, -aid 2
[mov] Video stream found, -vid 3
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 @ 0x87da888]SwScaler: using unscaled yuv420p -> yuv420p special converter
videocodec: libavcodec (320x240 fourcc=31564c46 [FLV1])
New_Face failed. Maybe the font path is wrong.
Please supply the text font file (~/.mplayer/subfont.ttf).
subtitle font: load_sub_face failed.
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: 22
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


Trying to encode with:
mencoder -msglevel all=4 1.mov -o 1.flv -of lavf -oac mp3lame -ovc lavc 
-lavfopts i_certify_that_my_video_stream_does_not_use_b_frames -lavcopts 
vcodec=flv:vbitrate=500:keyint=12 -lameopts cbr:br=96 -mc 0 -srate 44100 -ofps 
'25.000' -vf scale=320:240

also gives lots of:
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.

errors. (same results on RC1 and SVN version)


Could it be that the source file's audio is broken, although the playback with 
VLC looks okay?

Best Regards
Sebastian



More information about the MEncoder-users mailing list