Package Details: vlc-git 4.0.0.r15273.g03674aee04-1

Git Clone URL: https://aur.archlinux.org/vlc-git.git (read-only, click to copy)
Package Base: vlc-git
Description: A multi-platform MPEG, VCD/DVD, and DivX player (GIT Version)
Upstream URL: https://www.videolan.org/vlc/
Licenses: GPL2, LGPL2.1
Conflicts: vlc, vlc-dev, vlc-plugin, vlc-stable-git
Provides: vlc=4.0.0.r15273.g03674aee04
Submitter: None
Maintainer: andrewSC
Last Packager: andrewSC
Votes: 200
Popularity: 0.020181
First Submitted: 2008-04-01 12:14
Last Updated: 2021-05-13 21:45

Dependencies (162)

Required by (141)

Sources (4)

Latest Comments

1 2 3 4 5 6 ... Next › Last »

francoism90 commented on 2021-10-20 10:45

Anyone able to compile this?

In file included from ../include/vlc_common.h:533,
                 from hw/vdpau/avcodec.c:34:
In function ‘Get’,
    inlined from ‘Lock’ at hw/vdpau/avcodec.c:115:36:
../include/vlc_threads.h:882:14: warning: call to ‘harmful_delay.constprop’ declared with attribute warning: use proper event handling instead of short delay [-Wattribute-warning]
  882 |            ? harmful_delay(d) \
      |              ^~~~~~~~~~~~~~~~
../include/vlc_threads.h:901:42: note: in expansion of macro ‘check_delay’
  901 | #define vlc_tick_sleep(d) vlc_tick_sleep(check_delay(d))
      |                                          ^~~~~~~~~~~
hw/vdpau/avcodec.c:106:9: note: in expansion of macro ‘vlc_tick_sleep’
  106 |         vlc_tick_sleep(VOUT_OUTMEM_SLEEP);
      |         ^~~~~~~~~~~~~~
  CC       video_filter/deinterlace/libdeinterlace_plugin_la-helpers.lo
  CC       video_filter/deinterlace/libdeinterlace_plugin_la-algo_basic.lo
  CC       video_filter/deinterlace/libdeinterlace_plugin_la-algo_x.lo
In file included from video_filter/../video_output/opengl/vout_helper.h:35,
                 from video_filter/opengl.c:33:
video_filter/../video_output/opengl/../placebo_utils.h:322:36: error: ‘pl_filter_haasnsoft’ undeclared here (not in a function); did you mean ‘pl_filter_gaussian’?
  322 |     [SCALE_HAASNSOFT]           = &pl_filter_haasnsoft,
      |                                    ^~~~~~~~~~~~~~~~~~~
      |                                    pl_filter_gaussian
make[4]: *** [Makefile:26739: video_filter/libopengl_filter_plugin_la-opengl.lo] Error 1
make[4]: *** Waiting for unfinished jobs....
make[4]: Leaving directory '/build/vlc-git/src/vlc/modules'
make[3]: *** [Makefile:34273: all-recursive] Error 1
make[3]: Leaving directory '/build/vlc-git/src/vlc/modules'
make[2]: *** [Makefile:14329: all] Error 2
make[2]: Leaving directory '/build/vlc-git/src/vlc/modules'
make[1]: *** [Makefile:1587: all-recursive] Error 1
make[1]: Leaving directory '/build/vlc-git/src/vlc'
make: *** [Makefile:1474: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...
==> ERROR: Build failed, check /var/lib/archbuild/extra-x86_64/archie/build

DAC324 commented on 2021-09-14 16:22

@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

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

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

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

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

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.

DAC324 commented on 2021-05-25 16:10

Fails to compile:

/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-dialog.o: in function `vlclua_create_widget_inner':
dialog.c:(.text+0xc2d): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-dialog.o: in function `vlclua_dialog_create':
dialog.c:(.text+0x1538): 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+0xd6a): 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+0x90): 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+0x6ba): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-httpd.o:httpd.c:(.text+0x94e): 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+0x2dc): undefined reference to `lua_remove'
/usr/bin/ld: strings.c:(.text+0x348): undefined reference to `lua_remove'
/usr/bin/ld: strings.c:(.text+0x38a): undefined reference to `lua_remove'
/usr/bin/ld: strings.c:(.text+0x3cc): undefined reference to `lua_remove'
/usr/bin/ld: strings.c:(.text+0x417): undefined reference to `lua_remove'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-strings.o:strings.c:(.text+0x456): 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+0x212): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-xml.o: in function `vlclua_xml_create':
xml.c:(.text+0x8): 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+0xb7): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-io.o: in function `vlclua_io_open':
io.c:(.text+0x10b): undefined reference to `lua_newuserdata'
/usr/bin/ld: lua/libs/.libs/liblua_plugin_la-renderers.o: in function `vlclua_rd_create':
renderers.c:(.text+0x17): undefined reference to `lua_newuserdata'
collect2: error: ld returned 1 exit status

Fix for that kind of errors: Uninstall ALL lua packages, such as lua, lua51 and lua52. Afterwards, run makepkg --syncdeps which retrieves and installs the latest lua package, and then try again.

Unfortunately, for me, this only leads to the next error:

In file included from video_output/opengl/vout_helper.h:35,
                 from video_output/opengl/vout_helper.c:46:
video_output/opengl/../placebo_utils.h:322:36: error: 'pl_filter_haasnsoft' undeclared here (not in a function); did you mean 'pl_filter_gaussian'?
  322 |     [SCALE_HAASNSOFT]           = &pl_filter_haasnsoft,
      |                                    ^~~~~~~~~~~~~~~~~~~
      |                                    pl_filter_gaussian
make[4]: *** [Makefile:27837: video_output/opengl/libvlc_opengl_la-vout_helper.lo] Error 1

Looks like this one can be avoided by installing libplacebo-git as indicated in earlier comments.

DAC324 commented on 2021-05-25 14:16

Why does this package conflict with ffmpeg-git?

UPDATE: Found the problem - it is the chromaprint package. In order to use ffmpeg-git, you will have to install chromaprint-fftw from AUR.

andrewSC commented on 2021-05-13 21:49

Ok, so after a little bit of testing I was able to get this to build correctly in chroot.

Basically the first part with live555, that is fixed with the latest push (I added a patch from vlc in [extra]). The following error related to pl_filter_haasnsoft is due to libplacebo upstream accidentally pulling the filter [1]. 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).

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

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