[MPlayer-users] a/v sync problems with -audiofile

Georg Prager georg.prager at wing.at
Sun Aug 4 15:54:02 CEST 2002


Hi all!

I want to make a dvdrip with one extra audio stream.
(video + english-mp3-audiostream) and one external german-mp3-audiostream, so 
that I can watch the movie in german with "mplayer -audiofile german.mp3 
movie.avi".

Ok, first I extract the german audio with
"mplayer -hardframedrop -ao pcm -aofile german.wav -vo null -dvd 2"

then I normalize with
"normalize german.wav"

and make a mp3 with
"lame german.wav german.mp3"
or
"bladeenc german.wav german.mp3"

When I play the divx with the german audio-stream
"mplayer movie.avi -audiofile german.mp3"
video and audio get out of sync although the mp3 has the same sampling 
frequency (48kHz) as the extracted wav file.

When I play with "mplayer movie.avi -audiofile german.wav" everything works 
pretty fine, but unfortunately wav is too big.

I have to do the hole thing like this, because mplayer/mencoder cannot encode 
an mp3 file to an .mp3 file, just to an avi.


Thanks in advance for any help
Georg

BTW: If I merge movie.avi with the german-mp3-stream with 
"mencoder -ovc copy -oac copy -audiofile german.mp3 movie.avi"
mencoder skips one frame every ten frames.

Writing AVI header...
Pos:   0.8s     22f ( 0%)  11fps Trem:   0min   0mb  A-V:0.084 [0:127]
skip frame!!!    
Pos:   1.2s     32f ( 0%)  11fps Trem:   0min   0mb  A-V:0.084 [125:128]
skip frame!!!    
Pos:   1.6s     42f ( 0%)  11fps Trem:   0min   0mb  A-V:0.084 [289:128]
skip frame!!!    
Pos:   1.9s     52f ( 0%)  11fps Trem:   0min   0mb  A-V:0.084 [378:128]
skip frame!!!    

and so on...

I'm using latest CVS!





More information about the MPlayer-users mailing list