ffmpeg 判斷數據格式

用ffmpeg解碼時,怎麼判斷視頻是yuv420仍是yuv422,查了一下資料知道視頻格式類型是在AVPixelFormat內ide 經過AVCodecContext的pix_fmt來進行判斷spa video_codec_ctx= avcodec_alloc_context3(NULL); avcodec_parameters_to_context(video_codec_ctx, video_
相關文章
相關標籤/搜索