[MPlayer-users] libavcodec mpeg error on framerate with pre8
Rich Felker
dalias at aerifal.cx
Wed Jun 21 08:32:48 CEST 2006
On Tue, Jun 20, 2006 at 04:41:00PM +0200, Nico Sabbi wrote:
> Jaap Struyk wrote:
> >Hello,
> >
> >Yust compiled the new pre8 version but this gives me an error when
> >trying to convert divx to mpeg:
> >
> >[mpeg1video @ 0x8676a28]MPEG1/2 does not support 9320/311 fps
> >Could not open codec.
> >FATAL: Cannot initialize video driver.
> >
> >I used the following command:
> >
> >mencoder Yellowbeard.avi -sub ./Yellowbeard.srt -subpos 75
> >-subfont-text-scale 4 -mc 1 -noskip -ovc lavc -oac lavc -lavcopts
> >acodec=mp2:abitrate=112:vcodec=mpeg1video:lmin=1:lmax=10:vrc_eq=(tex/avgTex+1)^0.5:keyint=24:vmax_b_frames=2:mbd=2:vstrict=-1:dia=2:dc=8:vrc_buf_size=327:vrc_maxrate=3000:vbitrate=1028:inter_matrix=16,18,20,22,24,26,28,30,18,20,22,24,26,28,30,32,20,22,24,26,28,30,32,34,22,24,26,30,32,32,34,36,24,26,28,32,34,34,36,38,26,28,30,32,34,36,38,40,28,30,32,34,36,38,42,42,30,32,34,36,38,40,42,44:intra_matrix=8,9,12,22,26,27,29,34,9,10,14,26,27,29,34,37,12,14,18,27,29,34,37,38,22,26,27,31,36,37,38,40,26,27,29,36,39,38,40,48,27,29,34,37,38,40,48,58,29,34,37,38,40,48,58,69,34,37,38,40,48,58,69,79 -af volume=+0dB -srate 44100 -channels 2 -sws 2 -vf scale=352:240 -of mpeg -mpegopts format=xvcd:vaspect=16/9 -mc 1 -o Yellowbeard-KVCD.mpeg
> >
> >On another file I get: [mpeg1video @ 0x8676a28]MPEG1/2 does not support
> >2997/125 fps
> >
> >Is there something changed in commandline usage wich I missed?
> >
>
> it's a rounding error. append :vstrict=-2 to -lavcopts
This does not solve the problem, it just stores a nonstandard,
likely-incompatible framerate in the file. Instead you should fix the
framerate with something like -ofps 30000/1001 or 24000/1001 or
whatever the correct rate is.
Rich
More information about the MPlayer-users
mailing list