[MEncoder-users] Unable to encode using "-oac mp3lame"
Brendan Schwartz
bschwartz at tropist.com
Thu Aug 9 20:38:30 CEST 2007
I upgraded MPlayer from rc1 to SVN r24043 and now I'm unable to encode mp3
audio using the lame codec.
Here's what I'm trying
$ mencoder some.mov -v -ovc lavc -oac mp3lame -o some.avi
MEncoder dev-SVN-r24043-4.1.2 (C) 2000-2007 MPlayer Team
CPU: Intel(R) Pentium(R) 4 CPU 2.80GHz (Family: 15, Model: 2, Stepping: 9)
CPUflags: Type: 15 MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 1 SSE2: 1
Compiled for x86 CPU with extensions: MMX MMX2 SSE SSE2
Configuration:
init_freetype
get_path('font/font.desc') -> '/home/tropist/.mplayer/font/font.desc'
font: can't open file: /home/tropist/.mplayer/font/font.desc
font: can't open file: /usr/local/share/mplayer/font/font.desc
Using MMX (with tiny bit MMX2) Optimized OnScreenDisplay
[file] File size is 7904399 bytes
STREAM: [file]
public/media/wistia/9ab11d9d446aef8c9e456a2ec2fd1c56e2bf5482.mov
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
success: format: 0 data: 0x0 - 0x789c8f
Checking for YUV4MPEG2
ASF_check: not ASF guid!
Checking for NuppelVideo
Checking for REAL
Checking for SMJPEG
Searching demuxer type for filename some.mov ext: .mov
Trying demuxer 7 based on filename extension
Checking for MOV
ISO: File Type Major Brand: Original QuickTime
ISO: File Type Minor Version: 537199360
ISO: File Type Compatible Brand #0: qt
ISO: File Type Compatible Brand #1:
ISO: File Type Compatible Brand #2:
ISO: File Type Compatible Brand #3:
MOV: Movie header found!
MOV: 'WIDE' chunk found!
MOV: Movie DATA found!
Quicktime/MOV file format detected.
MOV: Movie header (100 bytes): tscale=600 dur=34694
--------------
MOV: Track #0:
MOV: Track header!
tkhd len=84 ver=0 flags=0x0 id=1 dur=34694 lay=0 vol=256
MOV: Edit atom!
MOV: Edit list table (1 entries) (ver:0,flags:0)
MOV: entry#0: duration: 34694 start time: 0 speed: 1.0x
MOV: Media stream!
MOV: Media header!
MOV: Handler header: mhlr/soun (appl) Apple Sound Media Handler
MOV: Media info!
MOV: Sound header!
MOV: Handler header: dhlr/alis (appl) Apple Alias Data Handler
MOV: unknown chunk: dinf 28
MOV: Sample info!
MOV: Description list! (cnt:1)
MOV: desc #0: mp4a (171 bytes)
MOV: Sample duration table! (1 blocks)
MOV: Sample->Chunk mapping table! (265 blocks) (ver:0,flags:0)
MOV: Sample size table! (entries=2491 ss=0) (ver:0,flags:0)
MOV: Chunk offset table! (265 chunks)
MOV track #0: 265 chunks, 2491 samples
pts=2550784 scale=44100 time=57.841
EL#0: pts=0 1st_sample=0 frames=2491 (57.823s) pts_offs=0
==> Found audio stream: 0
[mov] Audio stream found, -aid 0
Audio bits: 16 chans: 1 rate: 44100
Audio header: samp/pack=1024 bytes/pack=2 bytes/frame=2 bytes/samp=2
Audio extra header: len=91 fcc=0x77617665
MOV: Found MPEG4 audio Elementary Stream Descriptor atom (51)!
ESDS MPEG4 version: 0 flags: 0x000000
ESDS MPEG4 ES Descriptor (34Bytes):
-> ESId: 0
-> streamPriority: 0
ESDS MPEG4 Decoder Config Descriptor (20Bytes):
-> objectTypeId: 64
-> streamType: 0x15
-> bufferSizeDB: 0x001800
-> maxBitrate: 64.000kbit/s
-> avgBitrate: 64.000kbit/s
ESDS MPEG4 Decoder Specific Descriptor (2Bytes)
ESDS MPEG4 Sync Layer Config Descriptor (1Bytes)
-> predefined: 2
Fourcc: mp4a
--------------
MOV: Track #1:
MOV: Track header!
tkhd len=84 ver=0 flags=0x0 id=2 dur=34694 lay=0 vol=0
MOV: unknown chunk: tapt 60
MOV: Edit atom!
MOV: Edit list table (1 entries) (ver:0,flags:0)
MOV: entry#0: duration: 34694 start time: 0 speed: 1.0x
MOV: Media stream!
MOV: Media header!
MOV: Handler header: mhlr/vide (appl) Apple Video Media Handler
MOV: Media info!
MOV: Video header!
MOV: Handler header: dhlr/alis (appl) Apple Alias Data Handler
MOV: unknown chunk: dinf 28
MOV: Sample info!
MOV: Description list! (cnt:1)
MOV: desc #0: avc1 (135 bytes)
MOV: Sample duration table! (1 blocks)
MOV: unknown chunk: ctts 13704
MOV: unknown chunk: cslg 24
MOV: Syncing samples (keyframes) table! (38 entries) (ver:0,flags:0)
MOV: unknown chunk: stps 12
MOV: unknown chunk: sdtp 1737
MOV: Sample->Chunk mapping table! (231 blocks) (ver:0,flags:0)
MOV: Sample size table! (entries=1733 ss=0) (ver:0,flags:0)
MOV: Chunk offset table! (231 chunks)
MOV track #1: 231 chunks, 1733 samples
pts=173300 scale=2997 time=57.824
EL#0: pts=0 1st_sample=0 frames=1733 (57.823s) pts_offs=0
==> Found video stream: 1
[mov] Video stream found, -vid 1
MOV: AVC decoder configuration record atom (43)!
MOV: avcC version: 1
MOV: avcC profile: 77
MOV: avcC profile compatibility: 64
MOV: avcC level: 21
MOV: avcC nal length size: 4
MOV: avcC number of sequence param sets: 1
MOV: avcC sps 0 have length 20
MOV: avcC number of picture param sets: 1
MOV: avcC pps 0 have length 4
MOV: Found unknown movie atom colr (18)!
Image size: 480 x 320 (24 bpp)
Display size: 480 x 320
Fourcc: avc1 Codec: 'H.264'
--------------
MOV: longest streams: A: #0 (2491 samples) V: #1 (1733 samples)
VIDEO: [avc1] 480x320 24bpp 29.970 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:7 fourcc:0x31637661 size:480x320 fps:29.97 ftime:=0.0334
==========================================================================
Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)
dec_audio: Allocating 4608 bytes for input buffer.
dec_audio: Allocating 49152 + 65536 = 114688 bytes for output buffer.
FAAD: Decoder init done (0Bytes)!
FAAD: Negotiated samplerate: 44100Hz channels: 2
FAAD: got 64kbit/s bitrate from MP4 header!
AUDIO: 44100 Hz, 2 ch, s16le, 64.0 kbit/4.54% (ratio: 8000->176400)
Selected audio codec: [faad] afm: faad (FAAD AAC (MPEG-2/MPEG-4 Audio)
decoder)
==========================================================================
[file] File size is 0 bytes
STREAM: [file] some.avi
STREAM: Description: File
STREAM: Author: Albeu
STREAM: Comment: based on the code from ??? (probably Arpi)
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
INFO: libavcodec init OK!
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Building audio filter chain for 44100Hz/2ch/s16le -> 0Hz/0ch/??...
[libaf] Adding filter dummy
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[libaf] Adding filter format
[format] Changing sample format from little-endian 16-bit signed int to
big-endian 8-bit signed int
[dummy] Was reinitialized: 44100Hz/2ch/s16le
[format] Changing sample format from little-endian 16-bit signed int to
big-endian 8-bit signed int
Exiting...
(a file "some.avi" is produced, but it's zero-length)
However, encoding to pcm works fine:
$ mencoder some.mov -v -ovc lavc -oac pcm -o some.avi
And I have the latest LAME installed.
$ lame --version
LAME 32bits version 3.97 (http://www.mp3dev.org/)
>From configure.log:
============ Checking for libmp3lame (for mencoder) ============
< ... snip ... >
Result is: yes
I have a strange feeling I've missed something obvious, but it's really not
jumping out at me.
Thanks,
Brendan
More information about the MEncoder-users
mailing list