FFMPEG - format not available?
问题 I'm converting some code from FFMPEG 0.8 to FFMPEG 1.2. I have an error during the call to the method avcodec_open2(): " Specified pixel format %s is invalid or not supported ". The format I use is : AV_PIX_FMT_RGB24. It should be enabled by default, right? Below is my code: av_register_all(); codec = avcodec_find_encoder(AV_CODEC_ID_MPEG2VIDEO); if(!codec) { throw SystemException("codec not found"); } codecContext = avcodec_alloc_context3(codec); codecContext->bit_rate = 200000; codecContext