MP4(3)

๐Ÿ“ฆ version 2.1.0, in fedora 43, fedora 44

โœจ 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 which mp4 file 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 pass MP4_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