[FFmpeg-devel] [PATCH 1/2] libavcodec/qsvenc.c delay in 1 microsecond replaced to more appropriate 500 microseconds
ivan.uskov at nablet.com
Tue Jul 28 17:30:56 CEST 2015
The attached patch replaces 1 microsecond delay to 500 microsecond for
case when MFX library does return MFX_WRN_DEVICE_BUSY status.
In general this warning never appears for simple encoding or
transcoding session because GPU so fast so almost always not busy and
any delay value just not executes.
But for heavy transcoding tasks for example, when several QSV sessions
are running simultaneously the using of 1-microsecond delay may be
result of 1000 iterations per each frame.
So here possible a paradoxical case when GPU loading also loads CPU by dummy tasks.
Official MFX/QSV samples by Intel are use 1 millisecond (i.e. 1000
microseconds) everywhere where MFX_WRN_DEVICE_BUSY does appear.
So 500us is much more optimal value than 1us.
Ivan mailto:ivan.uskov at nablet.com
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 813 bytes
Desc: not available
More information about the ffmpeg-devel