Package Details: vlc-git 4.0.0.r31756.g76cd807c24-2

Git Clone URL: https://aur.archlinux.org/vlc-git.git (read-only, click to copy)
Package Base: vlc-git
Description: Multi-platform MPEG, VCD/DVD, and DivX player
Upstream URL: https://code.videolan.org/videolan/vlc
Licenses: GPL-2.0-or-later, LGPL-2.1-or-later
Conflicts: libvlc, vlc
Provides: libvlc, vlc
Submitter: None
Maintainer: xiota (knoelli)
Last Packager: xiota
Votes: 211
Popularity: 0.53
First Submitted: 2008-04-01 12:14 (UTC)
Last Updated: 2024-11-16 22:21 (UTC)

Required by (156)

Sources (3)

Latest Comments

« First ‹ Previous 1 .. 6 7 8 9 10 11 12 13 14 15 16 .. 46 Next › Last »

andrewSC commented on 2022-03-10 22:34 (UTC)

Just made some updates to the PKGBUILD and can confirm it builds cleanly in a chroot. The libcaca issue should be resolved now since upstream merged in their changes to caca.c about a month ago (from today/this comment date). Let me know if there's any issues and I greatly appreciate the patience in my response!

DAC324 commented on 2022-02-05 21:48 (UTC) (edited on 2022-02-06 00:24 (UTC) by DAC324)

The package currently does not compile:

  CC       access/libdv1394_plugin_la-dv.lo
  CC       access/linsys/linsys_hdsdi.lo
  CC       access/linsys/liblinsys_sdi_plugin_la-linsys_sdi.lo
video_output/caca.c:51:5: error: unknown type name 'cucul_canvas_t'
   51 |     cucul_canvas_t *cv;
      |     ^~~~~~~~~~~~~~
video_output/caca.c:53:5: error: unknown type name 'cucul_dither_t'
   53 |     cucul_dither_t *dither;
      |     ^~~~~~~~~~~~~~
video_output/caca.c: In function 'Place':
video_output/caca.c:101:32: error: implicit declaration of function 'cucul_get_canvas_width'; did you mean 'caca_get_canvas_width'? [-Werror=implicit-function-declaration]
  101 |     const int canvas_width   = cucul_get_canvas_width(sys->cv);
      |                                ^~~~~~~~~~~~~~~~~~~~~~
      |                                caca_get_canvas_width
video_output/caca.c:102:32: error: implicit declaration of function 'cucul_get_canvas_height'; did you mean 'caca_get_canvas_height'? [-Werror=implicit-function-declaration]
  102 |     const int canvas_height  = cucul_get_canvas_height(sys->cv);
      |                                ^~~~~~~~~~~~~~~~~~~~~~~
      |                                caca_get_canvas_height
video_output/caca.c: In function 'Prepare':
video_output/caca.c:133:23: error: implicit declaration of function 'cucul_create_dither'; did you mean 'caca_create_dither'? [-Werror=implicit-function-declaration]
  133 |         sys->dither = cucul_create_dither(32,
      |                       ^~~~~~~~~~~~~~~~~~~
      |                       caca_create_dither
video_output/caca.c:133:21: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  133 |         sys->dither = cucul_create_dither(32,
      |                     ^
video_output/caca.c:148:5: error: implicit declaration of function 'cucul_set_color_ansi'; did you mean 'caca_set_color_ansi'? [-Werror=implicit-function-declaration]
  148 |     cucul_set_color_ansi(sys->cv, CUCUL_COLOR_DEFAULT, CUCUL_COLOR_BLACK);
      |     ^~~~~~~~~~~~~~~~~~~~
      |     caca_set_color_ansi
video_output/caca.c:148:35: error: 'CUCUL_COLOR_DEFAULT' undeclared (first use in this function)
  148 |     cucul_set_color_ansi(sys->cv, CUCUL_COLOR_DEFAULT, CUCUL_COLOR_BLACK);
      |                                   ^~~~~~~~~~~~~~~~~~~
video_output/caca.c:148:35: note: each undeclared identifier is reported only once for each function it appears in
video_output/caca.c:148:56: error: 'CUCUL_COLOR_BLACK' undeclared (first use in this function)
  148 |     cucul_set_color_ansi(sys->cv, CUCUL_COLOR_DEFAULT, CUCUL_COLOR_BLACK);
      |                                                        ^~~~~~~~~~~~~~~~~
video_output/caca.c:149:5: error: implicit declaration of function 'cucul_clear_canvas'; did you mean 'caca_clear_canvas'? [-Werror=implicit-function-declaration]
  149 |     cucul_clear_canvas(sys->cv);
      |     ^~~~~~~~~~~~~~~~~~
      |     caca_clear_canvas
video_output/caca.c:153:5: error: implicit declaration of function 'cucul_dither_bitmap'; did you mean 'caca_dither_bitmap'? [-Werror=implicit-function-declaration]
  153 |     cucul_dither_bitmap(sys->cv, sys->place.x, sys->place.y,
      |     ^~~~~~~~~~~~~~~~~~~
      |     caca_dither_bitmap
video_output/caca.c: In function 'Control':
video_output/caca.c:181:13: error: implicit declaration of function 'cucul_free_dither'; did you mean 'caca_free_dither'? [-Werror=implicit-function-declaration]
  181 |             cucul_free_dither(sys->dither);
      |             ^~~~~~~~~~~~~~~~~
      |             caca_free_dither
video_output/caca.c: In function 'Close':
video_output/caca.c:364:5: error: implicit declaration of function 'cucul_free_canvas'; did you mean 'caca_free_canvas'? [-Werror=implicit-function-declaration]
  364 |     cucul_free_canvas(sys->cv);
      |     ^~~~~~~~~~~~~~~~~
      |     caca_free_canvas
video_output/caca.c: In function 'Open':
video_output/caca.c:450:15: error: implicit declaration of function 'cucul_create_canvas'; did you mean 'caca_create_canvas'? [-Werror=implicit-function-declaration]
  450 |     sys->cv = cucul_create_canvas(0, 0);
      |               ^~~~~~~~~~~~~~~~~~~
      |               caca_create_canvas
video_output/caca.c:450:13: warning: assignment to 'int *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
  450 |     sys->cv = cucul_create_canvas(0, 0);
      |             ^
video_output/caca.c:463:50: warning: passing argument 1 of 'caca_create_display_with_driver' from incompatible pointer type [-Wincompatible-pointer-types]
  463 |     sys->dp = caca_create_display_with_driver(sys->cv, driver);
      |                                               ~~~^~~~
      |                                                  |
      |                                                  int *
In file included from video_output/caca.c:47:
/usr/include/caca.h:502:59: note: expected 'caca_canvas_t *' {aka 'struct caca_canvas *'} but argument is of type 'int *'
  502 | __extern caca_display_t * caca_create_display_with_driver(caca_canvas_t *,
      |                                                           ^~~~~~~~~~~~~~~
cc1: some warnings being treated as errors
make[4]: *** [Makefile:25395: video_output/libcaca_plugin_la-caca.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
access/linsys/linsys_hdsdi.c: In Funktion »Close«:
access/linsys/linsys_hdsdi.c:271:5: Warnung: Der Rückgabewert von »write«, der mit dem Attribut »warn_unused_result« deklariert wurde, wird ignoriert [-Wunused-result]
  271 |     write( p_sys->evfd, &(uint64_t){ 1 }, sizeof (uint64_t));
      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
make[4]: Leaving directory '/opt/.cache/yay/vlc-git/src/vlc/modules'
make[3]: *** [Makefile:34273: all-recursive] Error 1
make[3]: Leaving directory '/opt/.cache/yay/vlc-git/src/vlc/modules'
make[2]: *** [Makefile:14329: all] Error 2
make[2]: Leaving directory '/opt/.cache/yay/vlc-git/src/vlc/modules'
make[1]: *** [Makefile:1587: all-recursive] Error 1
make[1]: Leaving directory '/opt/.cache/yay/vlc-git/src/vlc'
make: *** [Makefile:1474: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

What to do?

UPDATE: According to https://code.videolan.org/videolan/vlc/-/issues/26389, this is due to libcaca being too new. This error occurs with libcaca-0.99beta-20.

JPL commented on 2021-11-30 21:14 (UTC)

I get the same compile error that Wennadocta has, but regarding koynoyno's workaround uninstalling either version of Lua on my system is not an option, as I have essential software that requires either.

DAC324 commented on 2021-09-14 16:22 (UTC) (edited on 2021-09-14 16:23 (UTC) by DAC324)

@andrewSC:

The following error related to pl_filter_haasnsoft is due to libplacebo upstream accidentally pulling the filter [1]. 

While reading through [1], I am not fully sure if it really was an accident. The problem admitted was that the haasnsoft filter was pulled without a previous deprecation warning. For now, it has been re-introduced in trunk but it remains deprecated:

extern const struct pl_filter_config pl_filter_haasnsoft PL_DEPRECATED;

Next, thanks a lot for your help with libplacebo-git:

You need to build `libplacebo-git` and install it in the chroot before building `vlc-git`. Here's a super quick update I did to the `PKGBUILD` [2] to get `libplacebo-git` to build (aur version was not building for me).

Meanwhile, the libplacebo-git maintainer has listened to feedback from comments and has separated the libplacebo-git 32 bit version from the 64 bit version. However, there are still a few things to be taken into consideration.

First, there seems to be a new dependency spirv-cross that needs to be included as otherwise, you get

Run-time dependency spirv-cross-c-shared found: NO (tried pkgconfig and cmake)

trying to build libplacebo-git. Next, there is

../libplacebo/src/meson.build:48:0: ERROR: C shared or static library 'version' not found

That can apparently be avoided by disabling d3d11 in the meson options in the PKGBUILD. See my comment to [2].

Once the next libplacebo release is cut, libplacebo-git shouldn't have to be built in order for this package to build correctly.

That commit was made on 06 May already,and it appears to be still not included in libplacebo releases :(

[1] https://github.com/haasn/libplacebo/commit/5a31ece1363c870071d1e13a5efe6956220380de [2] https://gist.github.com/andrewSC/6acfca87db8ed269f9a6b59d1c3f6a0e

koynoyno commented on 2021-07-15 06:13 (UTC)

Wennadocta, I had the same build error. I checked lua packages and turns out I have lua and lua52. Removing lua52 helped.

angauber commented on 2021-06-25 19:03 (UTC)

Installing the libplacebo-git package fixed the missing pl_filter_haasnsoft filter issue for me Thanks to andrewSC for pointing that out

Wennadocta commented on 2021-06-23 08:04 (UTC)

Can't build:

/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-dialog.o: in function `vlclua_create_widget_inner':
dialog.c:(.text+0xc3d): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-dialog.o: in function `vlclua_dialog_create':
dialog.c:(.text+0x1550): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-net.o: in function `vlclua_net_listen_tcp':
net.c:(.text+0xdfa): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-httpd.o: in function `vlclua_httpd_redirect_new':
httpd.c:(.text+0x94): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-httpd.o: in function `vlclua_httpd_tls_host_new':
httpd.c:(.text+0x6fa): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-httpd.o:httpd.c:(.text+0x98e): more undefined references to `lua_newuserdata' follow
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-strings.o: in function `vlclua_convert_xml_special_chars':
strings.c:(.text+0x2f0): undefined reference to `lua_remove'
/usr/bin/ld: strings.c:(.text+0x35c): undefined reference to `lua_remove'
/usr/bin/ld: strings.c:(.text+0x39e): undefined reference to `lua_remove'
/usr/bin/ld: strings.c:(.text+0x3e0): undefined reference to `lua_remove'
/usr/bin/ld: strings.c:(.text+0x42b): undefined reference to `lua_remove'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-strings.o:strings.c:(.text+0x46a): more undefined references to `lua_remove' follow
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-vlm.o: in function `vlclua_vlm_new':
vlm.c:(.text+0x22a): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-xml.o: in function `vlclua_xml_create':
xml.c:(.text+0xc): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-xml.o: in function `vlclua_xml_create_reader':
xml.c:(.text+0xcb): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-io.o: in function `vlclua_io_open':
io.c:(.text+0x113): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-renderers.o: in function `vlclua_rd_create':
renderers.c:(.text+0x1b): undefined reference to `lua_newuserdata'
  CCLD     libwl_idle_inhibit_plugin.la
collect2: error: ld returned 1 exit status
make[4]: *** [Makefile:17766: liblua_plugin.la] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/tmp/vlc-git/src/vlc/modules'
make[3]: *** [Makefile:34272: all-recursive] Error 1
make[3]: Leaving directory '/tmp/vlc-git/src/vlc/modules'
make[2]: *** [Makefile:14328: all] Error 2
make[2]: Leaving directory '/tmp/vlc-git/src/vlc/modules'
make[1]: *** [Makefile:1587: all-recursive] Error 1
make[1]: Leaving directory '/tmp/vlc-git/src/vlc'
make: *** [Makefile:1474: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

DAC324 commented on 2021-05-26 17:17 (UTC) (edited on 2021-05-26 18:13 (UTC) by DAC324)

Indeed, the ffmpeg-git conflict comes from chromaprint. It has to be replaced by chromaprint-fftw.

Reason why I wanted to install ffmpeg-git: The ffmpeg packages in the official repository come without support for vaapi and vdpau - in order to have this support enabled, ffmpeg has to be compiled with

--enable-vaapi
--enable-vdpau
--enable-hwaccel=h264_vdpau
--enable-postproc

(Sources: https://wiki.videolan.org/VLC_VAAPI/ and https://stackoverflow.com/questions/23289157/how-to-use-hardware-acceleration-with-ffmpeg)

With the standard ffmpeg package, VLC has problems using vdpau:

[h264 @ 0x7fd158012240] Failed setup for format vdpau: hwaccel initialisation returned error.

Furthermore, AV_PIX_FMT_VAAPI_VLD is deprecated (source: ffmpeg documentation, APICHANGES):

2015-08-19 - 9f8e57ef - lavu 54.31.100 - pixfmt.h
  Add a unique pixel format for VA-API (AV_PIX_FMT_VAAPI) that
  indicates the nature of the underlying storage: a VA surface. This
  yields the same value as AV_PIX_FMT_VAAPI_VLD.
  Deprecate old VA-API related pixel formats: AV_PIX_FMT_VAAPI_MOCO,
  AV_PIX_FMT_VAAPI_IDCT, AV_PIX_FMT_VAAPI_VLD.

Hence, it might make sense to apply this change to the VLC sources:

find . \( -type d -name .c -prune \) -o -type f -print0 | xargs -0 sed -i 's|AV_PIX_FMT_VAAPI_VLD|AV_PIX_FMT_VAAPI|g'

andrewSC commented on 2021-05-25 19:03 (UTC)

Why does this package conflict with ffmpeg-git?

It.. doesn't? Where do you see the conflict explicitly? The PKGBUILD doesn't explicitly list a conflicts with ffmpeg-git.

Fails to compile

I was able to compile 03674aee047f5b9e41d6f267592f79c7790326b1 in a chroot, following the instructions I provided, without issue. Given the pathing of the error message i'm suspicious if it's not an out-of-date dep on your system.