pjproject icon indicating copy to clipboard operation
pjproject copied to clipboard

Support ffmpeg 5.1

Open trengginas opened this issue 2 years ago • 1 comments

FFMPEG 5.1 has some changes which will break current build. The changes mostly related to removing some APIs that were already deprecated:

  1. AVCodec::encode2()/decode() removed here.
  2. av_codec_next()/avcodec_register_all() removed here
  3. avcodec_encode_video2()/avcodec_decode_video2() removed here

This ticket will fix the issue by using the updated method. Tested using FFMPEG 4.2 and FFMPEG 5.1

trengginas avatar Sep 18 '22 12:09 trengginas

It should be positive, but printing the value to log. It prints -11. However, the check AVERROR(EAGAIN) for encoding should already be correct. It breaks the loop when there's no other output. If there's no check, the encoding will be detected as error. As for AVERROR_EOF check, I'm going to leave it.

trengginas avatar Sep 19 '22 09:09 trengginas