问题 I've seen various examples of using libavcodec with vaapi to accelerated decoding, but how do you use it to accelerate encoding? 回答1: As of today, FFmpeg and libav have implemented hardware-accelerated encoding via VAAPI on supported platforms and hardware SKUs, and I have written a write-up on the same that will enable you to set up, deploy and use both ffmpeg and libav to achieve the same effect. And in the same note, I've added references to hardware surface limits so you'll know what