Changes between Version 13 and Version 14 of HWAccelIntro


Ignore:
Timestamp:
Dec 1, 2015, 5:19:45 PM (3 years ago)
Author:
saste
Comment:

extend section about DXVA2, in particular add information about how to enable DXVA2 support before building

Legend:

Unmodified
Added
Removed
Modified
  • HWAccelIntro

    v13 v14  
    2929Video Acceleration API (VA API) is a non-proprietary and royalty-free open source software library ("libVA") and API specification, initially developed by Intel but can be used in combination with other devices.  Linux only: https://en.wikipedia.org/wiki/Video_Acceleration_API 
    3030 
    31 == DXVA == 
     31== DXVA2 == 
    3232 
    3333Direct-X Video Acceleration API, developed by Microsoft (supports Windows and XBox360). 
     
    3737 
    3838Several decoders are currently supported, in particular H.264, MPEG2, VC1 and WMV3. 
     39 
     40DXVA2 hardware acceleration only works on Windows. In order to build FFmpeg with DXVA2 support, you need to install the dxva2api.h header. 
     41For MinGW this can be done by downloading the header maintained by VLC: 
     42 
     43http://download.videolan.org/pub/contrib/dxva2api.h 
     44 
     45and installing it in the include patch (for example in {{{/usr/include/}}}). 
     46 
     47For MinGW64, the dxva2api.h is provided through the {{{pacman}}} repository, and can be installed using one of the two following commands, depending on the architecture: 
     48{{{ 
     49pacman -S mingw-w64-i686-gcc 
     50pacman -S mingw-w64-x86_64-gcc 
     51}}} 
     52 
     53To enable DXVA2, use the {{{--enable-dxva2}}} configure switch. 
     54 
     55To test decoding, use the following command: 
     56{{{ 
     57ffmpeg -hwaccel dxva2 -threads 1 -i INPUT -f null - -benchmark 
     58}}} 
     59 
    3960 
    4061== VDA ==