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

Nikolaus Rath Nikolaus at rath.org
Fri Oct 3 03:47:44 CEST 2008


Hello,

I am trying to recode a video with a lower resolution. This is the
initial mencoder output:

MEncoder 1.0rc2-4.1.3 (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 for x86 CPU with extensions: MMX MMX2 SSE SSE2
[....]
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
==========================================================================
Requested audio codec family [dts] (afm=libdca) not available.
Enable it at compilation.
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 2 ch, s16le, 0.0 kbit/0.00% (ratio: 0->192000)
Selected audio codec: [ffdca] afm: ffmpeg (FFmpeg DTS)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [scale w=1024 h=576]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
======================================================================
[....]


I can encode about 6 minutes. Afterwards, mencoder aborts with:

Skipping frame!
Pos: 394.9s  13153f ( 9%)  1.17fps Trem:1719min 2501mb  A-V:0.040 [5096:102]
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.

Flushing video frames.
Writing index...
Writing header...


However, if I start the encoding with -ss 00:06:30 (=390 seconds) I
can correctly encode up to 450 seconds and beyond.


Can anyone tell me what am I doing wrong here or how do fix this
problem?


My encoding options are -x264encopts partitions=all:trellis=1:frameref=3:bframes=3:me=umh:subq=7:direct_pred=auto:nofast_pskip:nr=300:crf=18 -vf scale=1024:576 -ovc x264 -oac mp3lame -lameopts preset=medium

Thanks in advance,

   -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