Search found 2 matches

by luigif1
Wed Oct 11, 2017 4:06 pm
Forum: Developement with FFmpeg
Topic: Issue enabling hw Decode DXVA2
Replies: 1
Views: 1880

Re: Issue enabling hw Decode DXVA2

Adding the following code make the difference:

Code: Select all

av_opt_set_int(pDecoder, "refcounted_frames", 1, 0);
by luigif1
Thu Oct 05, 2017 10:17 am
Forum: Developement with FFmpeg
Topic: Issue enabling hw Decode DXVA2
Replies: 1
Views: 1880

Issue enabling hw Decode DXVA2

Hi, I'm trying to enable DXVA2 hw decoding in my code. I'm following the example hw_decode.c, so the steps to perform are: create and attach hw_device_ctx before calling avcodec_open2 set the callback get_format return the desired pixel format (AV_PIX_FMT_DXVA2_VLD) inside get_format callback The is...
'