MP4 Multiplexing Functions
The 819 SDK was designed to be as flexible as possible for end users. Some users may want to save
the encoded data to the .MP4 (ISO/IEC 14496-14) file format. A separate optional DLL, sraymp4.dll,
is provided for this. The functions for writing .mp4 files are described below. Sraymp4.dll is licensed
for use only with Sensoray products.
mp4_writer_create
MP4API muxer_handle MP4CC mp4_writer_create();
Creates an instance of the mp4 muxer.
mp4_delete
MP4API void MP4CC mp4_delete(muxer_handle mux);
Deletes instance of mp4 muxer.
mp4_file_pointer
MP4API void MP4CC mp4_file_pointer(muxer_handle mux, FILE *file);
Gives file pointer to write mp4 file to. File handle should be opened as read-writable.
mp4_file_name_ascii
MP4API void MP4CC mp4_file_name_ascii(muxer_handle mux, char *fname);
Gives file name to write mp4 file to. File will be created by the DLL. Only one of mp4_file_pointer,
mp4_file_name_ascii or mp4_file_name_unicode should be used.
mp4_file_name_unicode
MP4API void MP4CC mp4_file_name_ascii(muxer_handle mux, wchar_t
*fname);
Unicode version. Gives file name to write mp4 file to. File will be created by the DLL. Only one of
mp4_file_pointer, mp4_file_name_ascii or mp4_file_name_unicode should be used.
mp4_video_track_create
MP4API unsigned int MP4CC mp4_video_track_create(muxer_handle mux,
unsigned int fourcc, unsigned int timebase, unsigned int
default_duration, unsigned int empty_edit_duration, unsigned int
width, unsigned int height, unsigned int profileIDC, unsigned int
levelIDC);
13
Comentarios a estos manuales