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
Posts: 74
Joined: Sun Nov 01, 2009 11:22 am

Limit max bitrate in 2-pass mode?

Post by oRBIT2002 » Thu Oct 16, 2014 12:22 pm

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.

User avatar
Rodeo
HandBrake Team
Posts: 12141
Joined: Tue Mar 03, 2009 8:55 pm

Re: Limit max bitrate in 2-pass mode?

Post by Rodeo » Thu Oct 16, 2014 12:37 pm

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
Posts: 74
Joined: Sun Nov 01, 2009 11:22 am

Re: Limit max bitrate in 2-pass mode?

Post by oRBIT2002 » Thu Oct 16, 2014 12:44 pm

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?

User avatar
Rodeo
HandBrake Team
Posts: 12141
Joined: Tue Mar 03, 2009 8:55 pm

Re: Limit max bitrate in 2-pass mode?

Post by Rodeo » Thu Oct 16, 2014 12:52 pm

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