[ffmpeg/f39] Add backports to support enhanced RTMP and AV1 encoding through VA-API