[MPlayer-users] "Too many video packets in the buffer" playing a merged file

D Richard Felker III dalias at aerifal.cx
Fri Oct 1 20:53:01 CEST 2004


On Fri, Oct 01, 2004 at 06:20:37PM +0100, Alessandro Di Rubbo wrote:
> After having merged files, "Too many video packets in the buffer" error
> playing the resulting file: where is the problem?
> 
> An example:
> 
> 
> mknod AUDIO.wav p
> 
> oggenc -q 4 --resample 44100 AUDIO.wav&
> 
> mplayer dvd://1 -chapter 1-10 -really-quiet -vc null -vo null -ao pcm
> -af volume=10 -alang en -aofile AUDIO.wav
> 
> ---> AUDIO.ogg is OK.

are you sure it's ok? in my experience oggenc is totally broken with
regard to wav header handling, and cuts off before reaching the end.
you might need to handle it all as raw (headerless) audio...

> mencoder dvd://1 -chapter 1-9 -noodml -nosound -o /dev/null -ovc lavc
> -lavcopts vcodec=mpeg4:vbitrate=1000:v4mv:vpass=1:mbd=2:trell:cbp:keyint=125
> -vf crop=$CROP,scale=$SCALE

NEVER EVER use -nosound unless you actually intend for the final movie
to have no sound!!! it will ruin a/v sync. Use -oac copy.

> cat MOVIE_MUTE.avi CREDITS_MUTE.avi > WRONG_INDEX_VIDEO.avi
> 
> mencoder -ovc copy -oac copy -o VIDEO.avi -forceidx WRONG_INDEX_VIDEO.avi

why are you encoding credits separately anyway?? this nasty hack is
bound to make trouble. the "merging avis" thing is a total hack, and
so if you do it and it works, great, but if not, don't report it as a
bug. it's not meant to work!

> ---> VIDEO.avi seems to be OK.
> 
> mkvmerge VIDEO.avi AUDIO.ogg --chapters CHAPTERS.txt -o COMPLETE.mkv
> 
> ---> Playing resulting COMPLETE.mkv, mplayer shows "Too many video packets in
>         the buffer" error exactly when the last chapter begins (and the audio
>         disappears). Also other players stop to play audio at the last chapter
>         beginning.
> 
> 
> I've tried to use avimerge instead of cat & mencoder, but the error is still there.
> I've tried to use ogmmerge instead of mkvmerge, but the error is still there.
> I've tried to encode and merge one-chapter MOVIE.avi and one-chapter 
> CREDITS.avi (and then two-chapters AUDIO.ogg): no error at all (?).
> 
> I think the problem is with the video encoding phase, not with the merging
> phases.
> 
> I remember that some times ago I made an MPEG4+OGG OGM, with credits encoded 
> separately, that worked perfectly. Now I'm using different mencoder options: 
> -noodml (if the file is bigger than 1GB, mkvmerge don't work with an "omdled" 
> AVI file) and some lavcopts (trell, keyint=125, etc.).
> 
> ... any idea?

nope, sorry. try without doing any merging of the video. and of course
remove -nosound! it could just be the desync from -nosound causing the
problem.

rich




More information about the MPlayer-users mailing list