k4yt3x / video2x

A machine learning-based lossless video super resolution framework. Est. Hack the Valley II, 2018.
https://video2x.org
GNU Affero General Public License v3.0
10.74k stars 1.01k forks source link

vkCreateInstance failed -9 #819

Closed 75033us closed 1 month ago

75033us commented 1 year ago

Repro

python3 -m video2x -i ~/Downloads/input.mp4 -o ~/Downloads/output.mp4 upscale

Actual Result

18:35:37.429043 | INFO     | Video2X 5.0.0-beta6
18:35:37.429139 | INFO     | Copyright (C) 2018-2022 K4YT3X and contributors.
18:35:37.429185 | INFO     | Reading input video information
18:35:37.610973 | INFO     | Starting video decoder
18:35:37.616974 | INFO     | Starting video encoder
This process is not trusted! Input event monitoring will not be possible until it is added to accessibility clients.
vkCreateInstance failed -9
vkCreateInstance failed -9
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/xlj/Downloads/input.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    creation_time   : 2017-01-07T19:15:36.000000Z
  Duration: 00:17:56.15, start: 0.000000, bitrate: 445 kb/s
  Stream #0:0[0x1](und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(progressive), 640x360 [SAR 1:1 DAR 16:9], 250 kb/s, 24.87 fps, 25 tbr, 25 tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s (default)
    Metadata:
      creation_time   : 2017-01-07T19:15:45.000000Z
      handler_name    : IsoMedia File Produced by Google, 5-11-2011
      vendor_id       : [0][0][0][0]
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> rawvideo (native))
[swscaler @ 0x120008000] [swscaler @ 0x120018000] No accelerated colorspace conversion found from yuv420p to rgb24.
[swscaler @ 0x120008000] [swscaler @ 0x120028000] No accelerated colorspace conversion found from yuv420p to rgb24.
[swscaler @ 0x120008000] [swscaler @ 0x120038000] No accelerated colorspace conversion found from yuv420p to rgb24.
[swscaler @ 0x120008000] [swscaler @ 0x120048000] No accelerated colorspace conversion found from yuv420p to rgb24.
[swscaler @ 0x120008000] [swscaler @ 0x120058000] No accelerated colorspace conversion found from yuv420p to rgb24.
[swscaler @ 0x120008000] [swscaler @ 0x120068000] No accelerated colorspace conversion found from yuv420p to rgb24.
[swscaler @ 0x120008000] [swscaler @ 0x120078000] No accelerated colorspace conversion found from yuv420p to rgb24.
[swscaler @ 0x120008000] [swscaler @ 0x120088000] No accelerated colorspace conversion found from yuv420p to rgb24.
[swscaler @ 0x120008000] [swscaler @ 0x120098000] No accelerated colorspace conversion found from yuv420p to rgb24.
Output #0, rawvideo, to 'pipe:1':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: isommp42
    encoder         : Lavf59.27.100
  Stream #0:0(und): Video: rawvideo (RGB[24] / 0x18424752), rgb24(pc, gbr/unknown/unknown, progressive), 640x360 [SAR 1:1 DAR 16:9], q=2-31, 137530 kb/s, 24.87 fps, 24.87 tbn
(default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      encoder         : Lavc59.37.100 rawvideo

vkCreateInstance failed -9

Then the ckCreateInstance failed -9 will repeat many times.

Environment

I am using M1 based MacMini with MacOS Ventura 13.2 (a):

Darwin ... 22.3.0 Darwin Kernel Version 22.3.0: Sun Dec  4 18:16:43 PST 2022; root:xnu-8792.80.21.0.2~9/RELEASE_ARM64_T8103 arm64

Version of the code:

$ python3 -m video2x --version
Video2X         5.0.0-beta6
Author:         K4YT3X
License:        GNU AGPL v3
Github Page:    https://github.com/k4yt3x/video2x
Contact:        i@k4yt3x.com

Version of the python

$ python3 --version
Python 3.10.9

Output from vulkaninfo

$ vulkaninfo
==========
VULKANINFO
==========

Vulkan Instance Version: 1.3.236

Instance Extensions: count = 13
===============================
        VK_EXT_debug_report                    : extension revision 10
        VK_EXT_debug_utils                     : extension revision 2
        VK_EXT_metal_surface                   : extension revision 1
        VK_EXT_swapchain_colorspace            : extension revision 4
        VK_KHR_device_group_creation           : extension revision 1
        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_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_MVK_macos_surface                   : extension revision 3

Layers: count = 4
...

I can attached the full version if needed.

minhng99 commented 1 year ago

Same here with Google Colab

k4yt3x commented 1 year ago

I don't have a M1 so I really can't comment on this. I know someone else in our Telegram group also tried to use docker on M1, but where also having issues passing the GPU in.

kevinjcoleman commented 1 year ago

I'm also having this issue @k4yt3x @75033us did you ever figure this out?