[MEncoder-users] "Too many audio packets in the buffer"

Nikolaus Rath Nikolaus at rath.org
Fri Oct 3 22:32:04 CEST 2008


Laine Lee <llee at lonestar.utsa.edu> writes:
> On 10/3/08 11:34 AM, "Nikolaus Rath" <Nikolaus at rath.org> wrote:
>
>> Nikolaus Rath <Nikolaus at rath.org> writes:
>>> Hello,
>>> 
>>> I am trying to recode a video with a lower resolution. This is the
>>> initial mencoder output:
>> [...]
>> 
>> I have tried around a bit more and would like to add that exactly the
>> same error occurs if I recode only the audio (-oac copy -ovc mp3lame)
>> and also if I compile with libdca.
>> 
>> Any suggestions?
>
> I think you have to encode the audio rather than copy it to avoid the too
> many packets error.

Actually that is what I did, I just mixed up the options above. Of
course I used -oac mp3lame -ovc copy (-ovc mp3lame doesn't make any
sense anyway).


> You might want to try changing your mp3lame options first. Can you
> use oac -lavc and encode to ac3 instead?

I tried

# mencoder -ovc copy -oac lavc -lavcopts acodec=ac3

and got the same error:

MEncoder 2:1.0~rc2-0ubuntu15+medibuntu1 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) M processor 1.73GHz (Family: 6, Model: 13, Stepping: 8)
CPUflags: Type: 6 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
success: format: 0  data: 0x0 - 0x15475815
[mkv] Track ID 1: video (V_MPEG4/ISO/AVC), -vid 0
[mkv] Track ID 2: audio (A_DTS), -aid 0, -alang eng
[mkv] Will play video track 1.
Matroska file format detected.
VIDEO:  [avc1]  1280x720  24bpp  29.970 fps    0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:31  fourcc:0x31637661  size:1280x720  fps:29.97  ftime:=0.0334
==========================================================================
Opening audio decoder: [libdca] DTS decoding with libdca
Stream with high frequencies VQ coding
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
Selected audio codec: [dts] afm: libdca (DTS-libdca)
==========================================================================
videocodec: framecopy (1280x720 24bpp fourcc=31637661)
Writing header...
[....]

Pos: 395.9s  13181f ( 9%) 180.58fps Trem:  11min 3840mb  A-V:0.067 [7748:223]
Skipping frame!
Pos: 396.1s  13189f ( 9%) 180.62fps Trem:  11min 3839mb  A-V:0.060 [7746:224]
Too many audio packets in the buffer: (4098 in 2786640 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.


Best,

   -Nikolaus

-- 
 »It is not worth an intelligent man's time to be in the majority.
  By definition, there are already enough people to do that.«
                                                         -J.H. Hardy

  PGP fingerprint: 5B93 61F8 4EA2 E279 ABF6  02CF A9AD B7F8 AE4E 425C




More information about the MEncoder-users mailing list