Hello,
could you please help to identify an issue when running FFMPEG with QSV under Ubuntu 17.10, Media Server Studio 2017?
I try to encode raw video using H264 codec using a command:
ffmpeg -y -i sample_1080p.y4m -c:v h264_qsv -preset fast -look_ahead 0 output_1080p.264
The h264_qsv codec prints a warning "Encoder will work with partial HW acceleration". The CPU load is pretty high and reaches about 70%. Meantime the performance is lower than expected and it's about 70fps. Adding some constraints like maximum bitrate and buffer can drop it to 20fps. I observe similar behaviour on both HD530 and Iris Pro 6200 iGPUs (i7-6700K and i7-5775C CPUs respectively).
If drop "-look_ahead 0" parameter, the codec prints error: "Selected ratecontrol mode is not supported by the QSV runtime. Choose a different mode.".
Checking the quality shows a PSNR(Y) difference may reach several dB comparing to the same parameters for libx264. Which I believe is not expected. Looks like I use QSV in some wrong way.
Could you guide me to the correct direction? What can a root cause be for such behaviour?
Thank you!