GithubHelp home page GithubHelp logo

gkrcparams's Introduction

Tool for changning HiSilicon/Goke encoder params.

How to Compile

Download and compile OpenIPC firmware in < OpenIPC >
Copy gkrcparams.c to <OpenIPC>/openipc-firmware/output/build/majestic-plugins-HEAD/hisilicon then
cd <OpenIPC>/openipc-firmware/output/build/majestic-plugins-HEAD
then run

<OpenIPC>/openipc-firmware/output/per-package/majestic-plugins/host/bin/arm-openipc-linux-musleabi-gcc \
    hisilicon/gkrcparams.c \
	-I. \
    -Ihisilicon/include \
    -L/home/home/src/OpenIPC/openipc-firmware/output/target/usr/lib \
    -lisp \
	-lmpi \
	-lmd \
    -lupvqe \
    -ldnvqe \
    -lsecurec \
	-live \
	-lVoiceEngine \
	-l_hidrc \
	-l_hidehaze \
	-l_hildci \
    -o hircpars \
    -Os \
    -s

example:

/home/home/src/OpenIPC/openipc-firmware/output/per-package/majestic-plugins/host/bin/arm-openipc-linux-musleabi-gcc     hisilicon/gkrcparams.c        -I.     -Ihisilicon/include     -L/home/home/src/OpenIPC/openipc-firmware/output/target/usr/lib     -lisp       -lmpi   -lmd     -lupvqe     -ldnvqe     -lsecurec         -live   -lVoiceEngine   -l_hidrc        -l_hidehaze     -l_hildci     -o hircpars     -Os     -s

Sample usage:
gkrcparams --MaxQp 30 --MaxI 2

Tested on gk7205 and h3516 majestic must running when calling the app. Changes won't persist if majestic is restarted.

Current options that can be changed --MaxI u32MaxIprop[u32MinIprop,100]
--MinI u32MinIprop[1,u32MaxIprop]
--MaxQp u32MaxQp[MinQp, 51]
--MinQp u32MinQp[0, 51]
--MaxReEnc s32MaxReEncodeTimes[0, 3]
--MaxQpD u32MaxQpDelta[0, 4]
--RefreshNum u32RefreshNum (enables IntraRefresh)
--help Display this help

  • u32MaxIprop Maximum ratio of bits allocated to the I-frames and P-frames Value range: [u32MinIprop,100] Default value: 100

-u32MaxQp Maximum QP value of the P-frame and B-frame Value range: [MinQp, 51] Default value: 51

-u32MinQp Minimum QP value of the P-frame and B-frame Value range: [0, 51] Default value: 16

  • s32MaxReEncodeTimes Number of times that each frame is re-encoded. The value 0 indicates that the frame is not re-encoded. Value range: [0, 3] Default value: 2

โˆ’ u32MaxQpDelta Indicates the difference between the maximum QP value of the frame level and the maximum QP value of the CU level. This is an advanced CVBR parameter. When the image content is complex, the bit rate control increases the QP value. When the frame-level QP value is adjusted to the maximum, the bit rate control does not increase the frame-level QP value. However, the CU/MB-level bit rate control still takes effect, and the QP value in the strong texture area of the image can be increased.

SDK and param details here: http://fabemo.ru/pcb/ReleaseDoc_v01/zh/01.software/board/HiMPP%20V4.0%20%E5%AA%92%E4%BD%93%E5%A4%84%E7%90%86%E8%BD%AF%E4%BB%B6%E5%BC%80%E5%8F%91%E5%8F%82%E8%80%83.pdf

Precompiled executable

hircpars - for HiSilicon gkrcparams - for Goke (old version)

gkrcparams's People

Contributors

tipoman9 avatar widgetii avatar

Stargazers

 avatar

Forkers

votblah

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.