ffmpeg
ffmpeg的解码流程
(pCodecCtxcodec_id)。 if(pCodec==NULL) { fprintf(stderr, Unsupported codec!\n)。 return 1。 // Codec not found } // Open codec if(avcodec_open(pCodecCtx, pCodec)0) return 1。 // Could not open codec //
ffmpeg解码流程(第二周
件中的流信息: av_find_stream_info(pFormatCtx); // 取出流信息 AVFormatContext 结构体 dump_format(pFormatCtx, 0, filename, false)。 //我们可以使用这个函 数把获取到得参数全部输出。 for(i=0。 ipFormatCtxnb_streams。 i++) //区分视频流和音频流