[Libav-user] HW Accelerator in Windows: DXVA2 with new API

Hendrik Leppkes h.leppkes at gmail.com
Thu Aug 28 13:29:28 CEST 2014


On Thu, Aug 28, 2014 at 1:20 PM, Hector Alonso
<hector.alonso.aparicio at gmail.com> wrote:
> Is there a limitation into the number of slices the DXVA2 decoder can
> manage? Is there any way to reconfigure it?
> I've changed the "MAX_SLICES" definition and rebuilt ffmpeg (as suggested
> for the mpeg2 decoder) but nothing has changed. If i set the source of the
> video (1280*720) to make slices smaller than 2000B (8000bps) it makes the
> mountrous artifacts.
> Any suggestions?
>

The DXVA2 decoder is limited to 16 slices by default.
You can change this variable in libavcodec/h264.h, set MAX_SLICES to
something higher.

- Hendrik


More information about the Libav-user mailing list