Compute the duration of a stream, based on PCR or input timestamps.
More...
#include <tsDurationAnalyzer.h>
Compute the duration of a stream, based on PCR or input timestamps.
◆ DurationAnalyzer()
Constructor.
- Parameters
-
[in,out] | report | Where to report messages when switching sources. |
[in] | severity | Severity of the messages when switching sources. |
◆ useInputTimestamps()
void ts::DurationAnalyzer::useInputTimestamps |
( |
bool |
prefer_timestamps | ) |
|
|
inline |
Select the prefered method for duration evaluation.
- Parameters
-
[in] | prefer_timestamps | If true, use input timestamps when possible. Fallback to PCR analysis if the input timestamps are not valid or not monotonic. If false, always use PCR analysis, ignore timestamps. |
◆ feedPacket()
The following method feeds the analyzer with a TS packet.
- Parameters
-
[in] | pkt | A new transport stream packet. |
[in] | mdata | Associated metadata, including the input timestamp. |
◆ duration()
PCR ts::DurationAnalyzer::duration |
( |
| ) |
const |
|
inline |
Get the estimated playout duration in PCR units.
- Returns
- The estimated playout duration in PCR units.
The documentation for this class was generated from the following file: