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-22-2004 12:49 PM

Quote:

Originally Posted by digitall.doc
And, what about incluing it in Pack-Shot (along with support for those resolutions...)? Sure you already thought this...

Well the routine at the beginning was purposed for Packshot, ... but I did implementate it in a standalone appl. as there has been asked for ;-)

digitall.doc 05-22-2004 05:47 PM

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 :oops: )

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 :roll:

-kwag

8O
No Kwag, it isn't hard.
I think Inc took the comment as it was intended to be.
Every comment I make is to be helpful.
If it doesn't help, the programmer just forget it.
That's all.
:roll:

incredible 05-23-2004 09:09 AM

The only little problem is ... coding needs time and if every little "cosmetic" is respected now, the things will take more and more time to develope, and the main intention of this calc routine was purposed as a developement for Packshot. This result as Standalone App. was just a little bonbon for Commandline Programmers .
:)

So I put my focus yesterday on a BitrateCalculation routine (see my "Developement status"-Posting in the "Packshot suggestions" Thread.

digitall.doc 05-23-2004 09:24 AM

Quote:

Originally Posted by incredible
So I put my focus yesterday on a BitrateCalculation routine (see my "Developement status"-Posting in the "Packshot suggestions" Thread.

Great, great, great :D .
You have extrasensorial powers, man 8O :o .
Yesterday, while I was loading a big d2v in new calcumatic, with 2 films to be PackShot-Menc-KDVDed, and trying to put in audio 0 kbps, or 0 audio tracks (as I already have my ac3 tracks, wanted calcumatic not to consider audio), I thought: It would be great to have a new PackShotBitrateCalc... and here you are :!: .
First suggestion for your still not delivered tool ( :roll: :lol: ): it would be nice you could input manually the filesize of your ac3 tracks.

incredible 05-23-2004 10:15 AM

Quote:

Originally Posted by digitall.doc
Quote:

Originally Posted by incredible
So I put my focus yesterday on a BitrateCalculation routine (see my "Developement status"-Posting in the "Packshot suggestions" Thread.

Great, great, great :D .
You have extrasensorial powers, man 8O :o .
Yesterday, while I was loading a big d2v in new calcumatic, with 2 films to be PackShot-Menc-KDVDed, and trying to put in audio 0 kbps, or 0 audio tracks (as I already have my ac3 tracks, wanted calcumatic not to consider audio), I thought: It would be great to have a new PackShotBitrateCalc... and here you are :!: .
First suggestion for your still not delivered tool ( :roll: :lol: ): it would be nice you could input manually the filesize of your ac3 tracks.

This one will be the part of Packshots window where AVGbitrate will be calculated.
http://home.arcor.de/packshot/bitratecalculator.exe
The liitle avg Output field will be the one which already exists in packshot.
No matter what you or where you do enter values, the calculation result bases on the the sum of everything which you do input in the fields.

You can set Audio kbs! And when entering the right length of the movie the exact correct size in MBs of audio internally will be calculated, as anyway you have to know and enter the movie source length! So manual MB size input is not needed, and would cause MORE inputfileds where user will get confused.

digitall.doc 05-23-2004 12:16 PM

Downloaded and "tasted",
- What does overheat stand for?.
- Is automatically calculated the mux overhead for each film? (sorry, maybe this is the answer to my previous question :oops: )
- Did you include a minimum amount of MB for authoring later? (don't know exactly what's needed. I think that with DVDlab I used about 180 MB).

I selected 2 films, 120 min each, with audio track nș1 384 kbps and audio track nș2 192 kbps... and I got avg 1400... maybe too low.
Does it any difference if audio tracks are 5.1 ch or 2 ch? (in file size I mean).

I'll do more tests and post results (maybe better I'll open a new thread, if you think it worth).

Great, another toy to play with... :wink:

incredible 05-23-2004 12:56 PM

Quote:

Originally Posted by digitall.doc
Downloaded and "tasted",
- What does overheat stand for?.

Uops, I thought I already fixed that mistyping 8) Done!

Quote:

- Is automatically calculated the mux overhead for each film? (sorry, maybe this is the answer to my previous question :oops: )
- Did you include a minimum amount of MB for authoring later? (don't know exactly what's needed. I think that with DVDlab I used about 180 MB).
Well the overhead should include these needed MBs for authoring, as I did a test when using an other claculator and the final avg matches! Also I did comparisons with CQmatic and almost the same comes out, ... ok Kwag applied a little more "safe" space if I do see it right. But internally this routine above uses the same calculation sheme like used in MencodeME... as Vmesquita gave me the formula.
Quote:

I selected 2 films, 120 min each, with audio track nș1 384 kbps and audio track nș2 192 kbps... and I got avg 1400... maybe too low.
Does it any difference if audio tracks are 5.1 ch or 2 ch? (in file size I mean)
As said, I did a compraison with cqmatic and even there less bits in avg came out.

And, what counts is Bitrate and not if its an 5.1 or 2.0 Encoding! ;-)

Heres the importand part of the code and below you can see the formula:
Code:

audio1bitrate1= Val(GetGadgetText(#Movie1ch1))
audio1bitrate2= Val(GetGadgetText(#Movie1ch2))
audio2bitrate1= Val(GetGadgetText(#Movie2ch1))
audio2bitrate2= Val(GetGadgetText(#Movie2ch2))
audio3bitrate1= Val(GetGadgetText(#Movie3ch1))
audio3bitrate2= Val(GetGadgetText(#Movie3ch2))

audiobitrate= audio1bitrate1 + audio1bitrate2 + audio2bitrate1 + audio2bitrate2 + audio3bitrate1 + audio3bitrate2


movielength1= Val(GetGadgetText(#Movie1min))
movielength2= Val(GetGadgetText(#Movie2min))
movielength3= Val(GetGadgetText(#Movie3min))

movielength= movielength1 + movielength2 + movielength3


mediaoverhead= Val(GetGadgetText(#MuxOverheat))


If audiobitrate = 0
audiobitrate = 1
EndIf
If movielength = 0
movielength = 1
EndIf

audiosize.f=((audiobitrate/8)*1000)*(movielength*60)
mediabytes.f=(mediasize - mediaoverhead)*1024*1024
bitrate=Round(((((mediabytes - audiosize)/(movielength*60))/1000)*8),0)

SetGadgetText(#AvgBitrate, Str(bitrate))


Boulder 05-23-2004 02:46 PM

Regarding overhead, I've noticed that you can assume that a DVD is 4350 MB in size. I've used it for 2-3 movies per disc and also with TV series, 6-8 episodes per disc and it's always been on the spot, leaving only a tiny bit unused.

kwag 05-23-2004 03:03 PM

Hi Inc,

Check your calculations, because the resulting average is way higher than what's supposed to be.
For example, for one 120 minute movie with audio at 112Kbps on one DVD-5, the average bitrate is 4897.9 (without any overhead).
But Mencalc gives me 5109, which is too high.

-kwag

digitall.doc 05-23-2004 04:40 PM

Inc,
I've revised your post slightly, so I may be wrong. But I used your calculator, and made calculations "by hand", and get different values. I think one error may be in audio calculation:
Quote:

Originally Posted by incredible
...Heres the importand part of the code and below you can see the formula:
Code:

...
audiobitrate= audio1bitrate1 + audio1bitrate2 + audio2bitrate1 + audio2bitrate2 + audio3bitrate1 + audio3bitrate2
...
audiosize.f=((audiobitrate/8)*1000)*(movielength*60)
mediabytes.f=(mediasize - mediaoverhead)*1024*1024
bitrate=Round(((((mediabytes - audiosize)/(movielength*60))/1000)*8),0)

SetGadgetText(#AvgBitrate, Str(bitrate))


I don't think it's the same:
Code:

((audio1/8)*1000)*(film1*60)+((audio2/8)*1000)*(film2*60)
as
Code:

((audio1+audio2/8)*1000)*(film1+film2*60)
I do get different results. I think the first one is the correct.
But this just gives an error if using 2 or 3 films. I don't know where may be the error Kwag is getting with 1 film.

incredible 05-23-2004 05:24 PM

I dont know Kwag, but If using Fit2disk, enabling everything like VOb muxing, DVD authoring and all we do need to be included in the claculation...

... at 1movie at 120mins incl. 112kbit audio... in Fit2disk 5006 do come out!

... "Bitratecalculator", means my engine outputs 5005 (incl 90mb overhhead)

:?:

Also ... that routine is exactly the same as in mencodeMe , as its the claculation of VMesquita.
Therefore a DVD5 Size of 4482 is used in the claculation .... or is that wrong

And to your point Digi Doc .... thats a thought wich could be true!
Kwag what do you think about it??

I think that the "way" the formula is is correct, as I do get in Calcumatic the same relation if 2 or three movies are selected and then 2 or 3 audios!

Well "his" avg is smaller seen as a whole (and thats why quoted my DVD Media MBs above so he can see if its correct) but in relation the output if more than one movie is choosen is the same

Encoder Master 05-23-2004 05:32 PM

Quote:

Therefore a DVD5 Size of 4482 is used in the claculation .... or is that wrong
Perhaps kwag using CalcuMatic for his bitrate an he set DVD-5 to 4300 MB and you to 4482? :?:

incredible 05-23-2004 05:38 PM

All with DVD mux overhead included tested:

- movie 1= 120
- audio 1 =112 kbit

CQ Matic = 4869.4
mine = 5005



- movie 1= 120
- movie 2= 120
- audio 1 =112 kbit
- audio 2 =112 kbit

CQ Matic = 2252.5
mine = 2334



- movie 1= 120
- movie 2= 120
- movie 3= 120
- audio 1 =112 kbit
- audio 2 =112 kbit
- audio 3 =112 kbit


CQ Matic = 1305.5
mine = 1369




:?:

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.

Kwag: To me it seems you use a DVD media size of 4400 minus Overhead??

Encoder Master 05-23-2004 05:42 PM

He's using 4300 MBs! :wink:

incredible 05-23-2004 05:47 PM

Nope!
Not in his version 1.09a!

Encoder Master 05-23-2004 05:52 PM

Sorry, I haven't seen. :oops: :D

incredible 05-23-2004 05:55 PM

BTW: This calculator is NOT "MenCalc " :lol:
"MenCalc" is just the resizing engine.

That Bitratecalculator got no name as it wasnt purposed as Standalone Appl., Its just the Part which will be used in Packshot :wink:
As already many BitrateClaculators as Standalone appl. are out ;-)

audioslave 05-23-2004 06:35 PM

@Encoder Master & incredible
Off-topic
I was just wondering if you're brothers? I compared your avatars, and damn you look alike! :lol:

Dialhot 05-23-2004 06:57 PM

Quote:

Originally Posted by audioslave
I was just wondering if you're brothers? I compared your avatars, and damn you look alike! :lol:

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

audioslave 05-23-2004 07:06 PM

@Dialhot
:lol: :lol: :lol:


All times are GMT -5. The time now is 04:57 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.