MWCapture SDK Linux
3.3.1.LAST_SVN_COMMIT_NUM
|
Functions | |
MW_MP4_API mw_mp4_handle_t | mw_mp4_open (const char *p_path) |
MW_MP4_API mw_mp4_status_t | mw_mp4_set_video (mw_mp4_handle_t handle, const mw_mp4_video_info_t *p_info) |
MW_MP4_API mw_mp4_status_t | mw_mp4_set_audio (mw_mp4_handle_t handle, const mw_mp4_audio_info_t *p_info) |
MW_MP4_API mw_mp4_status_t | mw_mp4_set_subtitle (mw_mp4_handle_t handle, const mw_mp4_subtitle_info_t *p_info) |
MW_MP4_API mw_mp4_status_t | mw_mp4_write_video (mw_mp4_handle_t handle, const uint8_t *p_stream, uint32_t size, uint64_t timestamp) |
MW_MP4_API mw_mp4_status_t | mw_mp4_write_audio (mw_mp4_handle_t handle, const uint8_t *p_stream, uint32_t size, uint64_t timestamp) |
MW_MP4_API mw_mp4_status_t | mw_mp4_write_subtitle (mw_mp4_handle_t handle, const uint8_t *p_stream, uint32_t size, uint64_t timestamp) |
MW_MP4_API mw_mp4_status_t | mw_mp4_close (mw_mp4_handle_t handle) |
MW_MP4_API mw_mp4_status_t | mw_mp4_repair (const char *p_path, bool del) |
MW_MP4_API mw_mp4_status_t mw_mp4_close | ( | mw_mp4_handle_t | handle | ) |
close an opened MP4 file handle
handle | mp4 file handle |
MW_MP4_API mw_mp4_handle_t mw_mp4_open | ( | const char * | p_path | ) |
create a handle to mux video/audio/subtitle stream to mp4 file
p_path | the output file path |
MW_MP4_API mw_mp4_status_t mw_mp4_repair | ( | const char * | p_path, |
bool | del | ||
) |
repair a broken file
p_path | the broken file path |
del | automatic delete the redundancy file if repair succeeded. |
MW_MP4_API mw_mp4_status_t mw_mp4_set_audio | ( | mw_mp4_handle_t | handle, |
const mw_mp4_audio_info_t * | p_info | ||
) |
set audio stream information, support codec aac
handle | mp4 handle. |
p_info | audio stream information. |
MW_MP4_API mw_mp4_status_t mw_mp4_set_subtitle | ( | mw_mp4_handle_t | handle, |
const mw_mp4_subtitle_info_t * | p_info | ||
) |
set subtitle(closed caption) stream information, support EIA-608 and EIA-708
handle | mp4 handle. |
p_info | subtitle(closed caption) stream information. |
MW_MP4_API mw_mp4_status_t mw_mp4_set_video | ( | mw_mp4_handle_t | handle, |
const mw_mp4_video_info_t * | p_info | ||
) |
set video track information, support codec H.264 and HEVC.
handle | mp4 handle. |
p_info | video stream information. |
MW_MP4_API mw_mp4_status_t mw_mp4_write_audio | ( | mw_mp4_handle_t | handle, |
const uint8_t * | p_stream, | ||
uint32_t | size, | ||
uint64_t | timestamp | ||
) |
write an audio frame to mp4 file
handle | mp4 handle |
p_stream | audio frame data |
size | audio frame size |
timestamp | audio frame timestamp |
MW_MP4_API mw_mp4_status_t mw_mp4_write_subtitle | ( | mw_mp4_handle_t | handle, |
const uint8_t * | p_stream, | ||
uint32_t | size, | ||
uint64_t | timestamp | ||
) |
write a subtitle(closed caption) frame to mp4 file
handle | mp4 handle |
p_stream | subtitle frame data |
size | subtitle frame size |
timestamp | subtitle frame timestamp |
MW_MP4_API mw_mp4_status_t mw_mp4_write_video | ( | mw_mp4_handle_t | handle, |
const uint8_t * | p_stream, | ||
uint32_t | size, | ||
uint64_t | timestamp | ||
) |
write a video frame to mp4 file.
handle | mp4 handle. |
p_stream | video frame data |
size | video frame size |
timestamp | video frame timestamp |