PDA

View Full Version : New BitRate Calculator


weaver4
29th March 2006, 03:34
When I use AutoGK I am not trying to fit the file to any specific size I just want to have a good quality decode. Sure you can just set it at 1100b/sec but that is too high for 640x272 and too low for 640x436. So I made up a differant type of calculator. Put in the resolution, length of movie, and the quality you want and the output is the bit rate and final file size.

Well I use it, I wanted to know if anyone else is intrested.

MaXiMuS
30th March 2006, 06:49
nice, i`d like 2 test it :thanks:

weaver4
30th March 2006, 19:57
Here you go. Requires 1.1 framwork, which you probably have.

JoeBG
31st March 2006, 08:27
Good idea :)

Is it for Xvid or can I also use it for x264. x264 is much more powerful.

weaver4
31st March 2006, 19:20
Yep you can use it for any of the above. Except that x264 gives better quality videos for the same bitrates so you will need to take that into account. So where it says quality if you set it for fair in x264 it is probably really good and so on.

My assessment on the bit/pixel for a specific quality was based on DivX and XviD.

BigDid
31st March 2006, 20:25
Hi weaver4,

Your calculator seems fine but I have an unhandled exception; I believe it is because I have .net rev2 instead of rev1. Could you make it compatible?

Here is the log:
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Reverse_Bit_Calculator.frmMain.button1_Click(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/microsoft.net/framework/v1.1.4322/mscorlib.dll
----------------------------------------
Reverse Bit Calculator
Assembly Version: 1.0.2278.35919
Win32 Version: 1.0.2278.35919
CodeBase: file:///C:/Documents%20and%20Settings/DPasselaigues/Bureau/Reverse%20Bit%20Calculator.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.windows.forms/1.0.5000.0__b77a5c561934e089/system.windows.forms.dll
----------------------------------------
System
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system/1.0.5000.0__b77a5c561934e089/system.dll
----------------------------------------
System.Drawing
Assembly Version: 1.0.5000.0
Win32 Version: 1.1.4322.573
CodeBase: file:///c:/windows/assembly/gac/system.drawing/1.0.5000.0__b03f5f7f11d50a3a/system.drawing.dll
----------------------------------------

************** JIT Debugging **************

Did

weaver4
31st March 2006, 21:57
When you make the executable you need to make it one or the other, but the machine that it runs on (yours) can have both libraries (.Net Framework 1.1 and .Net Framework 2.0) with no problems. So you can install 1.1 of the Framework without a problem.

But I am not sure this is the problem, generally if the Framework is missing it will give a dialog box when it fails.

Did you have valid values in all the fields before you pressed calculate?

I will look at it tonight.

BigDid
1st April 2006, 00:30
...Did you have valid values in all the fields before you pressed calculate?...
It seems not, if I let frame rate to 23.976 all is fine But... I am in PAL land, so if I cannot use 25 or 24.999 I cannot use your tool.
It seems the only issue, changing other values does'nt affect the calculation :(

Did

weaver4
1st April 2006, 17:59
Here is the fix. Thanks for your feedback.

BigDid
2nd April 2006, 06:18
Here is the fix. Thanks for your feedback.
Works fine now, thanks for PAL users :)

Did

Plamen234
8th April 2006, 12:20
Thank you this calc.

It lacks the ability to calculate with user values entered for Bits/(pixels*frames). May be we can see v3 soon I hope.

... and can you reveal the secret how the calculations are done, please please please (it would be very helpful for me).

Thank you in advance.

medp7060
12th April 2006, 09:06
I agree. that feature would be nice.

weaver4
15th April 2006, 02:02
Here is a new Version that gives you more choices for quality.

medp7060
15th April 2006, 03:41
thanks. Look forward to testing it.

radar
21st June 2006, 02:42
hi,im trying to understand bitrate cals.im doing dvd back ups,would this tool help with selecting a high or low matrix.looking for help on dvds with heavy comp.thanks

audioman
7th September 2006, 22:15
Thanks Weaver

I cannot select ac3 audiotrack ? Why ?

I encode my movies with ac3

Have you got any idea ?

weaver4
9th September 2006, 17:10
I could certainly add that. I never use AC3 as a audio format, so I guess I overlooked it. What is the data rate for ac3?

MiNoviaMuerta
9th September 2006, 17:38
Hello.

Nice program, but I'm getting weird results:

http://img523.imageshack.us/img523/7006/corel007zv6.png

I'm running on WinXP SP2 with both .NET 1.1 and 2.0 installed.

Thanks in advance and sorry for my poor english.

weaver4
11th September 2006, 04:31
With exactly the same inputs in the fields I get completly different results: 976kbs and 970MB.

McoreD
15th September 2006, 10:01
MiNoviaMuerta.

It's not a program error as far as I know. I've experienced this with difference configurations of PCs. Not quite sure what causes the problem. Can be .NET related.

http://img167.imageshack.us/img167/6581/reversebitratecalcv3demoyu9.jpg

weaver4, great idea to put into code. :)

I was wondering how you decided on the info

Fair (.18 bits/pixel)
Good (.21 bits/pixel)
Very Good (.24 bits/pixel)
Excellent (.27 bits/pixel)

Is this by personal testing or general opinion?

Cheers,
McoreD

Sharktooth
15th September 2006, 14:51
it's related to international settings.
the "23.976" value is the cause. Non EN/US countries have "." and "," exchanged for decimal and thousands representation.
So, in MiNoviaMuerta case 23.976 is read as 23976 FPS...

weaver4
15th September 2006, 15:24
MiNoviaMuerta.

I was wondering how you decided on the info

Fair (.18 bits/pixel)
Good (.21 bits/pixel)
Very Good (.24 bits/pixel)
Excellent (.27 bits/pixel)

Is this by personal testing or general opinion?

Cheers,
McoreD

General Opinion and my opinion. I would think that most people would think I am pretty close. A few purist would argue that the bit rates are too low.

SiKKo
23rd September 2006, 13:36
Much thanks for this calculator! Any chance you could add more options in the values for the audio bitrate, such as 192, 384, 256, 384, and 448kbps for those of us who use original AC3 output?

weaver4
29th September 2006, 16:09
Sure, I will get it done within the next few days.

BigDid
29th September 2006, 20:07
Much thanks for this calculator! Any chance you could add more options in the values for the audio bitrate, such as 192, 384, 256, 384, and 448kbps for those of us who use original AC3 output?
Hi,

I had an exchange with Tebasuna (in the Aften thread if I recall well) about valids AC3 values.
They are:
192, 256, 320, 384 and 448 for the range above 192. Bye.

Did

weaver4
17th October 2006, 14:56
Here is the updated version with the additional audio bitrates.

Sorry it took so long.

Pure
24th November 2006, 15:21
Thanks weaver4! Giving it a go aswell

remo7
3rd January 2007, 10:00
hello, I have a questions about this calc.

if there are two audio in video, if its dual, how can calc?

weaver4
3rd January 2007, 15:47
Just double the audio rate.