I'm developing a media player, which should be capable to play h.264 video
streams usign hardware acceleration.

For now, I've developed a simple application, which reads a file decodes
video frames and drops them.

avconv says the following on this file:



Windows media player and VLC both play this file.

I have set up dxva_context structure and assigned codecctx->hwaccel_context
to it, however, my application doesn't use hardware acceleration to decode
h.264 video.

While studying LibAV sources I've found the following code in the
decode_slice_header() function


Which means, that hardware acceleration will be used for certain
combinations of pixel format and codec_id

I've also assigned 

because this pixel format is the only, which h264 accelerator supports.

But first call to the avcodec_decode_video2 has assigned to setting this
pix_fmt back to PIX_FMT_YUV_420, and I've got no hardware acceleration at
all.

I use sources from git.videolan.org and compile them by myself using
MingW64.


--
View this message in context: 
http://libav-api.1054858.n5.nabble.com/libav-api-How-do-I-use-DXVA2-hardware-acceleration-tp5001199p5001199.html
Sent from the libav-api mailing list archive at Nabble.com.
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api

Reply via email to