[MPlayer-users] resampling frequency using mencoder and lame

Mariusz Woloszyn emsi at ipartners.pl
Thu Aug 1 10:58:01 CEST 2002


On Wed, 31 Jul 2002, D Richard Felker III wrote:

> > > > RTFM!
> > > > -srate
> > >
> > > -srate is for forcing mplayer/mencoder to interpret audio as being a
> > > particular rate, not for resampling.
> >
> > for both mplayer and mencoder it forces teh given output rate.
> > in mplayer, it forces playback rate, and video speed is changed to
> > keep a-v sync (so no resample).
> > in mencoder, this value is also passed to lame, so it will resample
> > and encode at this rate
> >
> > yes, a bit tricky.. but documented at least
>
> This probably should be mentioned in the man page under -srate.
>
Definitely. There is a slight difference in what it causes for mplayer and
mencoder.
Beside that it it passes the audio at specified frequency to encoder
(lame). I was asking about giving the lame (library) audio at original
frequency and then reencode it to different by lame (like lame
with --resample option).

Anyway thanks for your help! It worked and gave me reencoded clip with
audio and video properly synced, but three frames skipped:

Pos:   1.1s     21f ( 0%)   0fps Trem:   0min   0mb  A-V:0.100 [311:63]
skip frame!!!
Pos:   1.6s     32f ( 0%)   0fps Trem:   0min   0mb  A-V:0.101 [287:63]
skip frame!!!
Pos:   2.9s     60f ( 0%)   0fps Trem:   0min   0mb  A-V:0.101 [310:63]
skip frame!!!


p.s. the manpage should definitely describe this behavior for mencoder in
a little bit more verbose way ;)

--
Mariusz Wołoszyn
Internet Security Specialist, Internet Partners




More information about the MPlayer-users mailing list