h.264 codec video bitrate variable mismatch

Here you can submit bugreports
Post Reply
clking
Posts: 5
Joined: Thu Sep 28, 2017 1:07 am

h.264 codec video bitrate variable mismatch

Post by clking »

When using the h.264 encoder and video bitrate set to '%i_v_bitrate%' the resultant bitrate is in mb/s instead of kb/s, which is shown in the interface.

For example, I have a file which is encoded at 1600 kb/s and when using the h.264 encoder with this variable the resultant file is encoded at 1600 mb/s.

A custom ffmepg workflow can be used, but the h.264 codec works well other than this mismatch. I have tested multiple files and types and the result is the same.
admin
Site Admin
Posts: 1659
Joined: Sat Feb 08, 2014 10:39 pm

Re: h.264 codec video bitrate variable mismatch

Post by admin »

Hi clking

This is not a bug but expected behavor; The bitrate input field takes whatever value is in the field. When replacing a value with a variable, the variable holds data which may or may not be a sane value in this context. Now, the %i_v_bitrate% variable returns the bitrate in bits per second. So in your case this would be 1.600.000 (1.6 million) bits per second. This is the actual value you give to the bitrate input field of the encoder. The encoder use this value to create a bitrate of 1.600.000 kb/s, which naturally translates to 1600 mb/s.

In order to accomplish what you want you need to store %i_v_bitrate%/1024 in another variable (using the "Populate variable"-node) and use this new variable in the bitrate input field. Hope this helps.

-steinar
Post Reply