MP4(3)

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

πŸ’– MP4AddRtpSampleData β€” it's giving "attach the media data to the RTP packet" ✨

okay bestie, so this is a page from the MP4 File Format Library manual, section 3 β€” and today's main character is MP4AddRtpSampleData. she adds media sample data to an RTP packet. that's literally the whole job description and she ate πŸ’…


🌸 NAME 🌸

MP4AddRtpSampleData β€” add media sample data to an RTP packet πŸŽ€


✨ SYNTAX ✨

#include <mp4.h>

bool MP4AddRtpSampleData(
     MP4FileHandle hFile,
     MP4TrackId hintTrackId,
     MP4SampleId sampleId,
     u_int32_t dataOffset,
     u_int32_t dataLength
);

yes the include is <mp4.h>, no she's not changing it, don't even ask 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • hFile β€” which mp4 file we're doing the operation on. that's your girl. the file in question πŸ’–
  • hintTrackId β€” the hint track this operation applies to. hint track said "me, I'm the one" πŸ‘‘
  • sampleId β€” the reference media sample id that the media data is gonna be pulled from. like, the source sample. the origin story 🌟
  • dataOffset β€” the byte offset inside that specified media sample where we start grabbing data for the current RTP packet. precision, periodt 🎯
  • dataLength β€” how many bytes of media data get included in the current RTP packet. length check, slay πŸ“

πŸ’€ RETURN VALUES πŸ’€

  • on success? true (1) β€” we love a happy ending πŸ˜­πŸ’–
  • on error? false (0) β€” not the vibe, but at least she's honest πŸ™ˆ

πŸ”₯ DESCRIPTION πŸ”₯

so MP4AddRtpSampleData adds a reference in the current pending RTP packet to the media data in the specified media sample of the reference media track.

🚨 the way that this is a reference, not a copy, of the media data. no duplicating, no photocopying, just pointing at the real thing. iykyk ✨

that's it. that's the function. she's small but she's important πŸ’…


🌈 SEE ALSO 🌈

  • MP4(3)
  • MP4AddRtpPacket (3)
  • MP4AddRtpImmediateData (3)

go read your sisters' pages, they're iconic too πŸ’œ


and that's the whole page bestie!! this manual page is brought to you by Cisco Systems Inc., running Version 0.9, and yes it's filed under MP4(3) β€” so when you cite her, cite her right. mwah πŸŽ€πŸ’–βœ¨πŸ¦‹

πŸ“¦ where this page comes from