[MPlayer-users] muxing vorbis audio with mencoder?

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


On Sat, Jul 20, 2002 at 02:37:28AM -0400, D Richard Felker III wrote:
> 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
> 
> Without -noskip, I get lots of (bogus) skipped frames, which corrupts
> the video since many I/P frames get lost. With or without that option,
> the audio doesn't work in the output file. Mplayer gives the following
> output:
> 
> 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 :(
> Couldn't initialize audio codec! -> nosound

I think I found the problem. It appears that the ogg demuxer munches
the first packet (with all the header info) when it opens the stream.
Thus, -oac copy starts copying with the second packet, which is bogus.
Any suggestions on how to fix this?

Rich




More information about the MPlayer-users mailing list