[Cin] h264 vulkan encoding
Terje J. Hanssen
terjejhanssen at gmail.com
Mon Aug 12 22:36:34 CEST 2024
Den 12.08.2024 18:51, skrev Andrew Randrianasulu:
>
>
> пн, 12 авг. 2024 г., 15:33 Terje J. Hanssen <terjejhanssen at gmail.com>:
>
>
>
> Den 12.08.2024 02:58, skrev Andrew Randrianasulu:
>>
>>
>> пн, 12 авг. 2024 г., 03:48 Terje J. Hanssen via Cin
>> <cin at lists.cinelerra-gg.org>:
>>
>>
>>
>> Den 11.08.2024 23:30, skrev Andrea paz:
>>> I could never get decoding to work with vulkan (h264), problems with
>>> the "device."
>>
>> I also get
>>
>> [h264 @ 0x560566feda40] Device does not support the
>> VK_KHR_video_decode_queue extension!
>> [h264 @ 0x560566feda40] Failed setup for format vulkan:
>> hwaccel initialisation returned error.
>>
>>
>> I think you need vulkaninfo to see if you have this extension
>> exposed ?
>>
>> driver for Intel called "anv" in mesa so may be check for this
>> ext. name in mesa's git?
>>
>> for AMD it will be "radv"
>>
>> not sure how they packaged on your distros ....
>>
>
> vulkaninfo | grep VK_KHR_video_decode_queue
> - not found
>
>
> it seems you need env variable set?
>
> https://github.com/mpv-player/mpv/issues/11739
>
> ======
>
> * Intel
> o You must set |ANV_VIDEO_DECODE=1| in your environment to
> expose video decoding
> o Both H.264 and H.265 are supported
> o VK_EXT_descriptor_buffer support, required for Vulkan filters,
> has been merged
> <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22151>
> but no release includes it yet
>
Thank you. Setting this environment helped to remove the first error
message
export ANV_VIDEO_DECODE=1
vulkaninfo | grep VK_KHR_video_decode_queue
VK_KHR_video_decode_queue : extension revision 8
Still remaining hwaccel initialisation returned error for h264 and h265
input respectively:
[h264 @ 0x55952760cf40] Failed setup for format vulkan: hwaccel
initialisation returned error.
[hevc @ 0x5580e96e8c80] Failed setup for format vulkan: hwaccel
initialisation returned error.
[hevc @ 0x5580e96e8c80] Unsupported film grain parameters. Ignoring
film grain.
================
vulkaninfo --summary
==========
VULKANINFO
==========
Vulkan Instance Version: 1.3.290
Instance Extensions: count = 24
-------------------------------
VK_EXT_acquire_drm_display : extension revision 1
VK_EXT_acquire_xlib_display : extension revision 1
VK_EXT_debug_report : extension revision 10
VK_EXT_debug_utils : extension revision 2
VK_EXT_direct_mode_display : extension revision 1
VK_EXT_display_surface_counter : extension revision 1
VK_EXT_headless_surface : extension revision 1
VK_EXT_surface_maintenance1 : extension revision 1
VK_EXT_swapchain_colorspace : extension revision 4
VK_KHR_device_group_creation : extension revision 1
VK_KHR_display : extension revision 23
VK_KHR_external_fence_capabilities : extension revision 1
VK_KHR_external_memory_capabilities : extension revision 1
VK_KHR_external_semaphore_capabilities : extension revision 1
VK_KHR_get_display_properties2 : extension revision 1
VK_KHR_get_physical_device_properties2 : extension revision 2
VK_KHR_get_surface_capabilities2 : extension revision 1
VK_KHR_portability_enumeration : extension revision 1
VK_KHR_surface : extension revision 25
VK_KHR_surface_protected_capabilities : extension revision 1
VK_KHR_wayland_surface : extension revision 6
VK_KHR_xcb_surface : extension revision 6
VK_KHR_xlib_surface : extension revision 6
VK_LUNARG_direct_driver_loading : extension revision 1
Instance Layers: count = 3
--------------------------
VK_LAYER_KHRONOS_validation Khronos Validation Layer 1.3.290
version 1
VK_LAYER_MESA_device_select Linux device selection layer 1.3.211
version 1
VK_LAYER_MESA_overlay Mesa Overlay layer 1.3.211 version 1
Devices:
========
GPU0:
apiVersion = 1.3.278
driverVersion = 24.1.2
vendorID = 0x8086
deviceID = 0x56a1
deviceType = PHYSICAL_DEVICE_TYPE_DISCRETE_GPU
deviceName = Intel(R) Arc(tm) A750 Graphics (DG2)
driverID = DRIVER_ID_INTEL_OPEN_SOURCE_MESA
driverName = Intel open-source Mesa driver
driverInfo = Mesa 24.1.2
conformanceVersion = 1.3.6.0
deviceUUID = 8680a156-0800-0000-0300-000000000000
driverUUID = b0018696-40da-fe5a-ccad-54a5a6b3273f
===================
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.cinelerra-gg.org/pipermail/cin/attachments/20240812/cced8a14/attachment.htm>
More information about the Cin
mailing list