心胸决定格局,眼界决定境界...

音频和视频合并

  MP4Mix *mix = NULL;
  mix = new MP4Mix();
  bool mix_ret = true;
  const char* h264_file ="temp/temp.h264";
  const char* aac_file ="temp/temp.AAC";
  const char* MP4_file ="temp/temp.MP4";
  mix_ret = mix->Parse264File(h264_file); 
  mix_ret = mix->ParseaacFile(aac_file); 
  mix_ret = mix->WritePMP4File(MP4_file);

 

posted @ 2014-04-15 15:09  WELEN  阅读(342)  评论(0编辑  收藏  举报