MP4(3)

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

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

okay bestie, welcome to MP4(3), the manual for the MP4 File Format Library. this page is specifically about one little function and honestly? she's iconic. let's get into it ✨


✨ NAME ✨

MP4GetTrackEditStart β€” get the start time of a track edit segment 🎬


🌸 SYNTAX 🌸

#include <mp4.h>

MP4Timestamp MP4GetTrackEditStart(
     MP4FileHandle hFile,
     MP4TrackId trackId,
     MP4EditId editId
)

look at her. clean. no notes. πŸ’…


πŸŽ€ ARGUMENTS πŸŽ€

  • hFile β€” tells us which mp4 file we're doing the operation on. the whole vibe lives in here πŸ—‚οΈ
  • trackId β€” which track the operation applies to. pick your girl πŸ‘‘
  • editId β€” the specific edit segment you want the start time for. this is the one you're clocking ⏰

πŸ¦‹ RETURN VALUES πŸ¦‹

she gives you back the start time of the edit segment, measured in track time scale units of the track in the mp4 file. no cap, that's the unit. periodt. πŸ’–


🌈 DESCRIPTION 🌈

MP4GetTrackEditStart returns the start time of the specified track edit segment, in the timeline of the track edit list. 🎞️

⚠️ Caveat bestie, listen up: the value is in units of the track time scale. not seconds, not milliseconds, the track time scale. do not forget this, i'm begging πŸ™ˆ

also important: this is NOT the same thing as the edit segment media start time, which is MP4GetTrackEditMediaStart(). two different girls, two different jobs. here's an example so it actually clicks:

EditId    Start     MediaStart     Duration
1         0         15             30
2         30        120            20
3         50        3000           10

see how Start and MediaStart are just... not the same numbers? yeah. that's the whole point. πŸ”₯


πŸ’œ SEE ALSO πŸ’œ

  • MP4(3)
  • MP4SetTrackEditStart(3)

go read those too, they're her sisters 🫢


sign-off time 🌸 this little masterpiece is brought to you by Cisco Systems Inc., and it's Version 0.9 of the MP4(3) manual. mwah, love that for us. go forth and get those track edit start times, bestie πŸ’–βœ¨πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from