[MEncoder-users] Can mencoder mux a valid avi with aac audio ?

Nico Sabbi nicola_sabbi at fastwebnet.it
Thu Apr 5 00:55:54 CEST 2007


Pierre Catello wrote:

>
> Many thanks Nico,
>
>
> I just uploaded a short sample in the incoming directory :
>
> sample-menc.avi is the version generated with MEncoder :
>
> $ mencoder sample.mpg -ovc xvid -xvidencopts \
> "vhq=2:bvhq=1:chroma_opt:quant_type=mpeg:fixed_quant=4" -oac faac 
> -faacopts
> "br=128:mpeg=4" \
> -o sample-menc.avi
>
> sample.m4a = mplayer -dumpaudio -dumpfile=sample.m4a sample-menc.avi
>
> and sample-avimux.avi is generated with avi-mux-gui from sample-menc.avi,
> dropping the audio stream and replacing it with sample.m4a.
>
> Audio is Ok with all players with sample-avimux.avi, while only 
> MPlayer can
> play the audio from sample-menc.avi
>
> Pierre
>

try with ./mencoder -oac faac -faacopts br=..:raw:mpeg=4 recompiled with 
this patch applied
(that, in any case, looks nonsense to me)
maybe specifying the object=.. something

Index: libmpcodecs/ae_faac.c
===================================================================
--- libmpcodecs/ae_faac.c       (revisione 22837)
+++ libmpcodecs/ae_faac.c       (copia locale)
@@ -50,7 +50,7 @@
 static int bind_faac(audio_encoder_t *encoder, muxer_stream_t *mux_a)
 {
        mux_a->wf = calloc(1, sizeof(WAVEFORMATEX) + 
decoder_specific_len + 256);
-       mux_a->wf->wFormatTag = 0x706D;
+       mux_a->wf->wFormatTag = 0xFF;
        mux_a->wf->nChannels = encoder->params.channels;
        mux_a->h.dwSampleSize=0; // VBR
        mux_a->h.dwRate=encoder->params.sample_rate;




More information about the MEncoder-users mailing list