[MPlayer-dev-eng] [PATCH] encoding MP2 with Toolame
Nico Sabbi
nsabbi at tiscali.it
Sun Jul 25 16:17:53 CEST 2004
This patch permits to encode to mp2 using Toolame
(a much better encoder than libavcodec).
You need a librarized version of toolame, such as 0.2m-beta-*
available here http://users.tpg.com.au/adslblvi/
At the moment only CBR is supported; there is some support for vbr
encoding,
but it doesn't work yet.
In mencoder.c I copied all the AVI specific assignments from
the code that calls libavcodec; I'm not familiar with that
abomination, so I hope someone will review that code (TIA :) )
The requisites are:
- during configure you have to pass --with-toolamedir parameter (where
you compiled toolame), e.g.:
./configure --with-toolamedir=/path/to/toolame/libtoolame/
- at run time the source must have 1 or 2 channels with 16 bit samples;
Successfully tested with all permitted bitrates, avi and mpeg formats.
A patch to the man page will follow when I have some more time.
Nico
-------------- next part --------------
A non-text attachment was scrubbed...
Name: toolame-20040725.diff
Type: text/x-patch
Size: 12978 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20040725/715b70b8/attachment.bin>
More information about the MPlayer-dev-eng
mailing list