1MP4(3)                      MP4 File Format Library                     MP4(3)
2
3
4

NAME

6       MP4Info - Return a textual summary of an mp4 file
7

SYNTAX

9       #include <mp4.h>
10
11       char* MP4Info(
12            MP4FileHandle hFile,
13            MP4TrackId trackId = MP4_INVALID_TRACK_ID
14       );
15
16

ARGUMENTS

18       hFile
19              Specifies the mp4 file to which the operation applies.
20
21       trackId
22              Specifies  a  track for which a summary is desired. If the value
23              is MP4_INVALID_TRACK_ID, the summary info  is  created  for  all
24              tracks in the mp4 file.
25
26

RETURN VALUES

28       Upon  success,  a malloc'ed string containing the summary info. Upon an
29       error, NULL.
30

DESCRIPTION

32       MP4Info provides a string that contains a textual summary of  the  con‐
33       tents of an mp4 file. This includes the track id's, the track type, and
34       track specific information. For  example,  for  a  video  track,  media
35       encoding, image size, frame rate, and bitrate are summarized.
36
37       Note  that  the  returned  string  is  malloc'ed, so it is the caller's
38       responsibility to free() the string to prevent memory leaks. Also  note
39       that  the  returned  string contains newlines and tabs which may or may
40       not be desirable.
41
42       The following is an example of the output of MP4Info():
43
44       Track   Type   Info
45       1       video  MPEG-4 Simple @ L3, 119.625 secs, 1008 kbps,  352x288  @
46       24.00 fps
47       2       audio  MPEG-4, 119.327 secs, 128 kbps, 44100 Hz
48       3       hint   Payload MP4V-ES for track 1
49       4       hint   Payload mpeg4-generic for track 2
50       5       od     Object Descriptors
51       6       scene  BIFS
52
53

SEE ALSO

55       MP4(3) MP4FileInfo(3)
56
57
58
59Cisco Systems Inc.                Version 0.9                           MP4(3)
Impressum