[MPlayer-users] change the frame rate from mpeg2 30fps -> 25fps with mencoder ?

Peter Sobisch petersob at gmx.net
Fri Nov 28 20:55:29 CET 2003


Hi all,

ist there any working solution just to convert a mpeg2 video (480x480 at 30fps)
into the same format but @25fps ?
I mean relly resample, the clip is sampled with 30fps but my player can only play 25fps.

Transcode doesnt work for me because of audio out of sync problem.
mplayer plays the clip very well, but I can't convert it by mencoder.

Because I will have mpeg2 I took the newest version 1.0pre2 and tried following things:

mencoder -ofps 25 -of mpeg -ovc lavc -lavcopts vcodec=mpeg2video -oac copy clip.mpg -o clip2.mpg

and I'll get during encoding:

...
Unknown blPos:   3,2s     81f ( 0%)  25fps Trem:   0min   0mb  A-V:-0,006 [432:1411]
1 duplicate frame(s)!
Unknown block type, possibly non-MPEG stream!					<-- what does it mean ?
Pos:   4,2s    104f ( 0%)  22fps Trem:  60min 904mb  A-V:-0,007 [707:1411]
1 duplicate frame(s)!
Unknown block type, possibly non-MPEG stream!
Pos:   5,2s    128f ( 0%)  21fps Trem:  66min 998mb  A-V:0,000 [921:1411]1]
1 duplicate frame(s)!
Unknown block type, possibly non-MPEG stream!
Pos:   6,1s    151f ( 0%)  21fps Trem:  70min 1042mb  A-V:-0,005 [949:1411]
1 duplicate frame(s)!
Unknown block type, possibly non-MPEG stream!
Pos:   7,1s    175f ( 0%)  21fps Trem:  70min 1069mb  A-V:-0,006 [896:1411]
ock type, possibly non-MPEG stream
...and so on...

Result: mpeg2 without audio (mplayer says "no sound").
(-oac pcm or mp3lame doestn't change anything)
The vcodec=mpeg1video do the same thing (w/o audio).

Now I tried the avi container, now the audio is present, but if I try to convert it by ffmpeg
I'll get slow motion video with normal sound (audio is out of sync because of slow motion).

I thought, that couldn't be so difficult just to resample the frame rate, without changing anything else...
Do you have any hints for me ?

thanks in advance !
Peter



More information about the MPlayer-users mailing list