int ret = avio_open(&m_pFormatCtx->pb,m_filePath.c_str(),AVIO_FLAG_WRITE);
if(ret != 0)
cout << "avio_open failed!"<<endl;
ret = avformat_write_header(m_pFormatCtx,NULL);
if(ret != 0)
cout << "avformat_write_header failed!"<<endl;
int ret = avio_open(&m_pFormatCtx->pb,m_filePath.c_str(),AVIO_FLAG_WRITE);
if(ret != 0)
cout << "avio_open failed!"<<endl;
ret = avformat_write_header(m_pFormatCtx,NULL);
if(ret != 0)
cout << "avformat_write_header failed!"<<endl;