[MPlayer-dev-eng] enhancement for yuv4mpeg output driver

Stefan Gehrer stefan.gehrer at motorola.com
Fri Jan 21 10:26:35 CET 2005


On Thu, 20 Jan 2005 16:27:32 -0800 (PST)
Trent Piepho <xyzzy at speakeasy.org> wrote:

> Ok, my design will mess up if someone has a value that is within .0005 fps of
> a standard value, and they really did want this slightly off value.  In which
> case they can override it with the exact, un-damaged by mplayer, value they
> want later, as NTSC users always do now.
> 
> The av_d2q method does not work for all of the 8 standard MPEG rate codes.  It
> also does not work for rates which have a fractional part greater than 30000
> or 60000 or whatever arbitrary cutoff you pick.
> 
> Now, in practice, which method will do the correct thing more of the time
> for more people?
> 

I think the problem is not the reduction of the fraction, but the
inaccuracy of the float coming in. It is basically something like
(float) ((int)(30000*10000/1001)) * 0.0001

Does the attached patch help you when playing back MPEGs?

Regards
Stefan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: frameratecode.patch
Type: application/octet-stream
Size: 4374 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20050121/99d23478/attachment.obj>


More information about the MPlayer-dev-eng mailing list