Sensoray 819 Windows SDK User Manual

Page 14

Advertising
background image

Create video track for mp4 file. Fourcc should be 'avc1' (use UUID provided in header or in C#
wrapper). timebase is normally 90000. default_duration depends on the frame rate and the video
system. It is in units of the timebase. For example PAL 25fps would have a duration of 3600. NTSC
would have a duration of 3003. The empty_edit_duration may be set to 0. The width and height are
set based on the chosen resolution. profileIDC and levelIDC should be set to 100 and 31 respectively.
Returns the video track number to use as parameter to mp4_write_track.

mp4_write_track

MP4API unsigned int MP4CC mp4_write_track(muxer_handle mux, unsigned
int trackno, unsigned char *buf, unsigned int len, unsigned int
duration);

Writes data for the video track. Duration is usually the same as the default duration used in creating
the track (3600 for 25fps PAL).

mp4_write_movie

MP4API unsigned int MP4CC mp4_write_movie(muxer_handle mux)

Writes the mp4 moov atom after creating tracks. Call when done writing the mp4 file and before
calling mp4_delete.

14

Advertising