Table of contents
Introduction
This explanation assumes that the i-PRO camera application development environment has been completed.
If you are not ready to build the development environment, please refer to here to complete it.
Also, in this tutorial, the SDK installation directory is described as を${SDK_DIR}
.
Operation overview
mp4rec_app is a sample application that creates MP4 of video data.
External libraries required for operation
No special mention.
Directory path of the sample app
The C/C++ source code is stored below.
${SDK_DIR}/src/adamapp/mp4rec_app
The Python source code is stored below.
${SDK_DIR}/src/adamapp-py/mp4rec_app
How to build the sample app (C/C++)
Load the build environment settings file in the SDK installation directory.
$ cd ${SDK_DIR} $ source setup_env.sh ipro-ambaCV2X
Set the build environment according to each environment.
Here, specify ipro-ambaCV2X
.
make.
$ cd src/adamapp/mp4rec_app $ make
It is successful if the .ext file is created in ${SDK_DIR}/src/adamapp/mp4rec_app.
Install it on the camera (eg, you can install from the green frame in the image below). Select the created .ext file and install it.
Open the app screen (red frame button in the image below).
It is successful if a character string like the image below is displayed.
How to build the sample app (Python)
Load the build environment settings file in the SDK installation directory.
$ cd ${SDK_DIR} $ source setup_env.sh ipro-ambaCV2X
Set the build environment according to each environment.
Here, specify ipro-ambaCV2X
.
make.
$ cd src/adamapp-py/mp4rec_app $ make
It is successful if the .ext file is created in ${SDK_DIR}/src/adamapp-py/mp4rec_app.
Install it on the camera (eg, you can install from the green frame in the image below). Select the created .ext file and install it.
Open the app screen (red frame button in the image below).
It is successful if a character string like the image below is displayed.
How to use the sample app(C/C++ and Python)
■ Method using a TFTP server
By default, mp4 files are generated in the mp4 folder of the TFTP server (192.168.0.3). Build your own TFTP server.
Press Rec Start to start recording. Press Rec Stop to stop recording.
The mp4 folder is not created by the sample application, so please create an mp4 folder on the TFTP server manually in advance.
■ Method using an SD card
Next, set the SD card inserted in the camera to save mp4 files and run the sample application. Turn on "Ext. software mode" from the red frame below and press the Set button.
Back up the contents of the SD card in advance.
Press the AppPrefs button of the sample application from the ADAM OPERATION UI.
Uncheck "Send tftp Enable", apply and close.
Press Rec Start to start recording. Press Rec Stop to stop recording.
An mp4 file is generated in the {SD card mount volume}\adamapp\mp4rec_app\yyyymmdd folder.