[MPlayer-users] muxing vorbis audio with mencoder?

D Richard Felker III dalias at aerifal.cx
Sat Jul 20 15:58:02 CEST 2002


On Sat, Jul 20, 2002 at 02:04:13PM +0200, Arpi wrote:
> [Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
> Hi,
> 
> > Anyone had success muxing vorbis audio into an avi file with mencoder?
> > I'm using the following command line:
> > 
> > mencoder foo.avi -audiofile bar.ogg -ovc copy -oac copy -noskip -mc 0
> 
> does 'mplayer bar.ogg' works ??? i doubt. this .ogg file looks broken:

Yes, it works fine. I just encoded the ogg file myself with oggenc
specifically for the purpose of putting it in an avi file.

> > AVI OGG : Initial audio header is too small !!!!!
> > [V] filefmt:3  fourcc:0x33564944  size:352x240  fps:23.98  ftime:=0.0417
> > get_path('sub/') -> '/home/dalias/.mplayer/sub/'
> > Detected audio codec: [vorbis] afm:10 (OggVorbis Audio Decoder)
> > Initializing audio codec...
> > Opening audio decoder: [libvorbis] Ogg/Vorbis audio decoder
> > dec_audio: Allocating 4096 + 65536 = 69632 bytes for output buffer
> > OggVorbis: initial (identification) header broken!
>                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
> > ADecoder init failed :(
> 
> the oggvorvbis audio decoder didn't accept your .ogg file

This only happens once it's been put in the avi file with -oac copy...

One strange thing I noticed is that mencoder is doing the audio copy
with the CBR audio code instead of the VBR code; however, forcing it
to use the VBR copy makes no difference.

I'm using mplayer CVS from last night and the latest vorbis libs.

Should I upload the files to mphq? I tried again with some different
files and got exactly the same results, so I doubt they'd really be
useful. It should be easy to reproduce this problem with any ogg file
and movie file.

Rich




More information about the MPlayer-users mailing list