Limit max bitrate in 2-pass mode?

HandBrake for Windows support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
oRBIT2002
Experienced
Posts: 90
Joined: Sun Nov 01, 2009 11:22 am

Limit max bitrate in 2-pass mode?

Post by oRBIT2002 »

Is there a way of limiting the max bitrate in 2-pass mode? Let's say I want a average 2000kbit but I never want max bitrate to go over 3000kbit.
Deleted User 11865

Re: Limit max bitrate in 2-pass mode?

Post by Deleted User 11865 »

Via advanced encoding options:

Code: Select all

vbv-maxrate=maxrate:vbv-bufsize=bufsize
…where maxrate and bufsize and integer values, in kbps (kilobits per second), just like the bitrate. Both options must be set else VBV won't kick in.

When in doubt, set the buffer size to 1 second (maxrate == bufsize).
oRBIT2002
Experienced
Posts: 90
Joined: Sun Nov 01, 2009 11:22 am

Re: Limit max bitrate in 2-pass mode?

Post by oRBIT2002 »

I did a quick test, average vbr = 1000, and vbv-maxrate and vbv-bufsize to 2000, but I still gets peaks at 2500kbps (using bitrate viewer for mp4-files). Anything I've forgotten?
Deleted User 11865

Re: Limit max bitrate in 2-pass mode?

Post by Deleted User 11865 »

I doubt your bitrate viewer is VBV-compliant. So as long as you use correct VBV constraints for your use case (hardware decoder, or sometimes network characteristics), you'll be fine.
Post Reply