Bit rate option

As the other PR is stalled, I'm sending this one so we can add this useful feature.