VideoHelp.com Forum
+ Reply to Thread
Results 1 to 4 of 4
Thread
  1. Member
    Join Date: Mar 2007
    Location: United States
    I am convertin a miniDV NTSC video into .mp4 H264.
    I have to wait 30 minutes for the video to encode to see that the final file size will be.
    This can be time consuming.
    Is there an online calculator that will allow me to select the file type, codec, bitrate, duration and let it calculate approximately how big my files will be?
    Quote Quote  

  2. the formula is the same for any type video. duration x bitrate = file size
    Quote Quote  

  3. Member
    Join Date: Dec 2005
    Location: none
    If you use bitrate based encoding the file size is simply:

    file size = bitrate * running time

    Where bitrate is the sum of audio and video bitrates. Keep in mind you need to adjust for bits/byte and watch your units.

    For example 1 hour with a total bitrate of 8000 kbps; 1 hour is 3600 seconds so:

    file size = 8000 kbps * 3600 seconds
    file size = 28,800,000 k bits

    there are 8 bits per byte so:

    file size = 28,800,000 k bits / 8
    file size = 3,600,000 k Bytes
    file size = 3.6 GB

    Many bitrate calculators can do this for you.
    Quote Quote  

  4. Member PuzZLeR's Avatar
    Join Date: Oct 2006
    Location: Toronto Canada
    For H.264, if you're using x264, and quantizers, or constant quality encoding (such as CRF, which is highly recommended for x264 encoding) you will not know in advance how big your final file size will be. It will give you the minimum bitrate possible for the quality you ask of it, and that minimum is highly variable scene by scene.

    Not sure of your level, but if that's the case, and you know some AviSynth, run a test encode and just add this line at the end of your script:

    SelectRangeEvery(1000,10,0)

    This is using "inference", which encodes 1% of the movie (10 frames every 1000 starting at 0). The bitrate of this combined “movie” should give you an idea of how big the final file will be.

    I find using 2.5% much more accurate, and still a quick test encode. Try:

    SelectRangeEvery(1000,25,0)

    The higher the percentage, the closer to the empirical result. (A limiting approximation...)

    If the calculus or statistics class was too much for you, just stick with arithmetic and use 2-pass encoding and fill in the appropriate bitrate with a bitrate calculator instead as mentioned above. I personally prefer an optimized one pass solution if using x264 given its long encoding times.
    Been away for a while and busy with work the last few months so I had no time for forums. My apologies for any emails I couldn't get to in time - missed you all! :-)
    Quote Quote  




Similar Threads

  1. A Question On How To Calculate Frame Size When Resizing Vid for DVD
    By hydrophonicaudio in forum Newbie / General discussions
    Replies: 13
    Last Post: 21st Feb 2011, 07:53
  2. How do I calculate the size of the converting video?
    By s_joy09 in forum Newbie / General discussions
    Replies: 4
    Last Post: 14th Aug 2010, 09:45
  3. How to calculate the sample size of wmv Video file
    By asifjavaid in forum Video Conversion
    Replies: 3
    Last Post: 13th Apr 2009, 08:33
  4. Impossible to get the right file size after encoding
    By cd090580 in forum Newbie / General discussions
    Replies: 7
    Last Post: 4th Dec 2008, 11:14
  5. calculate the size to save
    By Cazz in forum Editing
    Replies: 7
    Last Post: 11th Jan 2008, 06:05
Search   Contact us   About   Advertise   Forum   RSS Feeds   Statistics   Tools