3.2.6 vio2encoder Sample Introduction
Sample Overview
vio2encoder is a C language interface development code sample located in the /app/cdev_demo directory, demonstrating how to open the camera using C language and encode the data collected by the camera. By referring to this sample, users can understand and develop related applications.
Effect Demonstration
vio2encoder is a sample that generates video streams. For example, after executing ./vio2encoder -w 1920 -h 1080 --iwidth 1920 --iheight 1080 -o stream.h264, a stream.h264 file will be generated in the current directory.
root@ubuntu:/app/cdev_demo/vio2encoder# tree
.
├── Makefile
├── stream.h264
├── vio2encoder
├── vio2encoder.c
└── vio2encoder.o
Hardware Preparation
Hardware Connection
This sample requires a camera, here using the standard IMX219 for connection.

Quick Start
Code and Board Location
root@ubuntu:/app/cdev_demo/vio2encoder# tree
.
├── Makefile
└── vio2encoder.c