資源簡介
可以直接使用代碼進行MP4的封裝
代碼片段和文件信息
#include?“MP4File.h“
#include?
#include?
#define?MP4_TRUE?0
#define?MP4_FAULE?(-1)
void?Write_SPS(PT_MP4File?ptMP4File)
?{
MP4AddH264SequenceParameterSet(ptMP4File->Mp4File?ptMP4File->Mp4Video?ptMP4File->sps?ptMP4File->spsLen);
?}
?
void?Write_PPS(PT_MP4File?ptMP4File)
?{
MP4AddH264PictureParameterSet(ptMP4File->Mp4File?ptMP4File->Mp4Video?ptMP4File->pps?ptMP4File->ppsLen);
?}
?bool?MP4FileOpen(PT_MP4File?ptMP4File?char?*pMp4FileName)
?{
ptMP4File->Mp4File=?MP4Create(pMp4FileName?MP4_CREATE_64BIT_DATA);
if?(ptMP4File->Mp4File?==?MP4_INVALID_FILE_HANDLE)???
{??
???printf(“open?file?fialed.\n“);
???return?MP4_FAULE; ?
}
return?MP4_TRUE;
?}
?bool?MP4FileAddVideo(PT_MP4File?ptMP4File?unsigned?int?Fps?unsigned?int?u32Pic
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????3780??2016-03-28?14:55??mp4v2_mp4\MP4File.c
?????文件???????6843??2015-12-23?22:15??mp4v2_mp4\MP4File.c.bak
?????文件???????1077??2016-03-28?14:54??mp4v2_mp4\MP4File.h
?????文件???????1735??2015-12-24?09:06??mp4v2_mp4\MP4File.h.bak
?????文件?????496887??2015-09-10?19:55??mp4v2_mp4\mp4v2_2.0.0~dfsg0.orig.tar.bz2
?????目錄??????????0??2016-03-28?14:57??mp4v2_mp4
-----------?---------??----------?-----??----
???????????????510322????????????????????6
- 上一篇:oxyplot跨平臺繪圖庫官方說明文檔
- 下一篇:lssvm工具箱
評論
共有 條評論