[BUG] Encoder: a stream that needs a level above the device's maxLevelIdc fails with a generic error instead of "not supported"
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 73/100
Línea de trabajo
Empieza por InitEncoder() del ejemplo Encoder e inspecciona la ruta de fallo de DetermineLevelTier() y la comprobación de la extensión codificada; el issue indica que actualmente se ejecuta primero la comprobación del nivel. Compara los resultados de rechazo con otras comprobaciones de capacidades de hardware y verifica que los casos de alta resolución se indiquen como no compatibles cuando se supera el límite del dispositivo. El trabajo estará terminado cuando el runner indique N/S para esas configuraciones no compatibles en lugar de FAIL.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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 |
- Lenguaje dominante
- C++
- Estrellas
- 44
- Forks
- 20
- Merge medio
- 6 d 11 h
- PR fusionados (30 d)
- 7
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de KhronosGroup/Vulkan-Video-Samples
-
Dificultad 5/5 Más de una semana Aptitud para principiantes 28/100
KhronosGroup/Vulkan-Video-Samples#252 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
av1 bug decoder
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
KhronosGroup/Vulkan-Video-Samples#251 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
ANV bug
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
KhronosGroup/Vulkan-Video-Samples#249 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
KhronosGroup/Vulkan-Video-Samples#234 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 32/100
KhronosGroup/Vulkan-Video-Samples#149 ·
Los mantenedores suelen responder en 1 día
Todos los issues de KhronosGroup/Vulkan-Video-Samples
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 84/100
KhronosGroup/Vulkan-Tutorial#555 ·
Los mantenedores suelen responder en 10 días
-
Server crashes when a mob dies to poisonPosiblemente ocupada @joelstiller la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
DarkCastleMUD/DarkCastle#305 ·
Los mantenedores suelen responder en 1 día
-
[Issue]: RAS status report lists the wrong pids for an outlier nodePosiblemente ocupada @bhargavchintam la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 84/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Niko1221/Strata#7365 · 2 comentarios ·
Los mantenedores suelen responder en 4 días
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 65/100
BenjaminPoilve/minichord#203 ·