Quantcast Mencalc: a Resizing Calculator for Mencoder - digitalFAQ.com Forums [Archives]
  #1  
05-22-2004, 08:00 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible


mencalc1.1b - beta state!

All resizings do refer to the PAR respected calculation method:
http://www.uwasa.fi/~f76998/video/co...nversion_table
Second: The overscan now is a resized overscan.

I rounded the active Pixel source/dest areas to mod8, means a very correct pal active pixel size would be 702 and not 704 ... but 704 is at least mod8.

All Inputs will be parsed in their resolution if they do confirm to a legal fullPAL/NTSC or mpeg or ITU resolution (i.E. 720x576, 768x576, 352x288, 704x480,352x480 etc etc etc), means anything else will be seen as PAR 1:1 (i.E. mpeg4).

The old mencalc1.01.0 Version (just in case)



Inc.

------------------------------------

1.1b
Beta State!
Routines are totally rewritten. Now the usual way of first cropping and then resizing will be proceeded. Overscan now is no longer overlayed but resized, also the oportunity of determining an active Moviearea has been added - tweakable Xposition and Yposition parameters will be available soon.

1.01.0
Routine is rewritten, where now also all non PAR 1:1 avis are supported, means still 16:9 state Avis via DVD2AVI/AVISynth/Makeavis processes, and for shure common capture resolutions in NTSC and PAL.
Changing in some cases from vertical macroblock aligning to vertical centered alignment - especially when doing 352x288/240 which at macroblock vertic. alignment that caused a 16px sized border at the bottom! That's fixed now.
As I got some PM about it would be less confusing that for instance a 720x576/480 to 480x576/480 resizing should still come out as full width without 8px out of TV bounds area ... this has been changed.

Now, both, the Mpeg- AND the PAR1:1 Avi- source resizing ways are done by the PAR based resizing method taken from that reference link http://www.uwasa.fi/~f76998/video/co...nversion_table


1.00.4 05/22/2004 18:35h CET

Fixed a cropping issue when resizing VOB/mpeg1/2 sources at NTSC mode.
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
05-22-2004, 09:26 AM
digitall.doc digitall.doc is offline
Free Member
 
Join Date: Jul 2003
Location: Valencia (España)
Posts: 741
Thanks: 0
Thanked 0 Times in 0 Posts
Great Inc ,
downloaded and tested OK.

... I know that you know, just:
- It would be great a "Copy to clipboard" button, to paste then in our hand-made command-lines.
- It would be nice it was inside PackShot 1.02.4 (OK,OK, maybe in v 1.02.5).

Very nice, clean, useful, ... tool
Reply With Quote
  #3  
05-22-2004, 09:43 AM
Encoder Master Encoder Master is offline
Free Member
 
Join Date: Mar 2003
Location: (^_^)
Posts: 504
Thanks: 0
Thanked 0 Times in 0 Posts
Great inc, I think you can read my thoughts.
Reply With Quote
  #4  
05-22-2004, 09:46 AM
rds_correia rds_correia is offline
Free Member
 
Join Date: Apr 2003
Location: Chinese Democracy starts now!
Posts: 2,563
Thanks: 1
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
MenCalc 1.00.3[/url]
Before someone starts ... "but FitCD gives me diff. outputs" ...

Almost did it pal
And since your explanation on that issue is so clean, I have no bug report for now.
Just as digi.doc I'd like a copy paste button on it, that's just about it
Thanks buddy
__________________
Rui
Reply With Quote
  #5  
05-22-2004, 10:07 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
A new toy :
MenCalc 1.00.3
MenCalc 1.00.3

Before someone starts ... "but FitCD gives me diff. outputs" ... I should clarify something before:
All Mpeg resizings do refer to the PAR respected calculation method:
http://www.uwasa.fi/~f76998/video/co...nversion_table
1:1 Source Resizings (mpeg4/Divx/Xvid) do base on VM's DivxResize() routine for avisynth.
Second: The overscan will be an "overlayed" overscan, therefore not resized, in case of 2.35:1 Sources optimal as they wont get even smaller on Tv as they already are.,


Inc.
"but FitCD gives me diff. outputs".... and MovieStacker too....
i told you, i told you....well i was trying but my english don't help me in that thread!!!

Quote:
Originally Posted by jorel
we got wrong informations about aspect radios,ntsc and pal,borders,etc.
if you all want a good reading,please follow that links (too big):
http://www.uwasa.fi/~f76998/video/conversion/

AR:
http://www.hometheaterhifi.com/volum...vember-99.html

4.5 It still does not make any sense. For starters, all the 525/59.94 equipment I have only works in 720×480, not in 720×486 (and definitely not in 711×486)! How do you explain that?
http://www.uwasa.fi/~f76998/video/conversion/#4.7

then we always got wrong informations..
thanks for MenCalc ink!
Reply With Quote
  #6  
05-22-2004, 10:30 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Quote:
Originally Posted by digitall.doc
- It would be great a "Copy to clipboard" button, to paste then in our hand-made command-lines.
Thats why "that" little Commandlinewindow in the appl. is not "read only".
So just go in it select everything, right mousetab ... and "copy".

Reply With Quote
  #7  
05-22-2004, 10:45 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Jore and ALL,

I do NOT say that my claculator is 10000% correct or EVEN that its more correct than fitCD/Moviestacker.

But I wrote that line above cause many people do just look at resulted values and you have to think about it like the case that FitCD does "resized" overscan only, where Moviestacker offers both.

So it CAN be that maybe a 1-3px difference is given. So in that case .... well

But if you encounter a real bug, shure let me know!

Btw I did found a bug in case of NTSC dvd resizing to lower sizes ... hold on.
Reply With Quote
  #8  
05-22-2004, 11:07 AM
digitall.doc digitall.doc is offline
Free Member
 
Join Date: Jul 2003
Location: Valencia (España)
Posts: 741
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by incredible
Thats why "that" little Commandlinewindow in the appl. is not "read only".
So just go in it select everything, right mousetab ... and "copy".


... we know. Is that difficult to include the button? (I ask from real ignorance )

And, what about incluing it in Pack-Shot (along with support for those resolutions...)? Sure you already thought this...
Reply With Quote
  #9  
05-22-2004, 11:07 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
hey ink, 10000% correct "seems" too much!

don't misunderstand me my friend see that scripts from:
source 720x480 toy story2 (4:3) ---> target 720x480

BicubicResize(720, 478, 0, 0.6, 0, 1, 720, 47# from moviestacker
AddBorders(0, 1, 0, 1)# from moviestacker

Crop(0,0,720,480)# from Fitcd

-vf scale=720:480::0:9,crop=704:480:8:0,expand=720:480 :8:0
from MenCalc

compare the scripts....that is what i'm (and was) trying to show ink!


edited>
i forgot......MenCalc and PackShot deserve an " cool icons" !
Reply With Quote
  #10  
05-22-2004, 11:34 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Quote:
BicubicResize(720, 478, 0, 0.6, 0, 1, 720, 47# from moviestacker
AddBorders(0, 1, 0, 1)# from moviestacker

Crop(0,0,720,480)# from Fitcd

-vf scale=720:480::0:9,crop=704:480:8:0,expand=720:480 :8:0
from MenCalc
So what?? Everything is ok!

As at even 720 width encoding the active pixel area on Tv is 704.
(if you would be totally right it would be in case of NTSC 710, means 3+3pixels wrong in MY calculator ... but 3pix I think thats really ok if you think about it that even MS or FITcd do generate scripts where on the right side the "error" report almost never shows "Error 0%").

So IMHO it makes no sense to feed the encoder with information which would be NEVER seen, even on a TV set which "would have" no overscan!

Cause the 720 would get out of the offset of 640px ntsc tv width area finally!

In your case Jore, you just left the stream "as it is", means if your source gots an anamorph state, then that one will be preserved! So a 16:9 flag will be added to your encoding - and afterwards your DVD STA will recognise that flag and squeeze the height to 360px so egg-heads wont be possible. Rest of hight to match the 480 will be filled with black bars top/bottom.

So IF you still see eggheads on your tv when feeding the DVD STA with an anamorph stream .... do look in the options of your DVD STA where you can set the "Letterbox" option so the 16:9 input will be resized to your 4:3 tvset!

BUT ... IF you do encode to 352x480 or 352x288 YOU HAVE TO SET "16:9 to 4:3 Letterboxed" or in moviestacker source= anamorph, target = not!
As anamorph state is not supported in 352 width , no matter if 352x480, 352x576, 352x240, 352x288



----------------------

New MenCalc link is updated (1.00.4)
Reply With Quote
  #11  
05-22-2004, 11:36 AM
Fluffbutt Fluffbutt is offline
Free Member
 
Join Date: Apr 2004
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
I'm getting this error -

Option vf: Error while parsing scale parameter interlaced (interlaced)

I'm using mencoder:
MEncoder dev-CVS-040506-06:00-3.3.1 (C) 2000-2004 MPlayer Team

Any ideas?
__________________
|
Meeow!
Reply With Quote
  #12  
05-22-2004, 11:42 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Fixed!
Reply With Quote
  #13  
05-22-2004, 11:47 AM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
thanks for hints ink but you don't saw the point:
MovieStacker give me that script
BicubicResize(720, 478, 0, 0.6, 0, 1, 720, 47# from moviestacker
AddBorders(0, 1, 0, 1)# from moviestacker
but it don't open in vdub!!!
i get "avisynth open failure...Evaluate: unrecognized exception"
this is what i call as "wrong information", understand me now?
Reply With Quote
  #14  
05-22-2004, 11:48 AM
Fluffbutt Fluffbutt is offline
Free Member
 
Join Date: Apr 2004
Posts: 189
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Inc., you're the greatest (a little purr goes your way!)

I'll give it a try.

<edit> : YES !!: <edit>
PURRRRRRR!!!!
__________________
|
Meeow!
Reply With Quote
  #15  
05-22-2004, 11:59 AM
incredible incredible is offline
Free Member
 
Join Date: May 2003
Location: Germany
Posts: 3,189
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to incredible
Quote:
BicubicResize(720, 478, 0, 0.6, 0, 1, 720, 47# from moviestacker
AddBorders(0, 1, 0, 1)# from moviestacker
Line makes no sense as...:

- first resizing to 720x478 (out of 720x480)
- then cropping by "1"px to a STILL! "720x478" area ... that cant be! As if you crop, then .. well then there will be something cropped which results in LESS size then before! And this isnt the case in here.

And thats the thing I meant.
Moviestacker (with respect to muaddib) wants to resize from 480 height to 478 height! ... even if it would be right, it makes no sense AS tell me a person who will recognis a wrong AR of 1or2 px!
But by beeing that mega exact that line above SCALES to 478, means taking a) valuable CPU power and b) the most important: THERE WILL BE AN INTERPOLATION by a scaling which causes blurring! Means the image even its mega correct resized (if its really?!) does have a worse image quality afterwards. See my point ?


Inc.

PS: Jorel, I checked that in Moviestacker AND FitCD ....
HOW can it be that these apps. do resize to 478 ?????

No matter which "round to" at height resizing (2,4,8,16,32) still 480 do come out!
So I do hope you did set at "resize" a "round to" value to 16 (block optimized) .. as we do resize to mod16 values!! = Macroblock orientated!
( I talked a time ago with shh why he calls a round to 16 "block optimised" as 16 is macroblock optimised.?!)
Reply With Quote
  #16  
05-22-2004, 12:08 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
yes, i saw(a long days) the point and you too but i could not wrote this all so clear!!!(thanks GOD!)
ink, you're a teacher!

thanks for new version!
Reply With Quote
  #17  
05-22-2004, 12:09 PM
vmesquita vmesquita is offline
Invalid Email / Banned / Spammer
 
Join Date: May 2003
Posts: 3,726
Thanks: 0
Thanked 0 Times in 0 Posts
Great work, Inc.
Reply With Quote
  #18  
05-22-2004, 12:14 PM
kwag kwag is offline
Free Member
 
Join Date: Apr 2002
Location: Puerto Rico, USA
Posts: 13,537
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by digitall.doc

... we know. Is that difficult to include the button? (I ask from real ignorance )
Is it that hard to just select it with the mouse, and type "CTRL+C"
That's all it takes to put it on the clipboard

-kwag
Reply With Quote
  #19  
05-22-2004, 12:39 PM
jorel jorel is offline
Invalid Email / Banned / Spammer
 
Join Date: Aug 2002
Location: Brasil - MG - third stone from the sun
Posts: 5,570
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by kwag
Quote:
Originally Posted by digitall.doc

... we know. Is that difficult to include the button? (I ask from real ignorance )
Is it that hard to just select it with the mouse, and type "CTRL+C"
That's all it takes to put it on the clipboard

-kwag
"right click" ---> select all ---> "right click" ---> copy ....is in the clipboard!
very easy
Reply With Quote
  #20  
05-22-2004, 12:46 PM
Zyphon Zyphon is offline
Free Member
 
Join Date: Oct 2003
Location: London, England (UK)
Posts: 1,035
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Inc for this excellent Calc tool.
__________________
Regards.

Michael.
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
KDVD Calculator Help kvcdman Video Encoding and Conversion 1 08-24-2006 03:35 AM
Resizing MencodeMe - MenCalc comparation Prodater64 Video Encoding and Conversion 12 07-25-2004 08:15 AM
MenCalc or MEncodeMe crop/resize maurus Video Encoding and Conversion 13 05-27-2004 04:18 AM
AR Calculator kwag Video Encoding and Conversion 0 01-31-2004 01:28 PM
The calculator is gone kwag Off-topic Lounge 0 04-28-2002 04:20 PM

Thread Tools



 
All times are GMT -5. The time now is 05:06 PM  —  vBulletin © Jelsoft Enterprises Ltd