How do you get FFMPEG to encode with vaapi?

前端 未结 3 814
太阳男子
太阳男子 2021-02-04 19:06

I\'ve seen various examples of using libavcodec with vaapi to accelerated decoding, but how do you use it to accelerate encoding?

3条回答
  •  野性不改
    2021-02-04 19:44

    Update 2020: FFMPEG now fully supports VAAPI encode + decode

    you can encode with something like:

    ffmpeg -y -vaapi_device /dev/dri/renderD128 -i file_in.avi -vf 'format=nv12,hwupload' -c:v h264_vaapi file_out.mp4

提交回复
热议问题