| | 297 | == Decoding == |
| | 298 | AMD supports hardware decoding via DirectX in FFmpeg. Currently supports DX9 and DX11 in FFmpeg. |
| | 299 | |
| | 300 | Hardware decoding via DX9 |
| | 301 | |
| | 302 | {{{ |
| | 303 | ffmpeg -hwaccel dxva2 -i input.mkv output.yuv |
| | 304 | }}} |
| | 305 | |
| | 306 | **Note:** Currently AMD hardware doesn’t support **AV1 elementary stream decoding via DX9**. So, this command line is not applicable for AV1 bitstream as input. |
| | 307 | |
| | 308 | Hardware decoding via DX11 |
| | 309 | |
| | 310 | {{{ |
| | 311 | ffmpeg -hwaccel d3d11va -i input.mkv output.yuv |
| | 312 | }}} |
| | 313 | |
| | 314 | In the above command line, “input.mkv” is only an example. The AMD hardware accelerated decoder supports most widely used containers and video elementary stream types. The following table lists detailed information about the widely used containers and video elementary streams which the AMD hardware accelerated decoder supports. |
| | 315 | |
| | 316 | Table: Containers and video elementary streams supported by the AMD hardware accelerated **decoder** |
| | 317 | |
| | 318 | || Format || Filename Extension || H.264/AVC || H.265/HEVC || AV1 || |
| | 319 | || Matroska || .mkv || Y || Y || Y || |
| | 320 | || MPEG-4 Part 14 (MP4) || .mp4 || Y || Y || Y || |
| | 321 | || Audio Video Interleave (AVI) || .avi || Y || N || Y || |
| | 322 | || Material Exchange Format (MXF) || .mxf || Y || n/a || n/a || |
| | 323 | || MPEG transport stream (TS) || .ts || Y || Y || N || |
| | 324 | || 3GPP (3GP) || .3gp || Y || n/a || n/a || |
| | 325 | || Flash Video (FLV) || .flv || Y || n/a || n/a || |
| | 326 | || WebM || .webm || n/a || n/a || Y || |
| | 327 | || Advanced Systems Format (ASF) || .asf .wmv || Y || Y || Y || |
| | 328 | || QuickTime File Format (QTFF) || .mov || Y || Y || n/a || |
| | 329 | |
| | 330 | |
| | 331 | |
| | 332 | Y: Hardware accelerated decoder supports this input |
| | 333 | N: Hardware accelerated decoder doesn’t support this input |
| | 334 | n/a: This input is not applicable in specification |