[FFmpeg-user] ERROR: libglslang not found

Dylan Fernando dylanf123 at gmail.com
Sat May 8 11:13:01 EEST 2021


On Tue, Apr 13, 2021 at 7:58 AM Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> Am Mo., 12. Apr. 2021 um 00:54 Uhr schrieb Dylan Fernando <
> dylanf123 at gmail.com>:
>
> > Thanks, Now I am getting:
> >
> > /usr/bin/ld: cannot find -lMachineIndependent
> > /usr/bin/ld: cannot find -lGenericCodeGen
>
> It doesn't work here either, maybe you need a particular
> version of glslang.
>
> Hopefully somebody who knows what it is can help you.
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> https://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


Managed to get it compiling using  https://vulkan.lunarg.com/sdk/home

I did:

wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc |
sudo apt-key add -
sudo wget -qO /etc/apt/sources.list.d/lunarg-vulkan-1.2.176-focal.list
https://packages.lunarg.com/vulkan/1.2.176/lunarg-vulkan-1.2.176-focal.list
sudo apt update
sudo apt install vulkan-sdk

It doesn't work, however, It segfaults:

ffmpeg -v verbose -init_hw_device vulkan=gpu:0.0 -filter_hw_device gpu
-i atm.mp4 -filter_complex hwupload,avgblur_vulkan=10,hwdownload
atmvulkan.mp4
ffmpeg version N-102426-g553619eacb Copyright (c) 2000-2021 the FFmpeg
developers
  built with gcc 9 (Ubuntu 9.3.0-17ubuntu1~20.04)
  configuration: --enable-opencl --enable-vulkan --enable-libglslang
  libavutil      57.  0.100 / 57.  0.100
  libavcodec     59.  0.100 / 59.  0.100
  libavformat    59.  0.101 / 59.  0.101
  libavdevice    59.  0.100 / 59.  0.100
  libavfilter     8.  0.101 /  8.  0.101
  libswscale      6.  0.100 /  6.  0.100
  libswresample   4.  0.100 /  4.  0.100
INTEL-MESA: warning: Ivy Bridge Vulkan support is incomplete
[AVHWDeviceContext @ 0x55ac5bc3e7c0] GPU listing:
[AVHWDeviceContext @ 0x55ac5bc3e7c0]     0: GeForce RTX 2070 SUPER
(discrete) (0x1e84)
[AVHWDeviceContext @ 0x55ac5bc3e7c0]     1: Intel(R) HD Graphics 4000
(IVB GT2) (integrated) (0x162)
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using queue family 0 (total
queues: 16) for graphics
[AVHWDeviceContext @ 0x55ac5bc3e7c0]     QF 0 flags: (graphics)
(compute) (transfers) (sparse)
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using queue family 2 (total
queues: 8) for compute
[AVHWDeviceContext @ 0x55ac5bc3e7c0]     QF 2 flags: (compute)
(transfers) (sparse)
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using queue family 1 (total
queues: 2) for transfers
[AVHWDeviceContext @ 0x55ac5bc3e7c0]     QF 1 flags: (transfers) (sparse)
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
"VK_KHR_external_memory_fd"
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
"VK_KHR_external_semaphore_fd"
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
"VK_EXT_external_memory_host"
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
"VK_KHR_push_descriptor"
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
"VK_EXT_host_query_reset"
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
VK_KHR_external_memory_fd
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
VK_KHR_external_semaphore_fd
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
VK_EXT_external_memory_host
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
VK_KHR_push_descriptor
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device extension
VK_EXT_host_query_reset
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Using device: GeForce RTX 2070 SUPER
[AVHWDeviceContext @ 0x55ac5bc3e7c0] Alignments:
[AVHWDeviceContext @ 0x55ac5bc3e7c0]     optimalBufferCopyRowPitchAlignment: 1
[AVHWDeviceContext @ 0x55ac5bc3e7c0]     minMemoryMapAlignment:              64
[AVHWDeviceContext @ 0x55ac5bc3e7c0]
minImportedHostPointerAlignment:    4096
[h264 @ 0x55ac5c0621c0] Reinit context to 1024x576, pix_fmt: yuv420p
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'atm.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp41isom
  Duration: 00:02:08.45, start: 0.000000, bitrate: 1479 kb/s
  Stream #0:0(und): Video: h264 (Constrained Baseline), 1 reference
frame (avc1 / 0x31637661), yuv420p(left), 1024x576, 1386 kb/s, 25 fps,
25 tbr, 25k tbn (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0]
      encoder         : AVC Coding
  Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz,
stereo, fltp, 90 kb/s (default)
    Metadata:
      handler_name    : SoundHandler
      vendor_id       : [0][0][0][0]
File 'atmvulkan.mp4' already exists. Overwrite? [y/N] y
Stream mapping:
  Stream #0:0 (h264) -> hwupload (graph 0)
  hwdownload (graph 0) -> Stream #0:0 (mpeg4)
  Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[h264 @ 0x55ac5da9b040] Reinit context to 1024x576, pix_fmt: yuv420p
[graph_1_in_0_1 @ 0x55ac5ddd34c0] tb:1/48000 samplefmt:fltp
samplerate:48000 chlayout:0x3
[graph 0 input from stream 0:0 @ 0x55ac5de75500] w:1024 h:576
pixfmt:yuv420p tb:1/25000 fr:25/1 sar:0/1
Segmentation fault (core dumped)

Regards,

Dylan


More information about the ffmpeg-user mailing list