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)

kwag 05-23-2004 07:14 PM

:lol:

Prodater64 05-23-2004 08:06 PM

Most Wanted - Reward

http://www.digitalfaq.com/archives/error.gif http://www.digitalfaq.com/archives/error.gif http://www.digitalfaq.com/archives/error.gif http://www.digitalfaq.com/archives/error.gif http://www.digitalfaq.com/archives/error.gif http://www.digitalfaq.com/archives/error.gif

Dialhot 05-23-2004 08:54 PM

I never saw any of these guys.

jorel 05-23-2004 09:34 PM

Quote:

Originally Posted by Dialhot
I never saw any of these guys.

who :?: ....where :?:
:roll:

incredible 05-24-2004 04:19 AM

Quote:

Originally Posted by Dialhot
I hope for you that avatars aren't always the photography of the user :-)

I wont show a photography of mine, but one of the girl at the cash desk of the supermarket where I buy my stuff.

http://www.digitalfaq.com/archives/i.../2004/05/7.jpg

:mrgreen:
So what tells us that?! :arrow: She still lives near Cologne!! (Bergisch Gladbach) ... and has to earn a little "extra" money in that supermarket as Flavio B. doesnt want to pay alimony! (IMHO) :lol: :lol:

digitall.doc 05-24-2004 06:27 AM

Quote:

Originally Posted by incredible
You see digiDoc. at least the relation of multiple movies/audio seem to be correct .... now Kwag should tell me which Mediasize/overhead he uses as I think there we're different.

Well, Inc, now running a test with the value I got manually, that is higher than that I got with your calculator. I'll post the result.
When I said that maybe the audio bytes formula was wrong, I said it:
1. from a mathematical point of view: it's not the same (a x c) + (b x d) as(a+b) x (c+d). It's not exactly what happens with your formula, but an approximation. In your formula you sum audio length and video length, and then apply the formula. When you really better applu the formula for each film, and then sum them.
2. I did by hand calculations, and got different results.

... but I may be (almost sure) wrong. I just say that in case you revise it.
Saludos.

Dialhot 05-24-2004 10:02 AM

Quote:

Originally Posted by incredible
I wont show a photography of mine, but one of the girl at the cash desk of the supermarket where I buy my stuff.

Too much porn DVD ripped for developing pack-shot Inc... tsss...

This is not real life :-)

kwag 05-25-2004 11:50 AM

@Inc,

You'll know what to do with this ;)


Code:

      Select GetGadgetText(#AudioBitrate)
        Case "16" : audio = 16
        Case "24" : audio = 24
        Case "32" : audio = 32
        Case "56" : audio = 56
        Case "64" : audio = 64
        Case "96" : audio = 96
        Case "112" : audio = 112
        Case "128" : audio = 128
        Case "160" : audio = 160
        Case "192" : audio = 192
        Case "224" : audio = 224
        Case "256" : audio = 256
        Case "320" : audio = 320
        Case "384" : audio = 384
        Case "448" : audio = 448
      EndSelect
     
      audio = audio * Val(GetGadgetText(#Streams))
     

      Select GetGadgetText(#Media)
        Case  "24 Min. CD" : media = 245760
        Case  "74 Min. CD" : media = 757760
        Case  "80 Min. CD" : media = 819200
        Case  "90 Min. CD" : media = 921600
        Case  "99 Min. CD" : media = 1013760
        Case  " 4.70GB DVD-5"  : media = 4508876
        Case  " 8.50GB DVD-9"  : media = 8912896
        Case  " 9.40GB DVD-10" : media = 9856614
        Case  "12.24GB DVD-14" : media = 12834570
        Case  "17.00GB DVD-18" : media = 17825792
        Case  " 2.58GB DVD-RAM" : media = 2705326
        Case  " 4.80GB DVD-RAM" : media = 5033164
        Case  "Custom"
          media = Val(GetGadgetText(#Custom))
          media = media * 1024
        EndSelect

      If GetGadgetText(#Overhead) = "VCD/SVCD Mux Overhead"
        media = media - (10 * 1024)
      ElseIf GetGadgetText(#Overhead) = "DVD Mux Overhead"
        media = media - ((25 * Val(GetGadgetText(#VStreams))) * 1024)
      EndIf



And then:



Code:

      audio_size.f = ((audio / 8)  * totaltime )
      video_size.f = (media * quantity) - audio_size.f
      avg.f = (video_size.f / totaltime) * 8

-kwag

Boulder 05-25-2004 12:13 PM

Where's 80kbps (for mono audio) ?

kwag 05-25-2004 12:24 PM

Quote:

Originally Posted by Boulder
Where's 80kbps (for mono audio) ?

Nowhere :!:
Because many players can't reproduce that audio bitrate. Just like 40Kbps ( One of my players included :) )

-kwag

Boulder 05-25-2004 12:49 PM

Hey, you learn something new every day 8O

kwag 05-25-2004 01:26 PM

Quote:

Originally Posted by Boulder
Hey, you learn something new every day 8O

But still, here's your gift :cool:
Might be useful for some special cases :)

CalcuMatic 1.0.13
http://www.kvcd.net/downloads/CalcuMatic.exe

Added Custom audio size ;)

-kwag

jorel 05-25-2004 01:33 PM

thanks Kwag!
:wink:

removing doubts: loading ifos i get negative numbers:
minutes -4800
seconds -79
and all in the "results"

how the preview work? if i click using ifos,vobs or avs scripts i got:
"error,can't load the movie..." :?

incredible 05-25-2004 02:51 PM

Thanks for the code Karl!

Im just in optimizing the MenCalc Resizer so that all Sources like captured non 1:1 PAR ones will be also supported :)

After that Ill do optimize the bitratecalculator. :wink:

rds_correia 05-25-2004 02:54 PM

Hi Jorel,
The preview feature is only available for mpeg or avi sources.
It won't work with ifo/vob/avs :( ... yet, I hope :)
The problem with the negative figures is also happening with my DVDs and I've told Kwag about it and told me to wait a bit longer as he is under heavy development on the parsing mechanisms used by calcumatic for those new sources.
C ya

jorel 05-25-2004 02:57 PM

ok,thanks Correia.

the worse is that i "double post" the same doubts in CQMatic/CalcuMatic forum!
:oops:
now i have to "stryke" myself! :lol:

rds_correia 05-25-2004 03:01 PM

:rotf: :rotf: :rotf: :rotf: :rotf: :rotf:

incredible 05-26-2004 03:03 PM

New version of "MenCalc" is out .... see change log in first post of this thread for details.

http://home.arcor.de/packshot/mencalc1.01.0.exe

jorel 05-26-2004 03:31 PM

thank you ink !
:D

DKruskie 05-26-2004 08:45 PM

This question might sound off the wall..but where do I put the values that MenCalc gives me?..




David

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 06:17 PM  —  vBulletin © Jelsoft Enterprises Ltd

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