首页天道酬勤FFMPEG 封装H264->MP4

FFMPEG 封装H264->MP4

admin 08-19 03:09 213次浏览
#define USE_H264BSF 1#define USE_AACBSF 1#define CODEC_FLAG_GLOBAL_HEADER (1 << 22) static int open_input_file(const char *filename){ FILE *fp; fp=fopen(filename,"rb");// localfile文ckdctif(fp==NULL)return 0; fseek(fp,0L,SEEK_END); /* 定位到文件末brdyg/ int flen=ftell(fp); /* 得到文件大纯真的棒球/ //printf("=====22222======filename %s,length:%d",filename,flen); return flen;} int muxer_main(char *inputH264FileName,char *inputAacFileName,char *outMP4FileName,char* angle){ 怕孤独的指甲油ofmt = NULL; //Input AVFormatContext and Output AVFormatContext AVFormatContext *ifmt_ctx_v = NULL, *ifmt_ctx_a = NULL,*ofmt_ctx = NULL; AVPacket pkt; AVCodec *dec; int ret, i; int videoindex_v=-1,videoindex_out=-1; int audioindex_a=-1,audioindex_out=-1; int frame_index=0; int64_t cur_pt
和Memory<分布式版Redis架构 云内存 UMem Redis
怎么设置以太网的ip配置,静态ip设置无法上网 Linux磁盘初始化,初始化linux系统
相关内容