I have seen that Lame does not support 11.025, 12 and  8 kHz sampling. I have
lots of streams encoded at 11.025 (teleconferences), when I have tried
resample option effects were unsatisfactory at low bitrates. I think it
should be possible to compress it to about 8 kbps. 

I have started by putting in the following patch, but I have realized that
there are more modifications needed. Could you tell me what are the other
things which should be changed?

Best regards,
--
Tomasz Motylewski


--- lame3.62/quantize-pvt.c     Thu Feb 10 06:23:48 2000
+++ lame3.62beta-tm1/quantize-pvt.c     Tue Feb 15 01:22:33 2000
@@ -87,7 +87,7 @@
 
 /* Table B.8 */
 
-struct scalefac_struct sfBandIndex[6] =
+struct scalefac_struct sfBandIndex[9] =
 {
   { /* Table B.2.b: 22.05 kHz */
     {0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576},
@@ -112,6 +112,18 @@
   { /* Table B.8.a: 32 kHz */
     {0,4,8,12,16,20,24,30,36,44,54,66,82,102,126,156,194,240,296,364,448,550,576},
     {0,4,8,12,16,22,30,42,58,78,104,138,180,192}
+  },
+  { /* MPEG-2.5 11.025 kHz */
+    {0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576},
+    {0,12,24,36,54,78,108,144,186,240,312,402,522,576}
+  }
+  { /* MPEG-2.5 12 kHz */
+    {0,6,12,18,24,30,36,44,54,66,80,96,116,140,168,200,238,284,336,396,464,522,576},
+    {0,12,24,36,54,78,108,144,186,240,312,402,522,576}
+  },
+  { /* MPEG-2.5 8 kHz */
+    
+{0,12,24,36,48,60,72,88,108,132,160,192,232,280,336,400,476,566,568,570,572,574,576},
+    {0, 24, 48, 72,108,156,216,288,372,480,486,492,498,576}
   }
 };
 
--- lame3.62/util.c     Sat Feb  5 13:32:26 2000
+++ lame3.62beta-tm1/util.c     Tue Feb 15 01:34:24 2000
@@ -9,8 +9,10 @@
 ***********************************************************************/
 
 
-/* 1: MPEG-1, 0: MPEG-2 LSF, 1995-07-11 shn */
-FLOAT8  s_freq[2][4] = {{22.05, 24, 16, 0}, {44.1, 48, 32, 0}};
+/* 1: MPEG-1, 0: MPEG-2 LSF, 1995-07-11 shn 
+ * MPEG-2.5 */
+FLOAT8  s_freq[3][4] = {{22.05, 24, 16, 0}, {44.1, 48, 32, 0},
+       {11.025, 12, 8, 0} };
 
 /* 1: MPEG-1, 0: MPEG-2 LSF, 1995-07-11 shn */
 int     bitrate[2][3][15] = {

--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )

Reply via email to