digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Video Encoding and Conversion (http://www.digitalfaq.com/archives/encode/)
-   -   Bitrates: Bitratecalc (http://www.digitalfaq.com/archives/encode/4685-bitrates-bitratecalc.html)

Razorblade2000 07-23-2003 05:07 PM

Bitratecalc
 
As moviestacker has a bug with the 2 cd feature, I remembered a Bitrate calc I had coded 2-3 years ago (I was 15 back then.... so don't expect that much)...
Maybe you can use it...
http://home.arcor.de/marcseeger/Bitr...itratecalc.rar

jorel 07-23-2003 05:27 PM

and a good guide here:

http://www.dvdrhelp.com/calc.htm

:wink:

Razorblade2000 07-23-2003 05:33 PM

Quite the same... but I can't stand Java...
As I use Mozilla, this damn Sun Java logo appears and loads some time...

kwag 07-23-2003 05:38 PM

Quote:

Originally Posted by Razorblade2000
Quite the same... but I can't stand Java...

Neither can I :mrgreen:
Same for M$ ".Net" :!:
Quote:

As I use Mozilla, this damn Sun Java logo appears and loads some time...
I quit using Mozilla. Now I use Opera :cool:

-kwag

Razorblade2000 07-23-2003 05:47 PM

BTW...
Does anyone know how to get these damn delphi files smaller?

kwag 07-23-2003 06:24 PM

Quote:

Originally Posted by Razorblade2000
BTW...
Does anyone know how to get these damn delphi files smaller?

You can try UPX compressor :idea:
http://upx.sourceforge.net/

-kwag

Razorblade2000 07-23-2003 06:30 PM

I know... but I menat if someone knows if you can delete some includes or sth like this... (directly in delphi)...
Or is there a "release" and a "debug" compile?

dazedconfused 07-24-2003 12:03 AM

Quote:

Originally Posted by jorel
and a good guide here:

http://www.dvdrhelp.com/calc.htm

:wink:

Has anyone done a comparison of the average bitrate values found when using MovieStacker versus the java calculator from dvdrhelp that Jorel mentioned? Do they both give basically the same values for average bitrate, or is one more accurate than the other?

:!: Kwag, I definetly liked the idea you mentioned in one of the other threads about eventually giving CQMatic its own built-in bitrate calculator (hence eliminating an extra step/program in the kvcd-process...no offense to Muaddib of course! :wink: ).

-d&c

vhelp 07-24-2003 12:31 AM

@ Razorblade2000..

Quote:

BTW...
Does anyone know how to get these damn delphi files smaller?
Yeah, maybe.. Sorry, I couldn't read German, and your app (after D/L)
had a bad header error or something, but it did work, I think.

I'd take a crack at the Bitrate thing, if you can tell me how you arrive at
each Formula.

But, for that bitrate calc, you should've ben able to have it at 10-20k at
least. But, do let me know the forumulas to the bitrate you use in your
calc. Thanks.
-vhelp

Razorblade2000 07-24-2003 03:03 AM

Ohhhhh... the formulas are VERY easy...

Total wanted Size = e.g. 800 MB
form this you substract the size of the audio (=audiobitrate in kbit/s multiplied by the length of the movie in seconds multiplied by the nr of streams)
now you got the size, which the video should have to fill, added to the audio stream size, the given total wanted size (e.g. 800 MB)
If this video size is for example 570 MB:
570 MB * 1024 = 583680 kilobyte
583680 kb *8 = 4669440 kilobit

But as the Bitrate is measured in Kilobit per Seconds:
Divide the video size in Kilobit (in my example: 4669440 kilobit) by the length in seconds (e.g. 7200 seconds = 2 hours):
4669440 kilobit / 7200 s = 648,53 kbit/s

Now there you've got your Bitrate :D

ATM I am trying to teach myself C# (C Sharp)... maybe I'll code another bitratecalc in a Programming language whichs projects don't take that much space

Avalon 07-24-2003 04:06 AM

Quote:

Originally Posted by Jorel
and a good guide here:

http://www.dvdrhelp.com/calc.htm


That's why I add this one to my guide!!!!!

J-Wo 07-24-2003 11:28 PM

Quote:

Originally Posted by Razorblade2000
Quite the same... but I can't stand Java...
As I use Mozilla, this damn Sun Java logo appears and loads some time...

If you go into control panel and click on Java Plug-In, you can deselect Show Console and Show Taskbar Icon and then you'll never see that lovely coffee mug again!

BTW, I really don't find it bothersome to use moviestacker right now, even for 2CD encodes (because as someone mentioned to me all you need to do is adjust the movie length) because we still need the program to help with resizing and stuff. Of course CQmatic having its own bitrate calc WOULD be ideal... :D

vhelp 07-25-2003 07:08 AM

Hi Razerblack2000..

I fell asleep lastnight inside my nap.. sorry couldn't back ta ya sooner.
Anyways..

I through together a quick calc app, based on your math above:

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

The above was only 19k in size. I'm not sure what you are talking about
with it being large or whatever it was that you were describing below:

Quote:

I know... but I menat if someone knows if you can delete some includes or sth like this... (directly in delphi)...
Or is there a "release" and a "debug" compile?
So, if you could elaborate, maybe I could help ??

Also, what version of Delphi are you using ??
:!: I'm using Delpha 6

See you later.
-vhelp

Razorblade2000 07-25-2003 07:14 AM

When I coded this tool, I used Delphi 5... but as there weren't enough people to get my programming as a subject in school this year( :evil: ), I really forgot much of what I've learned :cry:

I'll give the newsest Delphi version a try, and as I have got summer holidays since 2 days, I guess I could learn some coding again... :wink:

vhelp 07-25-2003 07:42 AM

hi Razor..

Cool. I'll remain.

Listen, I'm not sure how this Bitrate will be utilized in the CQ of things.
I mean, I always thought one had to use a Bitrate READER, to read inside
the file itself, to obtain the true bitrate and then CQ'wilize it and so forth.

From what I understand, the "ave bitrate" from the above calc app wouln't
work proplerly w/ the CQ of things (less I'm wrong) But, I think it's mainly
(or was mainly) used for obtaining a fit for storage on a CDR disk !

Anyways.. It was a great excersize, none the less.

I'll see you all later.
Have a great day, and a starting weekend :) :)
-vhelp

Razorblade2000 07-25-2003 08:02 AM

I'm not sure how CQ_Matic does the predicting... my guess:

1. (given avg bitrate) * (given movietime in minutes) * 60) = (wanted endsize)
2. take a sample that is (given movietime in minutes) / 100 and encode at CQ X
3. If (encoded sample size) * 100 < (wanted endsize) then CQ X:= CQ X+10
If (encoded sample size) * 100 > (wanted endsize) then CQ X:= CQ X-10
4. Goto 1.

*gg*
:lol:


All times are GMT -5. The time now is 03:16 AM  —  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.