Re: [Encode2mpeg-users] zoom/crop a 16:9 movie to a 4:3
Brought to you by:
encode2mpeg
From: Rob <rh...@se...> - 2007-05-10 16:33:03
|
On Mon, 7 May 2007 16:36:23 -0400 Giacomo Comes <enc...@us...> wrote: > > This is a bug. Please try this fix and report if it solves the problem. > > Edit the encode2mpeg script: > goto line 5129 and add after the line > ratio=w/h > this line: > if (sqrt((ratio-a)*(ratio-a)/(a*a))<0.01) a=ratio+sqrt((ratio-a)*(ratio-a)) > > Giacomo > this is what you wanted, correct? If so, I will try it out when I get home... thx for the proper fix :) === modified file 'encode2mpeg-0.6.2/encode2mpeg' --- old/encode2mpeg-0.6.2/encode2mpeg 2007-05-04 20:33:44 +0000 +++ new/encode2mpeg-0.6.2/encode2mpeg 2007-05-10 16:19:29 +0000 @@ -5127,6 +5127,7 @@ if(a==1.78||a==1.74)a=16/9 if(a==1.33||a==1.30)a=4/3 ratio=w/h + if (sqrt((ratio-a)*(ratio-a)/(a*a))<0.01) a=ratio+sqrt((ratio-a)*(ratio-a)) if(((zoom==1||zoom==-1)&&ratio<a)||((zoom==2||zoom==-2)&&ratio>a)){ CH=ch/ko } |