MP4(3)

πŸ“¦ version 2.1.0, in fedora 43, fedora 44

πŸ’– MP4(3) β€” MP4 File Format Library πŸ’–

✨ NAME ✨

okay so bestie, say hi to MP4GetTrackFixedSampleDuration β€” Get the fixed duration of samples in a track. she's the one you call when you need that fixed-duration tea, periodt. πŸŽ€

πŸ› οΈ SYNTAX πŸ› οΈ

       #include <mp4.h>

       MP4Duration MP4GetTrackFixedSampleDuration(
            MP4FileHandle hFile,
            MP4TrackId trackId
       )

🫢 ARGUMENTS 🫢

  • hFile β€” Specifies the mp4 file to which the operation applies. so, like, which file are we doing this to? πŸ’–
  • trackId β€” Specifies the track to which the operation applies. and this one says which track. ✨

πŸ’… RETURN VALUES πŸ’…

Upon success, the number of fixed duration of the samples in the track in track time scale units. Upon an error, MP4_INVALID_DURATION. so if it ate, you get the number; if it didn't, you get MP4_INVALID_DURATION. 😭

🌸 DESCRIPTION 🌸

MP4GetTrackFixedSampleDuration returns the duration of samples in the specified track in the mp4 file, if this value is fixed for all samples. This is typically the case for audio tracks and video tracks. If the track samples have variable duration, then MP4_INVALID_DURATION is returned. lowkey obsessed with the fixed-duration audio/video moment, but highkey not the vibe when durations are variable. πŸ¦‹

πŸ‘‘ SEE ALSO πŸ‘‘

MP4(3)


shoutout to Cisco Systems Inc. for this Version 0.9 moment, and the manual page is MP4(3). mwah πŸ’‹

πŸ“¦ where this page comes from