[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Original]
[MPlayer-users] muxing vorbis audio with mencoder?
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
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 suspect the problem is that mplayer expects vorbis audio to be
wrapped in ogg inside the avi file, but the demuxer just pulls out the
raw vorbis stream and gives it to mencoder for copying. Is this the
case, and if so, is there any easy fix?
I would just consider adding internal vorbis encoding support, but
with the new audio filter layer coming very soon (hopefully) that
seems like a wasted effort. If the problem really is that mplayer
requires vorbis audio to be ogg-wrapped, it should probably just be
fixed -- as I understand, that's an extremely broken arrangement just
used by some bad encoder program for windows.
Description: Text document