Project

General

Profile

Actions

Support Request #955

closed

ADTF DAT File duration calculation

Added by hidden almost 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Customer:
DAIMLER
Department:
Requester's Priority:
Normal
Support Level:
2nd Level
Resolution:
No Customer Feedback
Product Issue Numbers:
Platform:
Windows 7 64bit
Topic:
StreamingLib::Reader
FAQ Links:

Description

Support issue:

We are using ADTF lib for unzipping and decode the ADTF data.

We are using GetTimeDuration() function to get the time duration of the recorded file.

We need to understand if the can stream is not available in the recorded data how the GetTimeDuration() function calculate the duration of the file.

Kind Regards / Mit freundlichen Grüßen / 宜しくお願いします
Jagpreet Singh,

Engineering Trucks & Buses, RD I/TBP
Advanced Driver Assistance System

Solution:

In the ADTF DAT File Header the Duration is been saved (see tFileHeader Struct Reference, ui64Duration).
The returned value is the Media Sample (Chunk) Timestamp of the Last Sample of each streams which the DAT File contains.
GetTimeDuration() returns the duration of the whole DAT File not for a single stream.
If you have a DAT file without any streams (?), then depends on if the file is created/recorded with ADTF and which offset or you created it with Streaming Lib and something went wrong.
Zero is usually not possible because each DAT File contains streams.

Actions

Also available in: Atom PDF