MP4(3)

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

MP4(3) β€” the MP4 File Format Library, bestie edition πŸŽ€

okay so we're in section 3, it's the MP4 File Format Library, and today's main character is a lil function called MP4SetTrackEditDuration. she sets the duration of a track edit segment. that's it, that's the vibe πŸ’…


✨ NAME ✨

MP4SetTrackEditDuration β€” set the duration of a track edit segment. no cap, that's literally her whole job 🫢


🌸 SYNTAX 🌸

#include <mp4.h>

bool MP4SetTrackEditDuration(
     MP4FileHandle hFile,
     MP4TrackId trackId,
     MP4EditId editId,
     MP4Duration duration
);

look at that signature. so clean. so iconic. ✨


πŸ¦‹ ARGUMENTS πŸ¦‹

  • hFile β€” the mp4 file we're doing the operation on. which file bestie, tell me which one πŸ’–
  • trackId β€” the track we're doing the operation on. which track, queen, be specific 🌈
  • editId β€” the edit segment we're doing the operation on. Caveat: the first edit has id 1 not 0. i know. i KNOW. she's quirky like that, do not come for her πŸ™ˆ
  • duration β€” the new value for the duration, in track time scale units. that's the units of the track's time scale, keep up bestie ⭐

πŸ’– RETURN VALUES πŸ’–

  • success? you get true (1). slay. she ate. πŸ‘‘
  • error? you get false (0). and she'll be like that sometimes πŸ’€

🧚 DESCRIPTION 🧚

okay so MP4SetTrackEditDuration sets the duration of the specified edit segment, from the specified track, in the track time scale units. periodt.

and if your value is coming from some other time scale and you're sitting there like "girl help 😭" β€” go check out MP4ConvertToTrackDuration(), she's the one who maps it over for you. no guessing, no vibes-based math, use the converter fr fr.


🌟 SEE ALSO 🌟


and that's the whole page bestie 🫢 this little love letter to edit durations comes to you from Cisco Systems Inc., Version 0.9, and she's been serving since way before we were born. go set some durations. i'm obsessed with you. bye πŸ’œβœ¨

πŸ“¦ where this page comes from