'encoderBitrate configured in
MediaElement.conf.ini ignored with
x264` encoder
#94
Open
3 tasks done
Prerequisites
Issue description
When using x264 encoder we have the following logs:
The problem is around the error log, see context below.
Context
The consequence of the above is that the bitrate setting is ignored and some max bitrate of 2Mbps is used.
Looking at the code of kurento 7.1.0 (which is the version we use) we can see this piece of code and matching it with the logs:
new_bitrate
to300000
as expected:kbps_div
to1
:so then
new_bitrate
value is300
0
:Indeed
new_bitrate * kbps_div / 1000
is then300 * 1 / 1000
. Hence the error log and this issue report.How to reproduce?
Configure
MediaElement.conf.ini
with the following content:And create a pipeline with
x264
encoder and logs enabled, for example I usedGST_DEBUG
set to the following:Expected & current behavior
I got the unexpected bitrate at the end of the pipeline.
(Optional) Possible solution
Instead of setting value
300000
, I can use value300000000
in configuration and get the following logs:About Kurento Media Server
About your Application Server
The text was updated successfully, but these errors were encountered: