1MP4(3) MP4 File Format Library MP4(3)
2
3
4
6 MP4GetTrackVideoWidth - Get the video width in pixels of the specified
7 video track
8
10 #include <mp4.h>
11
12 u_int16_t MP4GetTrackVideoWidth(
13 MP4FileHandle hFile,
14 MP4TrackId trackId
15 )
16
18 hFile Specifies the mp4 file to which the operation applies.
19
20 trackId
21 Specifies the track for which the video width is desired.
22
24 Upon success, the number of pixels of the video width in the track.
25 Upon an error, 0.
26
28 MP4GetTrackVideoWidth returns the width of the video in pixels in the
29 specified track in the mp4 file.
30
31 Caveat: Not all mp4 implementations set this value accurately. The mp4
32 specification states that the authoritative values are contained in the
33 track ES configuration which is video encoding specific, and hence not
34 interpretable by the mp4 library. If the value of 320 is returned,
35 care should be taken to verify the accuracy of this value since this is
36 the default value in the mp4 specification.
37
39 MP4(3) MP4GetTrackVideoHeight(3) MP4GetTrackESConfiguration(3)
40
41
42
43Cisco Systems Inc. Version 0.9 MP4(3)