Log in

View Full Version : tool to calculate PAR value for meGUI (or other GUIs)


jmk
6th February 2006, 18:26
reading through the threads it seemed like a lot of people had problems with the correct par value for megui. so did i. and since i was thinking about looking into programing, it seemed like an easy challenge (boy have i been wrong). anyway.:

what i does:

drop a .d2v file on it, press enter.
drop the corresponding .avs file on it and press enter again.

voila :)

more in detail:
it reads the values of the following fields in the respective files:
"Aspect_Ratio"
"Picture_Size"
"crop"
"LanczosResize"


what you need:
since it is a c# .net prgoram you need the .net framework 2.0 (which must of you probably got by now)
that is hopefully all.

what might go wrong:
- since it is my first program ever, i haven't coded any exception handling in it (yet)
- if you resize with a different method than lanczos (haven't implemented all of the yet)


if it crashes:
please post your .d2v file (not the entire thing, only the relevant lines)
plus your .avs file


so, let me now what you think! (and don't go to easy on me :) )

jmk

SeeMoreDigital
6th February 2006, 18:48
Well this is spooky... I was thinking about something very similar (http://forum.doom9.org/showthread.php?p=780880#post780880) myself.

My proposal is more along the lines of being able to manually enter your "Frame Pixel Size" (PFS), selecting your required "Movie Aspect Ratio" (MAR) and obtaining your "Aspect Ratio Signalling" (ARS) value.

http://img482.imageshack.us/img482/8163/arscalculatorc8zd.png


Cheers

jmk
6th February 2006, 18:54
well, did read through thet entire thread before i started it. :) well, give mine a try (it certainly is much worse looking that yours - haven't had the chance to see into fancy gui programing :) ).
if anybody nows if i did a mistake i will certainly be you. (i got most of my infos from your different threads... thx, btw :)) )

before i forget, you need to have set cropping parameters...

how do i get my attachment approved?

jmk

SeeMoreDigital
6th February 2006, 19:11
how do i get my attachment approved?Bond is the moderator for this section of the forum.... I'm sure he will approve it sooner rather than later ;)

jmk
6th February 2006, 19:50
until he manages to drop by:

http://rapidshare.de/files/12695511/ar_calculator.rar.html

jmk

Sirber
6th February 2006, 20:04
May I add to RealAnime? :D

Sirber
6th February 2006, 21:01
until he manages to drop by:

http://rapidshare.de/files/12695511/ar_calculator.rar.html

jmkAny GUI? I'm not sure a CLI would be efficient.

http://img482.imageshack.us/img482/8163/arscalculatorc8zd.png

That would be cool :)

bond
7th February 2006, 10:36
approved ;)

jmk
7th February 2006, 10:46
thank you!

jmk
7th February 2006, 17:34
new version:

- shows actual AR of the movie (After cropping)
- should now work with the different resize methods

until the attachment gets approved in this thread (http://forum.doom9.org/showthread.php?p=782062#post782062):

http://rapidshare.de/files/12751934/ar_calculator_0.2.rar.html