MP4(3)

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

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

okay so welcome to the MP4(3) page, part of the MP4 File Format Library β€” yes it's a section 3 man page, yes it's about edit segments, and yes we're gonna make it make sense 🌸


✨ NAME ✨

MP4GetTrackNumberOfEdits β€” get the number of edit segments for a track. that's it. that's the whole job. and it does it flawlessly πŸ’…


✨ SYNTAX ✨

#include <mp4.h>

u_int32_t MP4GetTrackNumberOfEdits(
     MP4FileHandle hFile,
     MP4TrackId trackId
)

look at her. clean. no cap. include <mp4.h> and you're already halfway there πŸ¦‹


✨ ARGUMENTS ✨

  • hFile β€” the mp4 file you want the operation to apply to. like, which file are we talking about, bestie? this one 🫢
  • trackId β€” the track whose number of edit segments you're dying to know. point at the track, get the count. simple as that πŸ’–

✨ RETURN VALUES ✨

  • slay era: on success you get back the number of edit segments for the track. πŸŽ€
  • not slay era: on an error you get 0. that's the whole "something went wrong" signal. periodt. 😭

✨ DESCRIPTION ✨

MP4GetTrackNumberOfEdits returns the number of edit segments in the specified track in the mp4 file. literally exactly what it says on the tin 🧚

and here's the iconic part β€” the edit id's are the consecutive sequence of numbers from 1 to the total number of edit segments. that means 1-based indexing, not 0-based indexing. i know. i KNOW. not a single 0 in sight. she's quirky like that πŸ’€

bestie reminder: if you're looping over edit ids, start at 1 and go up to the total. start at 0 and you will simply be lost in the sauce πŸ™ˆ

✨ SEE ALSO ✨

go read those too, they're all in the same friend group 🌈


and that's the page!! brought to you by Cisco Systems Inc., Version 0.9 of the MP4(3) man page β€” mwah, take care of her, she's iconic πŸ’œπŸ‘‘β­

πŸ“¦ where this page comes from