[MPlayer-dev-eng] [PATCH] [TEST AFILTER] Encode ac3 at runtime using lavc

Diego Biurrun diego at biurrun.de
Tue Nov 20 13:53:55 CET 2007


On Tue, Nov 20, 2007 at 07:23:46PM +0800, Ulion wrote:
> 2007/11/20, Diego Biurrun <diego at biurrun.de>:
> > >
> > > Sorry for my mistake in Makefile, fix again.
> > >
> > > --- DOCS/man/en/mplayer.1     (revision 25106)
> > > +++ DOCS/man/en/mplayer.1     (working copy)
> > > @@ -4695,6 +4695,30 @@
> > > +.B lavcac3enc[=tospdif[:bitrate[:minchn]]]
> > > +Encode multi-channel audio to AC-3 at runtime using libavcodec.
> > > +Supports input 16-bit little-endian or big-endian format, max 6 channels.
> >
> > input formats
> >
> > > --- libaf/af_lavcac3enc.c     (revision 0)
> > > +++ libaf/af_lavcac3enc.c     (revision 0)
> > > @@ -0,0 +1,289 @@
> > > +/*
> > > + * Audio filter for encoding AC-3 stream at runtime using libavcodec.
> >
> > Audio filter for runtime AC-3 encoding with libavcodec
> >
> --- DOCS/man/en/mplayer.1	(revision 25118)
> +++ DOCS/man/en/mplayer.1	(working copy)
> @@ -4695,6 +4695,31 @@
> +.B lavcac3enc[=tospdif[:bitrate[:minchn]]]
> +Encode multi-channel audio to AC-3 at runtime using libavcodec.
> +Supports input 16-bit little-endian or big-endian formats, maximum 6 channels.

input formats

> +You need to specify '\-channels N' to make the decoder decode audio into
> +N channels, then the filter can encode the N channels input to AC-3.

N-channel input

> +Either set it to 384 or 384000 to get 384kbits.

Set it to either

> +.IPs <minchn>
> +Minimum channel number of the input audio to use this filter (default: 5).
> +If the input channel number is less than <minchn>, the filter will
> +detach itself.

I think the first sentence is completely redundant.  The following
should do as well:

  If the input channel number is less than <minchn>, the filter will
  detach itself (default: 5).

> --- libaf/af_lavcac3enc.c	(revision 0)
> +++ libaf/af_lavcac3enc.c	(revision 0)
> @@ -0,0 +1,289 @@
> +/*
> + * Audio filter for runtime AC-3 encoding with libavcodec.

audio filter for runtime AC-3 encoding with libavcodec

There are some awfully long lines in there.  Keeping them below 80
characters would be a plus.

Diego



More information about the MPlayer-dev-eng mailing list