digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   MenCalc: a resizing calculator for Mencoder (http://www.digitalfaq.com/archives/encode/9788-mencalc-resizing-calculator.html)

incredible 05-27-2004 03:03 AM

Do you know mencoders syntax?

Zyphon 05-27-2004 11:25 AM

Thanks inc, love the new version.

incredible 05-27-2004 02:43 PM

@ DigiDoc

Related to calculate the bitrates in that bitratecalculator...

You where right!!! ;-) I have to calculate the audios separately!

I left everything as it was except a modified audiocalculation (as you pointed me to) and the mediasize and overhead values suggested by Kwag .... now its correct.

If you want to test, use the old link to that bitratecalculator in this thread.

Also for shure thanks to Kwag! ;-)

DKruskie 05-27-2004 03:21 PM

Quote:

Originally Posted by incredible
Do you know mencoders syntax?

You'll have to forgive me , I havent had much sleep in the past few days. Do you mean the temp.conf or setting.ini ? I havent had to use MenCalc yet because I have been great results so far.



David

incredible 05-27-2004 04:26 PM

Well lets see it on an example by using aready made .fil file in the filters folder of mencodeme:
Quote:

vf=%%FORCEDFILM%%yuvcsp,scale=%%CROPPED_WIDTH%%:%% CROPPED_HEIGHT%%:0:0:60,%%CROP%%unsharp=l3x3:0.6,h qdn3d=3:6:8,unsharp=l3x3:-0.7:c3x3:-1.5,noise=2uh,expand=%%WIDTH%%:%%HEIGHT%%:-1:-1:1
use Mencalcs output:
i.E: "-vf scale=480:576::0:9,crop=448:544:16:16,expand=480:5 76:16:16"
(A 720x576 DVD to 480x576 overscanned kSVCD ...both PAL)

and change the filter file like this:

Quote:

vf=%%FORCEDFILM%%yuvcsp,scale=480:576::0:9,crop=44 8:544:16:16,unsharp=l3x3:0.6,hqdn3d=3:6:8,unsharp= l3x3:-0.7:c3x3:-1.5,noise=2uh,expand=480:576:16:16
I still left the filters between Crop and expand.
After this safe that fil file using a diff name and it will be seen next time you open MencodeMe ... and the new values will be forced, even if you set other resizing values in mencoder IF this fil file is choosen in the filter combo box of mencodeMe! ;-) ... so you could do several resizing templates, safe them as fil files in the filters folder and these you can simply use as often as you deal with same source/target size :)

DKruskie 05-27-2004 04:51 PM

Ok, now I got it, thanks inc..can this be used with packshot too?





David

incredible 05-27-2004 04:53 PM

Well that programm is a result of developing a resizing routine FOR PACKSHOT :lol: !
So the next version of packshot will got it integrated! ;-)
Then you only have to choose your target resolution and the overscan factor, no more -- everything else will be automatically.

The next days Ill be in re-coding packshot.

DKruskie 05-27-2004 05:10 PM

Cool, thanks inc can't wait to see this :D



David

clickit 05-28-2004 12:14 AM

very understable explanation of how Mencalcs can be used !!!

many thanks Inc

kwag 06-01-2004 11:03 AM

@Inc,

Could you add a "Real Film Area" (Film Pixels) fields to MenCalc :?: ;)

-kwag

incredible 06-02-2004 08:04 AM

I see your point as its figured out in the "noise" thread that Mencoder isnt that "black border" smart as assumed before.

Yep! That will be on my todo list!
Till that time use avisynth/Makeavis OR do replace the vaules with the ones gotten from a MS calculation --- as the next Packshot supports "commandline only" where you simply can tweak these needings, and after that run the bat file manually. (as you shurely know all that so this is written here as an response directed to others ;-) )

incredible 08-02-2004 03:36 PM

After vacations the new version is released.

Please do report bugs also in here.

Thanks

Zyphon 08-02-2004 04:00 PM

Thanks for updating this great calculator Inc. :D

kwag 08-02-2004 05:45 PM

Thanks Inc. :D

-kwag

rds_correia 08-02-2004 06:06 PM

Gee, thanks Inc. :D
Great! Now we have crop/scale/expand :)
Many thanks buddy ;-)
Cheers

Prodater64 08-02-2004 06:14 PM

Quote:

Originally Posted by rds_correia
Gee, thanks Inc. :D
Great! Now we have crop/scale/expand :)
Many thanks buddy ;-)
Cheers

Nice to "read" you rds.
Why now first crop?
Why last values change to -1 -1? I know what it means but why previous Mencalc did use another values?

incredible 08-03-2004 04:10 AM

Quote:

Why now first crop?
First crop .... because in that version of mencalc you can determine the active Px movie area (remember the min-bitrate noise trick?). So this one has to be cropped first.
And as I want to avoid a double-cropping command, the crop-scale routine does compensate that.

Also you now can see how the image proportion will do change when performing the image resize process and also how the AspectRatio Error will be finally (like in FitCD, I took that nice idea from shh).

Also a safe-routine is implementated, means the calculator will look which type of cropping/scaling will keep most pixels as by keeping the AR normally it can happen that many pixels have to be cropped for instance in the width ... I only do say 352 1/2DVD resolution! ;-)

Quote:

Why last values change to -1 -1?
In the previous version I did let calculate Mencalc how the image will be placed centered or Macroblock aligned, that will also be possible in the next final release as also you will be able to enter individual Xpositions and Ypositions of the active movie area.
And so in this release state I did let calculate mencoder internally the center position using -1,-1

Prodater64 10-14-2004 12:25 PM

@Incredible: I'm trying to emulate MenCalc in cmd scripting language, and I don't understand something.

I can apply calculation based in http://www.uwasa.fi/~f76998/video/co...nversion_table
to standard PAL/NTSC resolutions.
But how to calculate resizes, etc. with avi sources.

e.g. 576*256. It can't be found in the table and I don't know how to do calculations.

Other question,why (is needed) and how (formula) calculates crop values?

incredible 10-14-2004 01:16 PM

http://www.arachnotron.nl/videocap/d..._cap_v1_en.pdf

All you need is in there (at the end of the PDF where size calculations are explained: There also 768x576 is PAR 1:1 like mpeg4 avis)

576x256 is NOT mentioned in Jukka Ahos site as its NO valid Video output device resolution. Its just an individual PAR 1:1 mpeg4 resolution based on the DISPLAY AR (like 1.33:1 , 1.78:1 or 2.35:1 etc).

If I have time, on my to do list is the creation of an executable binary of mencalc, easy to call from a batch file. And also a .dll version so VMesquita can use it in DIKO.


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

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.