[MPlayer-dev-eng] [PATCH] new mpeg muxer

Trent Piepho xyzzy at speakeasy.org
Thu Feb 24 09:10:35 CET 2005


On Wed, 23 Feb 2005, Joey Parrish wrote:
> -ovc lavc -lavcopts vcodec=mpeg2
>   complains that "2997 / 100" is not a valid framerate for mpeg.

The lavc float to fraction code strikes again!

>   which is stupid, because the source file is an mpeg.  it's upset
>   over rounding and conversion errors introduced by the mplayer core
>   itself.  (somewhere)  I'm not able to fix this off-hand.

mplayer doesn't have the exact correct framesrates for mpeg files (too few
significant digits), and then it (stupidly) converts frame-rates to a 32-bit
float, which is then converted back into a (different) fraction by code in
lavc.  This can't be fixed, as certain people don't believe it happens.




More information about the MPlayer-dev-eng mailing list