[mythtv-users] mencoder - Too many audio packets in the buffer

Mike Rosack mrosack at sacknet.org
Thu Oct 11 01:11:21 UTC 2007


I've been having good luck over the past half year or so archiving HD
shows to 720p h264 using mencoder, but I've run into an issue lately
with the show Reaper.  Episode 2 encoded fine, but episodes 1 and 3
give a lot of "1 duplicate frame(s)" messages, followed by an early
death with the following error message:

Too many audio packets in the buffer: (4096 in 8257536 bytes).
Maybe you are playing a non-interleaved stream/file or the codec failed?
For AVI files, try to force non-interleaved mode with the -ni option.

If I watch the resulting file, the audio gets further and further
behind the video the further I am into the stream.  I've had problems
before with the duplicate frame(s) message, but I've never seen this
before.  Is there something weird with this show?

My (1080i source) mencoder command line is:

mencoder "$1" -oac copy -ovc x264 -vf
pullup,softskip,scale=1280:720,harddup -ofps 24000/1001 -x264encopts
bitrate=2500:subq=6:partitions=all:8x8dct:me=umh:frameref=5:bframes=3:b_pyramid:weight_b
-o "$2"

Removing harddup doesn't change anything.  I've also tried encoding in
avidemux2 - it makes it all the way through, but the audio is still
out of sync.



- Mike Rosack


More information about the mythtv-users mailing list