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