3 ms·
This calculation only works if you encode at constant bitrate. I usually encode at constant quality. The output size heavily depends on the input video. So, I
by abdusco 3y ago
This calculation only works if you encode at constant bitrate.
I usually encode at constant quality. The output size heavily depends on the input video. So, I wrote a wrapper in python that parses the HandbrakeCLI output estimates the final size based on percent completed & the current output file size. Then I can stop early if I realize the file is gonna be huge / the output quality is so shitty that I have to bump the quality factor.
- CharlesW 3y ago> This calculation only works if you encode at constant bitrate. This will need to be your average bitrate over the entire file, but the bitrate doesn’t have to be constant. It can (and ideally should) vary widely between static scenes and action sequences, for example.
- illiac786 3y agoAverage bitrate would only be possible with a 2pass encoding though, I believe.