MP4SetTrackEditMediaStart man page

MP4SetTrackEditMediaStart — Set the media start time of a track edit segment

Syntax

#include <mp4.h>

bool MP4SetTrackEditMediaStart(
MP4FileHandle hFile,
MP4TrackId trackId,
MP4EditId editId,
MP4Timestamp mediaStartTime
);

Arguments

hFile
Specifies the mp4 file to which the operation applies.
trackId
Specifies the track to which the operation applies.
editId
Specifies the edit segment to which the operation applies. Caveat: the first edit has id 1 not 0.
mediaStartTime
Species the new value for the media start in track time scale units.

Return Values

Upon success, true (1). Upon an error, false (0).

Description

MP4SetTrackEditMediaStart sets the media start time of the specified edit segment from the specified track in the track time scale units. See MP4ConvertToTrackTimestamp() for how to map this value from another time scale.

Note that this differs from the edit segment start time. For example:

EditIdStartMediaStartDuration
101530
23012020
350300010

See Also

MP4(3) MP4GetTrackEditMediaStart(3)

Referenced By

MP4GetTrackEditMediaStart(3).

Version 0.9 Cisco Systems Inc. MP4 File Format Library