RAW Cutter Application¶
The Application allows to cut RAW files.
The source code is installed in <install-prefix>/share/metavision/hal/apps/metavision_raw_cutter/metavision_raw_cutter.cpp 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 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 the file from Metavision Dataset), 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: