# RAW to CSV Sample¶

The sample in <install-prefix>/share/metavision/sdk/driver/samples/metavision_raw_to_csv/metavision_raw_to_csv.cpp shows how to use Metavision Core SDK pipeline utility to convert an event-based RAW file to a CSV formatted event-based file. It also shows how to customize an instance of Metavision::BaseStage to write to a file.

## Expected Output¶

The sample reads data from a RAW file and writes them to a CSV file to the provided path.

## How to start¶

First, compile the sample as described in this tutorial.

To start the sample based on recorded data, provide the full path to a RAW file (here, we use the file from Metavision Dataset):

Linux

./metavision_raw_to_csv -i spinner.raw


Windows

metavision_raw_to_csv.exe -i spinner.raw


./metavision_raw_to_csv -h

metavision_raw_to_csv.exe -h