[BUG] Encoder: a stream that needs a level above the device's maxLevelIdc fails with a generic error instead of "not supported"
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 73/100
Direzione di ricerca
Inizia da InitEncoder() nell’esempio Encoder ed esamina il percorso di errore di DetermineLevelTier() e il controllo dell’estensione codificata; l’issue dice che attualmente viene eseguito prima il controllo del livello. Confronta i risultati del rifiuto con quelli di altri controlli delle capacità hardware e verifica che i casi ad alta risoluzione vengano segnalati come non supportati quando si supera il limite del dispositivo. Il lavoro è completato quando il runner segnala N/S per queste configurazioni non supportate invece di FAIL.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Describe the bug
The large resolution tests are failing:
- For RADV: h264_resolution_too_large
- For ANV: h264_resolution_too_large and h265_resolution_too_large
When the encoding parameters require a codec level higher than the device's maxLevelIdc (H.264/H.265), the encoder should report the configuration as not supported. It currently reports a generic error.
Every other hardware-capability rejection in InitEncoder() returns a VkResult that IsVideoUnsupportedResult() recognizes. The encoder then exits with VVS_EXIT_UNSUPPORTED (69), and the test runner reports N/S.
The level check does not follow this pattern. When DetermineLevelTier() fails, InitEncoder() returns VK_ERROR_INITIALIZATION_FAILED. The encoder then exits with EXIT_FAILURE (1), and the runner reports FAIL. That treats a hardware limit as if it were an encoder bug.
maxLevelIdc is a hardware capability, just like maxCodedExtent. If a standard level exists for the stream but the device cannot reach it, the device does not support the stream.
A second problem makes this visible. The level check runs before the coded-extent check. When an input exceeds both limits, the generic level error hides the more specific "exceeds hardware maximum" rejection.
Setup
- OS: Ubuntu 24.04.4 LTS
- GPU: AMD Radeon RX 7600 (RADV NAVI33)
- Driver Version: radv Mesa 27.0.0-devel (git-bb7494e71c)
- Sample Application: Encoder
- Sample Application Version: 0.5.2
Expected Behavior
- If the stream needs a level above the device's
maxLevelIdc, the encoder rejects it as not supported. It exits with 69, and the runner reports N/S.
Observed Behavior
RADV, H.264, 7680x4320:
H.264 Encoder Capabilities
maxLevelIdc : 15
...
Failed to determine a suitable level for the given encoding parameters
ERROR: InitEncoder() failed with ret(-3)
Can't create the video encoder!
Steps to Reproduce
$VVS_DIR/build/vk_video_encoder/demos/vk-video-enc-test -i $VVS_DIR/tests/resources/video/yuv/7680x4320_420_8le.yuv --codec h264 --inputWidth 7680 --inputHeight 4320 --inputNumPlanes 3 --verbose --logLevel 4 --noDeviceFallback -o $VVS_DIR/tests/results/test_output_h264_resolution_too_large.264
Additional information
- In the case of H.264 tested with RADV, the large resolution test (7680x4320) requires levelIdc 6.0. The encoder capabilities for H.264 report maxLevelIdc is 5.2.
- For the failing tests, the resolution is above the maxCodedExtent.
| Device | Codec | maxLevelIdc | maxCodedExtent |
|---|---|---|---|
| RADV NAVI33 | H.264 | 5.2 | 4096 x 4096 |
| RADV NAVI33 | H.265 | (8K passes) | 8192 x 4352 |
| ANV Arc A750 | H.264 | 5.1 | 4096 x 4096 |
| ANV Arc A750 | H.265 | 5.1 | 4096 x 4096 |
- Lingua principale
- C++
- Stelle
- 44
- Fork
- 20
- Merge medio
- 6g 11h
- PR unite (30g)
- 7
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di KhronosGroup/Vulkan-Video-Samples
-
Difficoltà 5/5 Più di una settimana Idoneità per principianti 28/100
KhronosGroup/Vulkan-Video-Samples#252 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
av1 bug decoder
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
KhronosGroup/Vulkan-Video-Samples#251 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
ANV bug
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
KhronosGroup/Vulkan-Video-Samples#249 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
KhronosGroup/Vulkan-Video-Samples#234 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
KhronosGroup/Vulkan-Video-Samples#149 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di KhronosGroup/Vulkan-Video-Samples
Issue simili
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 84/100
KhronosGroup/Vulkan-Tutorial#555 ·
I maintainer di solito rispondono entro 10 giorni
-
Server crashes when a mob dies to poisonForse già presa @joelstiller l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
DarkCastleMUD/DarkCastle#305 ·
I maintainer di solito rispondono entro 1 giorno
-
[Issue]: RAS status report lists the wrong pids for an outlier nodeForse già presa @bhargavchintam l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
Niko1221/Strata#7365 · 2 commenti ·
I maintainer di solito rispondono entro 4 giorni
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
BenjaminPoilve/minichord#203 ·