<div style="line-height:1.7;color:#000000;font-size:14px;font-family:arial"><div>Hello Xuefeng,</div><div><br></div>Your idea is good, in low bitrate environment, the MV, header are most important part in bitstream.<div>I take a look your code, it sounds some problems.</div><div><br></div><div>Your calculate correlation between sliceQp and QP Range (<span style="font-size: 10.5pt; line-height: 1.5;">it is </span><span style="font-size: 10.5pt; line-height: 1.5;">[0, 51] without</span><span style="font-size: 10.5pt; line-height: 1.5;"> range extension</span><span style="font-size: 10.5pt; line-height: 1.5;">), so you will got a constant correlative array for every QP value.</span></div><div><span style="font-size: 10.5pt; line-height: 1.5;">In the final, your algorithm output a QP close to average value of sliceQP.</span></div><div>It is right, just spending more time on compute.</div><div><br></div><div>Regards,</div><div>Min<br><div></div><div id="divNeteaseMailCard"></div><br>At 2016-09-27 14:46:14,xuefeng <xuefeng@multicorewareinc.com> wrote:<br> <blockquote id="isReplyContent" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid"><style>body { line-height: 1.5; }blockquote { margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em; }div.foxdiv20160927144345792991 { }body { font-size: 10.5pt; font-family: 'Segoe UI'; color: rgb(0, 0, 0); line-height: 1.5; }</style>
<div><span></span></div><blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div><div class="FoxDiv20160927144345792991"><div>All,</div><div>hello! </div><div><br></div><div><span style="font-family: "" segoe="" ui="" font-size:="" color:="" rgb="" background-color:="" rgba="" font-weight:="" normal="" font-style:="" none=""> x265 set the slice QP in PPS to 26</span><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;">. Bits can be saved by calculating a closer approximation to the actual slice QP values utilized to encode the bitstream at different quality levels. The delta QP in each slice header is huge especially at low bit rate and quality levels.</span></div>
<div><br></div><div>My test command is as follows.</div><div><span style="font-family: ''; font-size: 10.5pt; line-height: 1.5; background-color: window;"><b>--repeat-headers --hash 1 --input-res 1280x720 --keyint 30 --min-keyint 30 --input "Johnny_1280x720.y4m" --fps 30 --output "test_new.mp4" </b></span></div><div><br></div><div>There is a patch in the attachment for this method based on "<span style="background-color: window; font-size: 10.5pt; line-height: 1.5;"><b>Changeset: </b></span><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><b>11587 (d20b78d6d138)</b>".</span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;">There is information for x265 coding to see that bitrate goes down. There is informations for HM decoding to see that MD5 and QP are the same with the method. </span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></div><div><span style="font-size: 10.5pt; line-height: 1.5; background-color: window;"><br></span></div><div><br></div><hr style="width: 210px; height: 1px;" color="#b5c4df" size="1" align="left">
<div><span><div style="MARGIN-LEFT: 10px; MARGIN-TOP: 10px; MARGIN-RIGHT: 10px">
<div><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; COLOR: #000000">Regards,</span></div>
<div><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; COLOR: #000000"></span> </div>
<div><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; COLOR: #000000"> Xuefeng
Jiang</span></div>
<div><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; COLOR: #000000"></span> </div>
<div><span style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; COLOR: #000000"><a href="mailto:xuefeng@multicorewareinc.com">xuefeng@multicorewareinc.com</a></span></div></div></span></div>
<blockquote style="margin-top: 0px; margin-bottom: 0px; margin-left: 0.5em;"><div> </div><div>
</div></blockquote>
</div></div></blockquote>
</blockquote></div></div>