1MP4(3) MP4 File Format Library MP4(3)
2
3
4
6 MP4FileInfo - Return a textual summary of an mp4 file
7
9 #include <mp4.h>
10
11 char* MP4FileInfo(
12 const char* mp4FileName,
13 MP4TrackId trackId = MP4_INVALID_TRACK_ID
14 );
15
16
18 hFile
19 Specifies the name of the mp4 file to which the operation
20 applies.
21
22 trackId
23 Specifies a track for which a summary is desired. If the value
24 is MP4_INVALID_TRACK_ID, the summary info is created for all
25 tracks in the mp4 file.
26
27
29 Upon success, a malloc'ed string containing the summary info. Upon an
30 error, NULL.
31
33 MP4FileInfo provides a string that contains a textual summary of the
34 contents of an mp4 file. This includes the track id's, the track type,
35 and track specific information. For example, for a video track, media
36 encoding, image size, frame rate, and bitrate are summarized.
37
38 Note that the returned string is malloc'ed, so it is the caller's
39 responsibility to free() the string to prevent memory leaks. Also note
40 that the returned string contains newlines and tabs which may or may
41 not be desirable.
42
43 The following is an example of the output of MP4Info():
44
45 Track Type Info
46 1 video MPEG-4 Simple @ L3, 119.625 secs, 1008 kbps, 352x288 @
47 24.00 fps
48 2 audio MPEG-4, 119.327 secs, 128 kbps, 44100 Hz
49 3 hint Payload MP4V-ES for track 1
50 4 hint Payload mpeg4-generic for track 2
51 5 od Object Descriptors
52 6 scene BIFS
53
54
56 MP4(3) MP4Info(3)
57
58
59
60Cisco Systems Inc. Version 0.9 MP4(3)