ffmpeg vaapi and drawtext

1.1k views Asked by At

Simple question like hell: Is it possible to use hardware accelerated transcoding with ffmpeg, Intel CPU and VAAPI using text overlay with drawtext?

My current working command without drawtext is:

ffmpeg -vaapi_device /dev/dri/card0 -hwaccel vaapi -hwaccel_output_format vaapi  -i /file.mp4 -vf 'format=vaapi|nv12,hwupload' -threads 8 -vcodec h264_vaapi -acodec copy -scodec copy  -b:v 3000k /file2.mp4

but it seems hwaccel and drawtext filter cannot coexist, at least as it seems at a first glance.

0

There are 0 answers