[MPlayer-users] AVI with AC3 stream,audio/video interleaving with MEncoder

Arpi arpi at thot.banki.hu
Sun Apr 28 21:06:01 CEST 2002


Hi,

> I was tried increase value for audio/video interleaving from 1 (default) to 
> 25 frames (in VirtualDub).
> 
> Avis with A/V int. above 4 frames are unplayable with windows decoders 
> (interrupted or no sound.)

hmm

> In MPlayer A/V int. 25 frames : no problem!.
> 
> Can I change A/V interleaving in MEncoder?
> 
> I was search these value into avivrite.c and avivrite.h ,but iIm not C 
> programmer :-} 

i think you made it with -aoc copy, from vob.

            // CBR - copy 0.5 sec of audio
            switch(mux_a->codec){
            case ACODEC_COPY: // copy
                len=mux_a->wf->nAvgBytesPerSec/2;
                len/=mux_a->h.dwSampleSize;if(len<1) len=1;
                len*=mux_a->h.dwSampleSize;
                len=demux_read_data(sh_audio->ds,mux_a->buffer,len);
                break;

so mencoder interleaves 0.5s audio samples with video (so for 24fps vdieo
it's 12 frame interleaving)

try to change this line:
                len=mux_a->wf->nAvgBytesPerSec/2;
to:
                len=mux_a->wf->nAvgBytesPerSec/12;

so it will interleave at every 2 frames
tell me if it help


A'rpi / Astral & ESP-team

--
Developer of MPlayer, the Movie Player for Linux - http://www.MPlayerHQ.hu




More information about the MPlayer-users mailing list