DriveWorks SDK Reference
3.5.78 Release
For Test and Development only

LRAW Preview Extraction Tool

This tool is available on the x86 Host System and NVIDIA DRIVE OS Linux.

The NVIDIA® DriveWorks LRAW Preview Extract tool extracts the encoded H.264 lossy preview data in lraw2.0 file and outputs to a file.

Every thirtieth frame (1 FPS) in an LRAW2.0 file contains lossy encoded Preview data. This data can be used for quick preview of contents. LRAW2.0 file format defines these encoding types:

  • Lossless compression of Raw RCCB camera input using h264 Lossless Hi444 Profile(244). This is decompressed and played out by all sample applications like sample_camera_replay.
  • Lossy compression of YUV420 preview frame provided by camera, downscaled to 720p and compressed in h264 lossy mode. We encode 1 in 30 preview frames and embed it in .lraw file for quick preview. This utility extractLRawPreview, parses the lraw file and extracts the embedded preview data in that and dumps it to a file, so it can be decoded offline and seen through any h264 player.
Note
SW Release Applicability: This tool is available in both NVIDIA DriveWorks and NVIDIA DRIVE Software releases.

Input Arguments

This tool supports following arguments:

--inputfile=<input.lraw file>       The fullpath of the input lraw recording in LRAW V2 format.
--outputfile=<outputfile.h264>      The fullpath of the output preview data in h264 format.

Running the Tool

The usage is ./extractLRawPreview, for which the preview data is extracted from the provided LRAW input.

./extractLRawPreview --inputfile=<input.lraw file> --outputfile=<outputfile.h264>