[MPlayer-users] Re: Converting 23.976 to 25fps
Martin Emrich
martin at emmerator.dyndns.org
Mon Jan 12 21:33:34 CET 2004
Hi!
Am Mo, den 12.01.2004 schrieb D Richard Felker III um 19:54:
> On Mon, Jan 12, 2004 at 05:43:49PM +0100, Martin Emrich wrote:
> > 3. extract audio
> > mplayer movie-with-pcm.avi -dumpaudio -dumpfile moviesound.raw
> >
> > 4. resample audio to 44100 Hz
> > sox -w -s -c 2 -r 45983 -t .raw moviesound.raw -r 44100 moviesound.wav \
> > resample
> > rm moviesound.raw
> >
> > 5. multiplex new sound back in
> > mencoder movie-with-pcm.avi -o new-movie-file.avi -audiofile \
> > moviesound.wav -oac copy -ovc copy
>
> mencoder can do steps 3-5 for you (resampling audio)! Just use:
>
> mencoder -ovc copy -oac pcm -srate 44100 movie-with-pcm.avi -o new-movie-file.avi
So -srate actually does resample? the manpage says "Forces the given
audio playback rate, changing video speed to keep A-V sync.
MEncoder passes this value to lame for resampling.". The "changing video
speed" made me think that it would undo my avi hacking and restoring
23.976 fps. Maybe this sounds be better "MPlayer: resamples audio output
to <Hz>\n MEncoder: passes <Hz> to audio encoder for resampling".
Or do I understand it wrong again?
What is the difference to "-af resample=<Hz>" (except that -af didn't
work for me with mencoder) ?
Ciao
Martin
More information about the MPlayer-users
mailing list