CedarX/Encoder

The CedarX unit comes with an encoder subengine. In order to use the hardware encoder you need the licedarv proprietary library.

Requirements/Steps

 * 1) Having a linux-sunxi kernel with sunxi_mem driver support. See this.
 * 2) Get the lastest sunxi-armhf libcedarv binaries. Add them to your LD_LIBRARY_PATH.
 * 3) Get the encoder example from here or here.
 * 4) make. (Currently, the video resolution and the output codec are still hardcoded in the examples.)
 * 5) ./encDemo nv12inputfile outputfile (input file must be in NV12 format. Use: ffmpeg -i original_inputfile -vf pad="trunc((iw+31)/32)*32" -pix_fmt nv12 -f rawvideo nv12inputfile).