# RAW Cutter Application¶

The Application allows to cut RAW files.

The source code is located in metavision_raw_cutter folder within HAL module. 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.

## 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 software 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:

Linux

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


Windows

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


To check for additional options:

Linux

metavision_raw_cutter -h


Windows

metavision_raw_cutter.exe -h