MP4(3)
โจ NAME โจ
okay bestie, this is the MP4(3) page from the MP4 File Format Library ๐ and it's giving "let's add up some edit segments" energy.
MP4GetTrackEditTotalDuration โ get the total duration of a sequence of track edit segments. ๐ฌ
๐ ๏ธ SYNTAX ๐ ๏ธ
#include <mp4.h>
MP4Duration MP4GetTrackEditTotalDuration(
MP4FileHandle hFile,
MP4TrackId trackId,
MP4EditId editId = MP4_INVALID_EDIT_ID
)
๐ซถ ARGUMENTS ๐ซถ
hFileโ tells the function whichmp4file we're operating on. like, the file to which the operation applies. ๐trackIdโ the track we're doing the thing to. the track to which the operation applies. ๐ตeditIdโ the edit segment whose total duration you want. if you passMP4_INVALID_EDIT_ID, that's the signal to include all edit segments, no leaving anyone out. ๐ซ
๐ RETURN VALUES ๐
you get back the total duration of the edit segment sequence, in track time scale units of the track in the mp4 file. that's the unit, bestie, don't mix it up. ๐
๐ DESCRIPTION ๐
MP4GetTrackEditTotalDuration returns the total duration of the specified sequence of track edit segments, starting from the first edit segment and going up to and including the specified edit segment. so it's inclusive, periodt. ๐งฎ
if the edit id value is MP4_INVALID_EDIT_ID, then it returns the total duration of all of the edit segments. the whole crew. ๐
โ ๏ธ Caveat: the value is in units of the track time scale. do not forget this, bestie. seriously. ๐ฅ
๐ SEE ALSO ๐
Cisco Systems Inc. โข Version 0.9 โข MP4(3) โ that's the footer sign-off, mwah ๐ โจ
๐ฆ where this page comes from
- fedora 43: libmp4v2-devel 2.1.0-0.34.trunkREV507.fc43 ยท LicenseRef-Callaway-MPLv1.1
- fedora 43: libmp4v2-devel 2.1.0-0.34.trunkREV507.fc43 ยท LicenseRef-Callaway-MPLv1.1
- fedora 44: libmp4v2-devel 2.1.0-0.35.trunkREV507.fc44 ยท LicenseRef-Callaway-MPLv1.1
- fedora 44: libmp4v2-devel 2.1.0-0.35.trunkREV507.fc44 ยท LicenseRef-Callaway-MPLv1.1
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms