[MPlayer-dev-eng] Need help to extend mencoder
Moritz Bunkus
moritz at bunkus.org
Mon Oct 20 16:22:49 CEST 2003
Hi.
> 1) I don't know what's the meaning of (and how to calculate) these
> initialization fields in mux_a->wf:
>
> mux_a->wf->nBlockAlign //for mp3 it's =
> (mux_a->h.dwRate<32000)?576:1152; for PCM it's mux_a->h.dwSampleSize;
AC3 has a fixed number of 1536 samples per packet, so nBlockAlign should
be set to 1536 for AC3.
> mux_a->wf->cbSize // =12 for mp3, 0 for PCM
Number of bytes after the WAVEFORMATEX structure that can be used by the
codec. Probably (most likely) 0 for AC3.
> mux_a->h.dwScale // 1 for PCM,
> (mux_a->h.dwRate<32000)?576:1152 for mp3 ; I guess dwScale is a
> compression factor depending on target bitrate, right?
Again 1536 for AC3.
--
==> Ciao, Mosu (Moritz Bunkus)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20031020/6b3a805b/attachment.pgp>
More information about the MPlayer-dev-eng
mailing list