[MEncoder-users] avi with pcm sound to avi with mp3 sound

Scott tttocscode at yahoo.com
Sun Feb 27 20:28:43 CET 2005


I'm using MEncoder 1.0pre6-3.3.4.

I have an avi file, created with mencoder, that was made with '-oac copy'.  Now I am trying to
convert that avi/pcm file to an avi/mp3 file.

This is the command line and the output I get...

$ mencoder 30sec.avi -ovc copy -oac mp3lame -o 30sec_pass2mp3.avi

- - - - 8< - - - -
AVI file format detected.
VIDEO:  [DIVX]  480x352  24bpp  29.000 fps  938.5 kbps (114.6 kbyte/s)
[V] filefmt:3  fourcc:0x58564944  size:480x352  fps:29.00  ftime:=0.0345
==========================================================================
Opening audio decoder: [pcm] Uncompressed PCM audio decoder
AUDIO: 44800 Hz, 1 ch, 16 bit (0x10), ratio: 89600->89600 (716.8 kbit)
Selected audio codec: [pcm] afm:pcm (Uncompressed PCM)
==========================================================================
videocodec: framecopy (480x352 24bpp fourcc=58564944)
MP3 audio selected
Building audio filter chain for 44800Hz/1ch/16bit -> 44800Hz/2ch/16bit...
Writing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.
Pos:   0.8s     22f ( 5%)   0fps Trem:   0min   4mb  A-V:0.072 [0:0]
Skipping frame!
Pos:   1.1s     32f ( 6%)   0fps Trem:   0min   4mb  A-V:0.072 [1976:0]
Skipping frame!
- - - - 8< - - - -
Pos:  26.8s    862f (99%)   0fps Trem:   0min   3mb  A-V:0.072 [943:0]
Skipping frame!
Pos:  27.1s    871f (99%)   0fps Trem:   0min   3mb  A-V:0.069 [942:0]
Writing AVI index...
Fixing AVI header...
ODML: Aspect information not (yet?) available or unspecified, not writing vprp header.

Video stream:  942.968 kbit/s  (117871 bps)  size: 3194712 bytes  27.103 secs  871 frames

Audio stream:      nan kbit/s  (-2147483648 bps)  size: 0 bytes  0.000 secs




A huge negative number for my Audio stream bps cannot be good!  Not to mention the immediate
"Skipping frame!".

Note that I have also tried just about every -lameopts option too, to no avail.

I checked if lame was working and it will convert a wav file to a mp3 file perfectly.  So, lame is
fine, at least when ran on its own.  Could mencoder somehow not be using lame correctly?  (If
there are any lame experts out there, is there a way to use lame directly to do the conversion and
not alter the video, ala 'lame pcm.avi mp3.avi'?)

If you are wondering why I am not creating an avi/mp3 to begin with, it is because I am using
btaudio (I don't have a standalone sound card) and I could only get it to record via pcm.  If
someone knows the trick for getting btaudio to encode to mp3, I'm all ears (pardon the bad pun).

Thanks for any info,
Scott


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 




More information about the MEncoder-users mailing list