Limit peak bitrate?

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
oRBIT2002
Posts: 74
Joined: Sun Nov 01, 2009 11:22 am

Limit peak bitrate?

Post by oRBIT2002 » Fri Jul 28, 2017 8:33 pm

I'm trying to make Plex-friendly BD-rips of my collection but it was obviously not that easy. Plex requires <20Mbps videos or it will start to transcode and I don't want that so I need to keep bitrates below 20megabits..
My problem is bitrate spikes. Assume I set avg bitrate to 12Megabit. using the extra options I set "vbv-maxrate: 17000" and "vbv-bufsize: 34000" (according to different sources online...) My thought was that I won't get spikes above 17000 (17Megabits) but I still keep getting >20Megabit spikes anyway.
I'm no expert in Handbrake so I might've mixed something up. What am I doing wrong? Hints are appreciated..

mduell
Veteran User
Posts: 6681
Joined: Sat Apr 21, 2007 8:54 pm

Re: Limit peak bitrate?

Post by mduell » Fri Jul 28, 2017 8:56 pm

maxrate=17000 bufsize=34000 means you won't see spikes over 17Mbps if you look at a period of 2 seconds. If you look at one second periods you could still have 25Mbps in one second and 9Mbps in the next.

What time period is whatever tool you're using measuring spikes over?

oRBIT2002
Posts: 74
Joined: Sun Nov 01, 2009 11:22 am

Re: Limit peak bitrate?

Post by oRBIT2002 » Fri Jul 28, 2017 9:08 pm

"Bitrate viewer". I think it detects the highest spike through the entire file when it scans...

mduell
Veteran User
Posts: 6681
Joined: Sat Apr 21, 2007 8:54 pm

Re: Limit peak bitrate?

Post by mduell » Sat Jul 29, 2017 12:17 am

Sounds like crapware. Over what time period?

oRBIT2002
Posts: 74
Joined: Sun Nov 01, 2009 11:22 am

Re: Limit peak bitrate?

Post by oRBIT2002 » Sat Jul 29, 2017 5:58 am

I have no idea.
Are there any settings to disable spikes above a certain bitrate?

User avatar
BradleyS
Moderator
Posts: 1638
Joined: Thu Aug 09, 2007 12:16 pm

Re: Limit peak bitrate?

Post by BradleyS » Sat Jul 29, 2017 2:52 pm

Activity log would help.

HandBrake's official presets limit 1080p to level 4.0. This should be sufficient, but you could change the level to 3.1 like the 720p presets for vbv 14000,14000.

mduell
Veteran User
Posts: 6681
Joined: Sat Apr 21, 2007 8:54 pm

Re: Limit peak bitrate?

Post by mduell » Sat Jul 29, 2017 5:57 pm

oRBIT2002 wrote:
Sat Jul 29, 2017 5:58 am
I have no idea.
Are there any settings to disable spikes above a certain bitrate?
The vbv settings you mentioned can be used to disable spikes above a certain bitrate.

It's not possible to tell you what settings you need to use if you refuse to tell us what time period (tenth of a second, one second, ten seconds, etc) you're measuring spikes over.

Post Reply