Media (Intel® Video Processing Library, Intel Media SDK)
Access community support with transcoding, decoding, and encoding in applications using media tools like Intel® oneAPI Video Processing Library and Intel® Media SDK
Announcements
The Intel Media SDK project is no longer active. For continued support and access to new features, Intel Media SDK users are encouraged to read the transition guide on upgrading from Intel® Media SDK to Intel® Video Processing Library (VPL), and to move to VPL as soon as possible.
For more information, see the VPL website.

Less performance then monitor not connected

Oleksandr_K_
Beginner
640 Views

If I reboot PC without monitor to be connected (like on server) and run command over shh then I get less fps (converting speed).
Build with instructions: https://gist.github.com/Brainiarc7/4f831867f8e55d35cbcb527e15f9f116

Tested on i7- 6700 and on i7- 8700 CPU on Ubuntu 18.04 with ffmpeg with same result -> no monitor-> less fps.

ffmpeg -hwaccel qsv -c:v h264_qsv -i 720p.mp4 -c:v h264_qsv -preset 7 -b:v 6M -vf scale_qsv=1920:1080 -an -y h264.mp4

Monitor connected : fps: 330fps
Monitor not connected: 250fps

Then I check GPU clock via "sudo intel_gpu_frequency"  it jump to max 1200 MHz.

Than I try to create watermark on video:

ffmpeg -hwaccel qsv -c:v h264_qsv -i 720p.mp4 -c:v hevc_qsv -preset 7 -filter_complex "scale_qsv=1920:1080[s2];movie=watermark.png,scale=1080*0.75:-1,format=nv12,hwupload=extra_hw_frames=30[watermark];[s2][watermark]overlay_qsv=(main_w-overlay_w)/2:(main_h-overlay_h-10)/1:alpha=150[overlay]" -map [overlay] -map a? -c:a copy -b:v 6M -y out_watermark.mp4

Monitor connected : fps: 300fps
Monitor not connected: 200fps

Any idea why up to 30% less without monitor with overlay_qsv filter?

0 Kudos
1 Reply
Oleksandr_K_
Beginner
640 Views

Solution is to update kernel to v4.19 with updated DMC: https://github.com/Intel-Media-SDK/MediaSDK/issues/862

 

0 Kudos
Reply