RAW Cutter Application

The Application allows to cut RAW files.

It shows how to use Metavision HAL API to cut a RAW file between “start” and “end” seconds. The given “start” and “end” times are offsets from the beginning of the RAW file and can be expressed as floating point numbers.

The source code of this sample can be found in <install-prefix>/share/metavision/hal/apps/metavision_hal_raw_cutter when installing Metavision SDK from installer or packages. For other deployment methods, check the page Path of Samples.

Expected Output

The application cuts the input RAW file and saves the edited outcome to the given path and given filename.

How to start

You can directly execute pre-compiled binary installed with Metavision Intelligence or compile the source code as described in this tutorial.

To start the pre-compiled executable based on recorded data, provide the full path to an input RAW file (here, we use a file from our Sample Recordings), the full path to the output RAW file, the “start” and “end” time to cut:


metavision_raw_cutter -i traffic_monitoring.raw -s 2 -e 10 -o output_cut.raw


metavision_raw_cutter.exe -i traffic_monitoring.raw -s 2 -e 10 -o output_cut.raw

To check for additional options:


metavision_raw_cutter -h


metavision_raw_cutter.exe -h