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

NAME

6       MP4CloneTrack - Make a clone of a specified track
7

SYNTAX

9       #include <mp4.h>
10
11       MP4TrackId MP4CloneTrack(
12            MP4FileHandle srcFile,
13            MP4TrackId srcTrackId,
14            MP4FileHandle dstFile = MP4_INVALID_FILE_HANDLE,
15            MP4TrackId dstHintTrackReferenceTrack = MP4_INVALID_TRACK_ID
16       )
17

ARGUMENTS

19       srcFile
20              Specifies the mp4 file of the source track of the operation.
21
22       srcTrackId
23              Specifies the track id of the track to be cloned.
24
25       dstFile
26              Specifies the mp4 file of the new, cloned track. If the value is
27              MP4_INVALID_FILE_HANDLE, the new track is created  in  the  same
28              file as the source track.
29
30       dstHintTrackReferenceTrack
31              When cloning a hint track, this parameter specifies the track id
32              of the reference track in the destination file.
33

RETURN VALUES

35       Upon  success,  the  track  id  of  the  new  track.  Upon  an   error,
36       MP4_INVALID_TRACK_ID.
37
38

DESCRIPTION

40       MP4CloneTrack  creates  a new track to an mp4 file that is a copy of an
41       existing track with respect to the track media type, and other  control
42       information.
43
44       Note  this function does not copy the media samples of the source track
45       to the new track. If you want to do that use MP4CopyTrack() instead.
46
47
48

SEE ALSO

50       MP4(3) MP4CopyTrack(3)
51
52
53
54Cisco Systems Inc.                Version 0.9                           MP4(3)
Impressum