[MPlayer-users] encoding ac3

Felix Buenemann atmosfear at users.sourceforge.net
Sat Jun 8 05:12:02 CEST 2002


On Friday 31 May 2002 22:19, Kresimir Kukulj wrote:
> Resulting file will be unplayable (jittery) in windows players.
> Interleaving video with audio affects playback greatly (using S/PDIF).
> Since mencoder has no interface to specify how much/often audio will be
> interleaved with video, use attached patch (idea from this mlist).
> Tweak the number if needed. This works for me.
>
> -----CUT HERE----
> diff -ruN main-cvs20020527/mencoder.c main/mencoder.c
> --- main-cvs20020527/mencoder.c Sun May 26 00:24:08 2002
> +++ main/mencoder.c     Mon May 27 22:02:32 2002
> @@ -826,7 +826,7 @@
>             // CBR - copy 0.5 sec of audio
>             switch(mux_a->codec){
>             case ACODEC_COPY: // copy
> -               len=mux_a->wf->nAvgBytesPerSec/2;
> +               len=mux_a->wf->nAvgBytesPerSec/10;
>                 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);
> -----CUT HERE----
Arpi, could you make this an option, eg. -ai 2 (ai -> audio interleave).

-- 
Best Regards,
        Atmos
____________________________________________
- MPlayer Developer - http://mplayerhq.hu/ -
____________________________________________




More information about the MPlayer-users mailing list