MP4(3)

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

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

okay bestie, we're in the <mp4.h> cinematic universe today and the vibe is: we are getting the video height in pixels of a track. yes. that's the whole thing. she's niche but she's iconic πŸ’…

🌸 NAME 🌸

MP4GetTrackVideoHeight β€” Get the video height in pixels of the specified video track πŸŽ€

✨ SYNTAX ✨

#include <mp4.h>

u_int16_t MP4GetTrackVideoHeight(
     MP4FileHandle hFile,
     MP4TrackId trackId
)

🫢 ARGUMENTS 🫢

  • hFile β€” Specifies the mp4 file to which the operation applies. (which file are we doing this to, bestie)
  • trackId β€” Specifies the track for which the video height is desired. (which track tho)

πŸ‘‘ RETURN VALUES πŸ‘‘

  • On success, you get the number of pixels of the video height in the track. slay.
  • On error, you get 0. πŸ’€

πŸ”₯ DESCRIPTION πŸ”₯

MP4GetTrackVideoWidth returns the height of the video in pixels in the specified track in the mp4 file. (not me noticing that the manpage says MP4GetTrackVideoWidth here, but okay, we're just relaying the lore fr fr πŸ™ˆ)

Caveat, and this one matters: not all mp4 implementations set this value accurately. The mp4 specification states that the authoritative values are contained in the track ES configuration which is video encoding specific, and hence not interpretable by the mp4 library. So if you get 240 back, please care should be taken to verify the accuracy of this value, because 240 is the default value in the mp4 specification. don't let a default gaslight you into thinking that's your real height, no cap 🚩

πŸ’œ SEE ALSO πŸ’œ

MP4(3) Β· MP4GetTrackVideoWidth(3) Β· MP4GetTrackESConfiguration(3)


and that's the whole page, bestie β€” brought to you by Cisco Systems Inc., Version 0.9, from the MP4(3) manual itself. go forth and check your heights, but verify them first πŸ¦‹βœ¨πŸ’–

πŸ“¦ where this page comes from