MP4(3)

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

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

okay bestie, welcome to the MP4(3) page β€” yes that's the manual name, yes it's giving library-manpage royalty, and yes we're gonna have a good time. πŸ‘‘


✨ NAME ✨

MP4DeleteTrackEdit β€” Delete a track edit segment

like, it deletes an edit segment. that's the whole job. she's focused. πŸ’…


🌸 SYNTAX 🌸

#include <mp4.h>

bool MP4DeleteTrackEdit(
     MP4FileHandle hFile,
     MP4TrackId trackId,
     MP4EditId editId
)

look at her. four lines. flawless. no notes. ✨


πŸŽ€ ARGUMENTS πŸŽ€

  • hFile β€” the mp4 file you're doing this operation on. your main character file, if you will.
  • trackId β€” which track this operation applies to. pick your lane, queen. πŸ¦‹
  • editId β€” the edit segment that's getting deleted. say bye bestie 😭

🫢 RETURN VALUES 🫢

  • upon success β†’ true (1) πŸŽ‰ slay
  • upon an error β†’ false (0) πŸ’€ not slay

πŸ”₯ DESCRIPTION πŸ”₯

so MP4DeleteTrackEdit deletes the specified track edit segment. that's it. that's the function.

⚠️ okay but the tea here is IMPORTANT: since editId's form a sequence, deleting an editId will cause all edit segments with editId's greater than the deleted one to be reassigned to their editId minus one. so everyone downstream shifts up one spot. it's giving group chat when someone leaves and everyone's nickname in the list shifts. 😭

also β€” and this is the part that lowkey matters β€” deleting an edit segment does not delete any media samples. the samples stay. untouched. unbothered. main character energy. ✨


🌈 SEE ALSO 🌈

iykyk πŸ’œ


and that's the page, bestie!! this iconic lil doc comes to you from Cisco Systems Inc., rockin' Version 0.9 β€” go forth and delete those edit segments responsibly, and remember: shift the ids, keep the samples. periodt. πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from