ILMDVRSource::GetTimedFragmentAlignment

Summary

Takes the user-supplied byte range and scans for transport fragment boundaries.

Syntax

#include "ILMDVRSource.h"

Language Syntax
C HRESULT ILMDVRSource_GetTimedFragmentAlignment(pILMDVRSource, startOffset, endOffset, timeThreshold, pAlignedStartOffset, pAlignedEndOffset, pAlignedDuration)
C++ HRESULT GetTimedFragmentAlignment(startOffset, endOffset, timeThreshold, pAlignedStartOffset, pAlignedEndOffset, pAlignedDuration)

Parameters

ILMDVRSource *pILMDVRSource

Pointer to an ILMDVRSource interface.

double startOffset

(input) Specifies the byte offset at which to begin scanning for transport fragments.

double endOffset

(input) Specifies the byte offset at which to stop scanning for transport fragments.

double endOffset

(input) Specifies the byte offset at which to stop scanning for transport fragments.

double *pAlignedStartOffset

(output) A pointer to a double variable, storing the offset of the start of the first transport fragment found.

double *pAlignedEndOffset

(output) A pointer to a double variable, storing the offset of the end of the last transport fragment.

double *pAlignedDuration

(output) A pointer to a double variable, storing the time (in seconds), of the transport fragments found.

Returns

Value Meaning
S_OK No error.
S_FALSE No transport fragment found: pAlignedStartOffset and pAlignedEndOffset are equal to startOffset, and indicate an empty search.

Comments

Use this function along with ILMDVRSource::CopyBufferToFile to save a completely intact MPEG transport fragment.

Set up the MPEG multiplexer used for recording to DVR by calling put_OutputType(Mpg2MxT_OutputType_HLS). Doing so guarantees that fragment boundaries start with synchronization frames. Specify the boundary time interval by calling put_ResyncInterval(intervalTime).

Required DLLs and Libraries

Platforms

Win32, x64.

See Also

Functions

Topics

Example

Language Example
C++ ILMDVRSource::GetTimedFragmentAlignment
Help Version 23.0.2024.2.29
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2024 LEAD Technologies, Inc. All Rights Reserved.

LEADTOOLS Multimedia C API Help
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2023 LEAD Technologies, Inc. All Rights Reserved.