Table of Contents

VIM1 Hardware Encoding

Introduction

This document mainly introduces Hardware Encoding. You will learn how to use h264 encoding and h265 encoding.

2022/07/06 10:08

System Configuration

Please make sure you use the latest image, if not please follow Upgrade The System to upgrade your system.

2022/07/06 10:08

H264 Hardware Encoding

$ h264EncoderDemo  1080p.nv21    1080p.h264 1920 1080 10 30 2000000 2000 1

The encoded file is 1080p.h264.

Get help information

$ h264EncoderDemo
Amlogic AVC Encode API
 usage: output [srcfile][outfile][width][height][gop][framerate][bitrate][num][fmt]
  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 0:nv12 1:nv21 2:yv12 3:rgb888 4:bgr888
2022/07/06 10:08

Library Source Code

2022/07/06 10:08