The xvc source code consists of libraries for encoding and decoding. The encoding library and decoding library each comes with an API for integration into various systems. The xvc source code also includes demo applications for encoding and decoding. The applications are command line executables, and lists of command line options are presented if the applications are run without any arguments.
Encoding
The following is an example command line for encoding a raw YUV sequence using an intra picture interval of 256 pictures:
xvcenc -input-file test.yuv -input-width 1920 -input-height 1080 -input-bitdepth 8 -input-chroma-format 1 -framerate 25 -qp 28 -output-file test.xvc –max-keypic-distance 256 -verbose 1
Decoding
The following is an example command line for decoding an encoded xvc bitstream and storing the decoded yuv in dec.yuv:
xvcdec -bitstream-file test.xvc -output-file dec.yuv
Realtime playback
A simple approach for rendering the output of the xvc decoder is to pipe the output data to ffplay. This could for example be performed with the following command line (assuming ffplay is available in the path):
xvcdec -bitstream-file test.xvc -output-file – | ffplay -i –