[MEncoder-users] mencoder giving up because of too many audio packets?
Grant Edwards
grante at visi.com
Tue Jun 12 06:35:39 CEST 2007
I'm using mencoder to transcode the audio in ATSC program
streams from A52 to MPEG3. About half the time, mencoder will
quit about half way through the file. Here's an example of a
two-hour recorded ATSC program stream that ends up being one
hour long:
Input file:
-rw-r--r-- 1 mythtv mythtv 3322572128 Jun 11 04:00 /myth/tv/2021_20070611020000.mpg
Output file:
-rw-r--r-- 1 mythtv mythtv 1538048000 Jun 11 04:03 /myth/tmp/convert350.4706.tmp
The output file should be roughly the same size as the input
file (the video isn't being changed, just the audio).
Mencoder run:
mencoder -quiet -noskip -of mpeg -mpegopts format=dvd:tsaf -oac lavc -ovc copy -lavcopts acodec=mp2:abitrate=256 -fps 30000/1001 -ofps 30000/1001 -vc mpeg12 -o /myth/tmp/convert350.4706.tmp /myth/tv/2021_20070611020000.mpg
MEncoder 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.40GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
WARNING: OUTPUT FILE FORMAT IS _MPEG_. See -of help.
success: format: 0 data: 0x0 - 0xc60a6d60
TS file format detected.
VIDEO MPEG2(pid=65) AUDIO A52(pid=68) NO SUBS (yet)! PROGRAM N. 1
VIDEO: MPEG2 704x480 (aspect 2) 29.970 fps 15000.0 kbps (1875.0 kbyte/s)
[V] filefmt:29 fourcc:0x10000002 size:704x480 fps:29.97 ftime:=0.0334
Input fps will be interpreted as 29.97 instead.
==========================================================================
Opening audio decoder: [liba52] AC3 decoding with liba52
Using SSE optimized IMDCT transform
Using MMX optimized resampler
AUDIO: 48000 Hz, 2 ch, s16le, 192.0 kbit/12.50% (ratio: 24000->192000)
Selected audio codec: [a52] afm: liba52 (AC3-liba52)
==========================================================================
PACKET SIZE: 2048 bytes, deltascr: 43885
videocodec: framecopy (704x480 24bpp fourcc=10000002)
Limiting audio preload to 0.4s.
Increasing audio density to 4.
Writing header...
INITV: 0.200, 0.167, fps: 29.970
a52: CRC check failed!
a52: CRC check failed!
a52: error at resampling
a52: CRC check failed!
a52: error at resampling
a52: CRC check failed!
a52: error at resampling
Too many audio packets in the buffer: (2185 in 8390400 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.
Too many audio packets in the buffer: (2185 in 8390400 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.
Writing index...
Overhead: 1.762% (26635440 / 1511412560)
Writing header...
Video stream: 3187.144 kbit/s (398393 B/s) size: 1537287884 bytes 3858.722 secs 115648 frames
Audio stream: 256.000 kbit/s (31999 B/s) size: 123492096 bytes 3859.128 secs
For some recordings the transcoding does finish OK. In all
cases there are the "a52: CRC check failed!" and "a52: error at
resampling".
The "Too many audio packets" error only shows up when the
transcoding fails, and it's always the last thing before the
"Writing index..." message.
What can I do to get mencoder to finish transcoding the file?
--
Grant Edwards grante Yow! Okay... I'm going
at home to write the "I HATE
visi.com RUBIK's CUBE HANDBOOK FOR
DEAD CAT LOVERS"...
More information about the MEncoder-users
mailing list