[MPlayer-users] mencoder skips keyframe when encoding audio to mp3
Mikhail Ramendik
mr at ramendik.ru
Sun Jun 20 01:04:11 CEST 2004
Hello,
I have a clip that is 20 minutes long, and encoded in lavc/mpeg4 with
pcm (32kHz) sound. It plays just fine.
But when I try to change the sound into mp3, several seconds in the very
beginning (starting I wthink with the second second) get an image
breakdown. Apparently mencoder skips a keyframe; it does say "skipping
frame" ijn the very beginning of the process.
Anyway here's what the process looks like. This one is encoding only the
first minute for testing; the results were the same when I encoded the
entire clip. I tried different lame settings, including CBR - still the
same.
Is there a way I could change this? Like, prevent it from dropping the
frame? I do not want to re-encode...
$ mencoder service2.avi -o servicetest.avi -endpos 0:1:0 -ovc copy -oac
mp3lame -lameopts preset=extreme
MEncoder 1.0pre4-3.2.2 (C) 2000-2004 MPlayer Team
CPU: Intel Pentium 4/Xeon/Celeron Foster 2407 MHz (Family: 8, Stepping:
9)
Detected cache-line size is 64 bytes
CPUflags: Type: 8 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Reading /home/misha/.mplayer/codecs.conf: Can't open
'/home/misha/.mplayer/codecs.conf': No such file or directory
Reading /usr/local/etc/mplayer/codecs.conf: Can't open
'/usr/local/etc/mplayer/codecs.conf': No such file or directory
Using built-in default codecs.conf.
File not found: 'frameno.avi'
Failed to open frameno.avi
Reading config file /home/misha/.mplayer/mencoder: No such file or
directory
font: can't open file: /home/misha/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
success: format: 0 data: 0x0 - 0x16E17FD4
AVI file format detected.
VIDEO: [DIVX] 0x0 24bpp 25,000 fps 1200,6 kbps (146,6 kbyte/s)
[V] filefmt:3 fourcc:0x58564944 size:0x0 fps:25,00 ftime:=0,0400
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 32000 Hz, 2 ch, 16 bit (0x10), ratio: 128000->128000 (1024,0
kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
videocodec: framecopy (0x0 24bpp fourcc=58564944)
MP3 audio selected
Building audio filter chain for 32000Hz/2ch/16bit ->
32000Hz/2ch/16bit...
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not
writing vprp header.
preset=extreme
Pos: 1,0s 25f ( 0%) 0fps Trem: 4min 249mb A-V:0,081 [0:216]
Skipping frame!
Pos: 60,0s 1500f ( 4%) 103fps Trem: 5min 233mb A-V:0,048
[1213:220]
Writing AVI index...
Fixing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not
writing vprp header.
Video stream: 1213,349 kbit/s (151668 bps) size: 9094051 bytes 59,960
secs 1500 frames
Audio stream: 220,017 kbit/s (27502 bps) size: 1662336 bytes 60,444
secs
More information about the MPlayer-users
mailing list