This tool is available on the x86 Host System and NVIDIA DRIVE™ OS Linux.
A tool for clipping recorded data. Allows to cut information from input recordings based on given timestamp or event range.
./chop [--config=path_to_json_config_file] [--camera=path_to_camera_data] [--camera-out=output_path] [--timestamp_file=path_to_file_containing_timestamps] [--gps=path_to_gps_data] [--gps-out=output_path] [--imu=path_to_imu_data] [--imu-out=output_path] [--can=path_to_can_data] [--can-out=output_path] [--lidar=path_to_lidar_data] [--lidar-out=output_path] [--radar=path_to_radar_data] [--radar-out=output_path] [--timestamp_start=start_timestamp_value] [--timestamp_end=end_timestamp_value] [--event_start=start_event_index] [--event_end=end_event_index] [--num_events=number_of_events_to_capture] [--force-create-seek] [--disable-output-verification] [--ignore-missing-timestamp]
./chop --camera=/path_to_video --timestamp_file=/path_to_existing_timestamp_file --num_events=20 Capture the first 20 frames from provided video. Cut associated timestamp file. ./chop --camera=/path_to_video.h264 --ignore-missing-timestamp --num_events=20 Capture the first 20 frames from provided video. Force cut of the video file only and ignore missing timestamp file. ./chop --lidar=/lidar_file --radar=/radar_file --timestamp_start=1506453354917264 Cut all lidar and radar packets starting timestamp 1506453354917264 to the end of the stream. ./chop --can=/can_file --timestamp_start=1506453354917264 --num_events=50 Chop 50 can messages starting from timestamp 1506453354917264. ./chop --imu=/imu_file --event_start=10 --event_end=11 Capture events 10 and 11. ./chop --imu=/imu_file --event_start=10 --event_end=11 --num_events=20 Capture 20 events from event 10. --event_end argument is ignored. ./chop --config=/path_to_config_file Chop recordings listed in provided config file, or create template config if specified file does not exist.
Template configuration file looks like:
Parameters provided in configuration file are always primary with respect to those specified in command line. That means if the range specified in both command line and configuration file the latter are chosen even if they incorrect or zero. Thus if you want to use first variant then completely remove corresponding sections from json config.