Jsvm的安装稍简单,只需要将jsvm文件夹拷贝进虚拟机,再进行make就好了。具体操作如下:
解压后找到JSVM文件夹,将文件全部复制到虚拟机
打开终端,进入jsvm->JSVM->H264Extension->build->linux,进行make
这样就安装好了
编码尝试
首先尝试单层编码模式,回到jsvm目录下,进入bin文件夹,新建文档,我命名为one_level.cfg,打开文档,复制配置信息,具体如下:
# JSVM Configuration File in AVC mode
#====================== GENERAL ================================================ AVCMode 1 # must be one for AVC simulations InputFile input.yuv # input file OutputFile stream.264 # bitstream file ReconFile rec.yuv # reconstructed file SourceWidth 352 # input frame width SourceHeight 288 # input frame height FrameRate 25.0 # frame rate [Hz] FramesToBeEncoded 300 # number of frames
#====================== CODING ================================================= SymbolMode 1 # 0=CAVLC, 1=CABAC Enable8x8Transform 1 # 8x8 luma trafo (0:diabled, 1:enabled) ConstrainedIntraPred 0 # constrained intra prediction (0:off, 1:on) ScalingMatricesPresent 1 # scaling matrices (0:flat, 1:default) BiPred8x8Disable 0 # disable bi-predicted blocks smaller than 8x8 MCBlocksLT8x8Disable 0 # blocks smaller than 8x8 are disabled BasisQP 31 # Quantization parameters
#====================== STRUCTURE ============================================== DPBSize 16 # decoded picture buffer in frames NumRefFrames 16 |