intel / intel/cartwheel-ffmpeg

Error using new ffmpeg HEVC D3D12 encoder support.. (on both NV and AMD GPUs)

Open
#311 10 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
110
Forks
38
PR merge metrics
No merged PRs in 30d

Description

Hi,
built FFMPEG on Windows and simple testing fails on NV 3070 GPU..
I verify:
>Enabled encoders:
>d3d12va_encode

and ffmpeg -encoders:
>V....D hevc_d3d12va D3D12VA hevc encoder (codec hevc)

running:
>ffmpeg.exe -hwaccel d3d12va -hwaccel_output_format d3d12 -i c:\av1\input.mp4 -c:v hevc_d3d12va -acodec aac output.mp4

```
[hevc_d3d12va @ 00000237B7B29640] Encode failed 16
[hevc_d3d12va @ 00000237B7B29640] Output failed: -22.
[vost#0:0/hevc_d3d12va @ 00000237B7EC1980] Error submitting video frame to the encoder
[vost#0:0/hevc_d3d12va @ 00000237B7EC1980] Error encoding a frame: Invalid argument
[vost#0:0/hevc_d3d12va @ 00000237B7EC1980] Task finished with error code: -22 (Invalid argument)
[vost#0:0/hevc_d3d12va @ 00000237B7EC1980] Terminating thread with return code -22 (Invalid argument)
[out#0/mp4 @ 00000237B5D29A80] video:59KiB audio:478KiB subtitle:0KiB other streams:0KiB global headers:0Ki
```

more log:
```
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: isommp42
encoder : Lavf61.2.100
Stream #0:0(und): Video: hevc (Main) (hev1 / 0x31766568), d3d12(tv, bt709, progressive), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 12800 tbn (default)
Metadata:
creation_time : 2023-04-12T01:03:23.000000Z
handler_name : ISO Media file produced by Google Inc. Created on: 04/11/2023.
vendor_id : [0][0][0][0]
encoder : Lavc61.4.100 hevc_d3d12va
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
creation_time : 2023-04-12T01:03:23.000000Z
handler_name : ISO Media file produced by Google Inc. Created on: 04/11/2023.
vendor_id : [0][0][0][0]
encoder : Lavc61.4.100 aac
[hevc_d3d12va @ 00000237B7B29640] Encode failed 16
[hevc_d3d12va @ 00000237B7B29640] Output failed: -22.
[vost#0:0/hevc_d3d12va @ 00000237B7EC1980] Error submitting video frame to the encoder
[vost#0:0/hevc_d3d12va @ 00000237B7EC1980] Error encoding a frame: Invalid argument
[vost#0:0/hevc_d3d12va @ 00000237B7EC1980] Task finished with error code: -22 (Invalid argument)
[vost#0:0/hevc_d3d12va @ 00000237B7EC1980] Terminating thread with return code -22 (Invalid argument)
```

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the exact Windows command with the reported hevc_d3d12va encoder and review the Encode failed 16 and Invalid argument logs. Compare behavior on the reported NVIDIA and AMD GPUs; done means the command completes successfully without encoder errors.

Written by the indexing model from the issue text.

Assessment

Domain
audio-video-rtc
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.