13

There used to be an option in older versions of HandBrake to set a target file size for the video file it outputs. However, it seems that option is no longer there in the UI.

Does anybody have any solution for that? Probably using the "Extra Options" box at the video tab? enter image description here

Mike Eng
  • 387
acman123
  • 833

5 Answers5

12

Vidcoder is a Windows-only alternative front end for Handbrake and offers the target size option. You don't need to install Handbrake separately.

Here's the target size option:
Vidcoder Size Option

Mike Eng
  • 387
David
  • 121
10

HandBrake 0.9.5 (released January 4, 2011) was the last version to support the "target size" feature. You can download an old version of HandBrake from their Old Releases page.

Or you can compute the final file size using the following formula

File size (kb) = bitrate(kbps) x running time (s)

If you want it in MB, then divide the result by 1000.

Destroy666
  • 12,350
Paun Alin
  • 109
3

The devs have stated publicly that they will not be bringing this feature back (disappointing imo, since there are many valid use cases for it).

One workaround: download this handy calculator app from Christian Wheel, which will give you a value to put in the "Avg Bitrate" field to achieve a certain output size.

Alex Ryan
  • 215
  • 1
  • 5
0

filesize (kb) = bitrate (kbps/8) x seconds

byte = 8 bits

And to be precise, if you want it in MB just divide the result value by 1024 or 1048576 for Gb example: constant bitrate: 2750/8*7200 sec /1024/1024 = 2.36GB slightly larger for audio track(s)

Now, if you don't need to be that precise, and a movie is around 2 hours:

2750 kbps will give you around 2.75 GB

3500 kbps will give you around 3.5 GB

4000 kbps will give you around 4 GB

and so on

M W
  • 1
-1

If you want to target MegaBytes, and are using 1024 Bytes = 1 MegaByte, then use this formula:

File size in MegaBytes = ( bitrate in kbps x running time in sec ) / 1024

Hence, if you want to target a size in MegaBytes, using basic algebra we can manipulate the function to get your average bitrate using this formula. Then just plug the calculated bitrate in the Avg Bitrate section of the Video tab in Handbrake:

Bitrate in kbps = ( File size in MegaBytes * 1024 ) / (Running time in sec)

KyferEz
  • 159