git clone https://github.com/xiane/testHevcApi
cd testHevcApi
git submodule init
git submodule update
make
Add libvphevcodec.so path by belove command, or install it.
(go to testHevcApi path)
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${PWD}/hevc_enc/
(go to testHevcApi path)
cd hevc_enc
sudo make install
Amlogic HEVC Encode API
usage: output [srcfile][outfile][width][height][gop][framerate][bitrate][num]
options :
srcfile : yuv data url in your root fs
outfile : stream url in your root fs
width : width
height : height
gop : I frame refresh interval
framerate: framerate
bitrate : bit rate
num : encode frame count
fmt : encode input fmt 1:nv12, 2:nv21