MP4(3)
β¨ NAME β¨
MP4GetTrackEditMediaStart β bestie, this is the one that gets the media start time of a track edit segment π
So like, if you're poking around in the MP4 File Format Library (that's the MP4(3) manual, section 3, iykyk) and you need to know where a track edit segment's media actually starts? Yeah. This is her. π
πΈ SYNTAX πΈ
#include <mp4.h>
MP4Timestamp MP4GetTrackEditMediaStart(
MP4FileHandle hFile,
MP4TrackId trackId,
MP4EditId editId
)
Okay so the way that you just include <mp4.h> and then call her with three little arguments and she hands you back an MP4Timestampβ¦ we love a low-effort, high-reward function fr fr π«Ά
π ARGUMENTS π
hFileβ this is the mp4 file the operation applies to. Like, which file are we even doing this to, bestie. Specify it here. πtrackIdβ the track the operation applies to. Every track's got an id and you gotta tell her which one you're obsessed with. π¦editIdβ the edit segment you want the media start time for. Not the track, not the file β the specific edit segment. Main character of this particular call. β
π RETURN VALUES π
She returns the media start time of the edit segment, in track time scale units of the track in the mp4 file. πβ¨
Not seconds. Not milliseconds. Track time scale units. Do not come for me about this later, I warned you.
π DESCRIPTION π
MP4GetTrackEditMediaStart returns the media start time of the of the specified track edit segment. (Yes the original says "of the of the" β iconic typo, we're keeping her exactly as she is, no cap. π)
Caveat: the value is in units of the track time scale. So like, if you were expecting a nice friendly wall-clock numberβ¦ no babe. Track time scale units, periodt. π
Also β and this is the part people always get twisted β this is not the same thing as the edit segment start time, MP4GetTrackEditStart(). Two completely different girls. Do not mix them up. π
For example:
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. Start is where the edit sits, MediaStart is where the media actually lives. Different vibes entirely. π
π§ SEE ALSO π§
And that's the whole page, bestie!! This lil masterpiece of documentation came to you from Cisco Systems Inc. at Version 0.9, and honestly? She ate. Go forth and call your function. ππ₯
π¦ where this page comes from
- fedora 43: libmp4v2-devel 2.1.0-0.34.trunkREV507.fc43 Β· LicenseRef-Callaway-MPLv1.1
- fedora 43: libmp4v2-devel 2.1.0-0.34.trunkREV507.fc43 Β· LicenseRef-Callaway-MPLv1.1
- fedora 44: libmp4v2-devel 2.1.0-0.35.trunkREV507.fc44 Β· LicenseRef-Callaway-MPLv1.1
- fedora 44: libmp4v2-devel 2.1.0-0.35.trunkREV507.fc44 Β· LicenseRef-Callaway-MPLv1.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms