[Mplayer-dev-eng] Feature request: audio downsampling
Christoph Lampert
lampert at math.chalmers.se
Fri Aug 24 19:34:09 CEST 2001
Hi,
>> In Winblow$ Media Player, I can downsample AVIs with an MP3
>> stream.
>> This is very useful to me because I have a slow computer,
>> and I really don't have enough money to upgrade my hardware.
>> In Winblow$ I can play a video at full speed because I can
>> downsample the sound, but in Linux I can't.
>>
>> What do you think about this feature?
>> Is it hard to implement?
>>
>read the archives, it's already implemented in mplayers mp3lib, but currently
>can only be enabled in the source code.
That would be easier if the search function worked!
But I found it in my sent-mail-box.
Anyhow, don't expect much from it, on my slow machine it didn't gain more
than 1-2% .
So this is Arpi's old answer:
>------------------------------------------------------
>> A while ago, I asked about a feature of
>>
>> 1) changing samplingrate of MP3 streams (e.g from 44100 to 22050 kHz, only
>> supported and easy ratios, like 1/2 or so) at play
>>
>> 2) downmixing to mono (or playing only single channel in joint-stereo)
>
>yes, i did it...
>in mp3lib/sr1.c change:
> fr.down_sample=0; //2;
>to value of 1 (1:2) or 2 (1:4) downsampling of freq.
>
>for getting mono output, change the last parameter of MP3_Decode()
>in dec_audio.c from -1 to 1 (left only) or 2(right only) or 3 (mixed)
>
--
Dipl. math. Christoph Lampert (complex analysis, integral formulae)
Email: gruel at gmx.de | Email: lampert at math.chalmers.se
_______________________________________________
Mplayer-dev-eng mailing list
Mplayer-dev-eng at lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/mplayer-dev-eng
More information about the MPlayer-dev-eng
mailing list