[MPlayer-users] Problem n reencoding the audio of an avi file

Giacomo Comes comes at naic.edu
Fri Jul 30 15:39:09 CEST 2004


On Fri, Jul 30, 2004 at 03:35:06AM +0200, O2 wrote:
> On Thu, 29 Jul 2004 19:15:10 -0400
> Giacomo Comes <comes at naic.edu> wrote:
> 
> > > >By the way -srate has a bug in pre4/5 and you can have a distorted audio.
> > > >If you have that problem consider this patch:
> > > >http://mplayerhq.hu/pipermail/mplayer-dev-eng/2004-July/027327.html
> > > 
> > > It seems to me that it works fine.
> > > No need for the patch. But I will save the hint.
> > 
> > Just for curiosity, can you try with -srate 44100 or -srate 48000?
> > Probably the bugs will show up.
> i have no problems on pre4/pre5. For audio i use " -srate 44100 -oac lavc -lavcopts acodec=mp2:abitrate=128 " .
> 
> lysek.

If the audio you are resampling has a sample rate of 22050 Hz or more then 
it should be hard to notice any difference. But if you have a 8000 Hz or
11025 Hz source and you resample at 44100 Hz the problem should appear.

I'm also thinking that the problem could be compiler/cpu related.
Can you do a little quick test for me?

Listen with mplayer 1.0pre4/5 the first 10/15 seconds of this video:
mplayer -nocache http://www.telenorba.dyrecta.com/video/tnnews56/3007.asf
the audio is 8000 Hz.
Now do the same with -srate:
mplayer -nocache http://www.telenorba.dyrecta.com/video/tnnews56/3007.asf -srate 44100

Do you hear any difference? I do if I do not apply the patch I submitted.
The resampling introduce a distorsion in the audio.

Thank you for your help.

Giacomo




More information about the MPlayer-users mailing list