[x265] rate-control: lowering target bitrate to main tier limit if not set --high-tier

Mateusz mateuszb at poczta.onet.pl
Sun May 22 16:32:38 CEST 2016


x265 hangs if you specify
x265 -D10 -p0 ducks_take_off_2160p50.y4m --level-idc 5.1 --bitrate 50000 -o w.hevc

It prints
x265 [warning]: lowering target bitrate to High tier limit of 160000Kbps
but not set high-tier. Also 50'000 is not bigger than 160'000.

# HG changeset patch
# User Ma0 <mateuszb at poczta.onet.pl>
# Date 1463927067 -7200
#      Sun May 22 16:24:27 2016 +0200
# Node ID 6177f1fce4164bbe409e0e004339f977d2435a2b
# Parent  4723933fdec920debefe606d50a9a312f7bc7f6b
rate-control: lowering target bitrate to main tier limit if not set --high-tier

diff -r 4723933fdec9 -r 6177f1fce416 source/encoder/level.cpp
--- a/source/encoder/level.cpp    Fri May 13 09:32:11 2016 +0530
+++ b/source/encoder/level.cpp    Sun May 22 16:24:27 2016 +0200
@@ -349,8 +349,9 @@
     case X265_RC_ABR:
         if ((uint32_t)param.rc.bitrate > (highTier ? l.maxBitrateHigh : l.maxBitrateMain))
         {
-            param.rc.bitrate = l.maxBitrateHigh;
-            x265_log(&param, X265_LOG_WARNING, "lowering target bitrate to High tier limit of %dKbps\n", param.rc.bitrate);
+            param.rc.bitrate = highTier ? l.maxBitrateHigh : l.maxBitrateMain;
+            x265_log(&param, X265_LOG_WARNING, "lowering target bitrate to %s tier limit of %dKbps\n",
+                     highTier ? "High" : "Main", param.rc.bitrate);
         }
         break;
 



More information about the x265-devel mailing list