MP4(3)
π 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 get240back, please care should be taken to verify the accuracy of this value, because240is 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
- 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