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

Alessandro Di Rubbo evanescenti at graffiti.net
Fri Oct 1 19:20:37 CEST 2004


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.

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

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

---> MOVIE_MUTE.avi is OK.

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

mencoder dvd://1 -chapter 10-10 -noodml -nosound -o CREDITS_MUTE.avi -ovc lavc 
-lavcopts vcodec=mpeg4:vbitrate=200:v4mv:vpass=2:mbd=2:trell:cbp:keyint=125
-vf crop=$CROP,scale=$SCALE

---> CREDITS_MUTE.avi is OK.

cat MOVIE_MUTE.avi CREDITS_MUTE.avi > WRONG_INDEX_VIDEO.avi

mencoder -ovc copy -oac copy -o VIDEO.avi -forceidx WRONG_INDEX_VIDEO.avi

---> 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?
Thanks in advance.


Alessandro

-- 
_______________________________________________
Graffiti.net free e-mail @ www.graffiti.net
Check out our value-added Premium features, such as a 1 GB mailbox for just US$9.95 per year!


Powered by Outblaze




More information about the MPlayer-users mailing list