Package Details: vlc-luajit 3.0.21-10

Git Clone URL: https://aur.archlinux.org/vlc-luajit.git (read-only, click to copy)
Package Base: vlc-luajit
Description: Multi-platform MPEG, VCD/DVD, and DivX player built with luajit for OBS Studio compatibility
Upstream URL: https://www.videolan.org/vlc/
Keywords: luajit media obs obs-studio vlc
Licenses: GPL-2.0-or-later, LGPL-2.1-or-later
Conflicts: vlc, vlc-dev, vlc-plugin, vlc-stable-git
Provides: vlc
Submitter: tytan652
Maintainer: tytan652
Last Packager: tytan652
Votes: 23
Popularity: 0.71
First Submitted: 2021-05-11 19:45 (UTC)
Last Updated: 2025-03-02 11:31 (UTC)

Required by (156)

Sources (5)

Pinned Comments

Latest Comments

« First ‹ Previous 1 2 3 4 5 6 7 Next › Last »

tytan652 commented on 2022-07-20 18:46 (UTC) (edited on 2022-07-20 18:53 (UTC) by tytan652)

I just forgot to remove the optional deps.

And latest versions VLC 3 do support being built with FFmpeg 5 just without VAAPI.

https://code.videolan.org/videolan/vlc/-/merge_requests/1245

Sorry to disappoint you but I stick with FFmpeg 5.

I forgot to specify that on Arch Linux side ffmpeg4.4 will be progressively phased out.

https://archlinux.org/todo/ffmpeg44-removal/

HurricanePootis commented on 2022-07-20 17:34 (UTC) (edited on 2022-07-20 17:43 (UTC) by HurricanePootis)

I'm rather confused by the fact that while this package lists VAAPI drivers as optional dependencies, and at line 266 --enable-libva is listed, why at line 335 is there a conflicting --disable-libva?

EDIT: So, vlc 3.0x is not supposed to be built with ffmpeg 5, which your package is doing incorrectly. If you look at the official VLC package, they use ffmpeg4.4 because VAAPI won't work with VLC on ffmpeg5, and even the official vlc developers said they have no plans to support ffmpeg5 on the vlc 3.0 branch here.

Here is a patch file to build with ffmpeg4.4 and re-enable VAAPI

diff --git a/PKGBUILD b/PKGBUILD
index 7cd6f81..e23965b 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -7,7 +7,7 @@ _vlcver=3.0.17.4
 # optional fixup version including hyphen
 _vlcfixupver=
 pkgver=${_vlcver}${_vlcfixupver//-/.r}
-pkgrel=8
+pkgrel=9
 pkgdesc='Multi-platform MPEG, VCD/DVD, and DivX player built with luajit for OBS Studio compatibility'
 url='https://www.videolan.org/vlc/'
 arch=('i686' 'x86_64' 'aarch64')
@@ -26,7 +26,7 @@ depends=(
   'a52dec' 'libdvbpsi' 'libxpm' 'libdca' 'libproxy' 'luajit' 'libidn'
   'libmatroska' 'taglib' 'libmpcdec' 'faad2' 'libmad'
   'libmpeg2' 'xcb-util-keysyms' 'libtar' 'libxinerama' 'libsecret'
-  'libarchive' 'qt5-base' "ffmpeg>=5"
+  'libarchive' 'qt5-base' "ffmpeg4.4"
   'qt5-x11extras' 'qt5-svg' 'freetype2' 'fribidi' 'harfbuzz'
   'fontconfig' 'libxml2' 'gnutls' 'libplacebo' 'wayland-protocols'
 )
@@ -233,6 +233,7 @@ build() {
   export LUA_LIBS="$(pkg-config --libs luajit)"
   export LUA_CFLAGS="$(pkg-config --cflags luajit)"
   export RCC=/usr/bin/rcc-qt5
+  export PKG_CONFIG_PATH="/usr/lib/ffmpeg4.4/pkgconfig/:$PKG_CONFIG_PATH"

   ./configure \
     --prefix=/usr \

Alkaris commented on 2022-06-26 03:21 (UTC)

Why is it this package has to conflict with itself. vlc-luajit is required by OBS, but when you go to install VLC, it complains its in conflict with itself, despite the fact it's the exact same package used by OBS, and wants to uninstall itself when trying to install VLC. Instead I have to jump through hoops to ignore the vlc-luajit package altogether by extracting the package and adding an ignore rule to it. Because if I don't do that, it fucks with OBS that's already installed, preventing OBS from working at all.

lwg-galuise commented on 2022-05-06 19:54 (UTC)

That worked! Thank you thank you thank you very much!

tytan652 commented on 2022-05-06 19:00 (UTC)

@lwg-galuise I just happen to have pushed the fix with the 3.0.17.4-5

lwg-galuise commented on 2022-05-06 18:53 (UTC) (edited on 2022-05-06 18:55 (UTC) by lwg-galuise)

I can't seem to get this to build. It's complaining about the dav1d encoder code:

In file included from codec/dav0d.c:33:
codec/dav0d.c: In function ‘vlc_entry__3_0_0f’:
codec/dav0d.c:66:57: error: ‘DAV1D_MAX_FRAME_THREADS’ undeclared (first use in this function); did you mean ‘DAV1D_MAX_THREADS’?
    65 |     add_integer_with_range("dav1d-thread-frames", 0, 0, DAV1D_MAX_FRAME_THREADS,
        |                                                         ^~~~~~~~~~~~~~~~~~~~~~~
../include/vlc_plugin.h:245:54: note: in definition of macro ‘vlc_config_set’
  245 | #define vlc_config_set(...) vlc_set (opaque, config, __VA_ARGS__)
        |                                                      ^~~~~~~~~~~
../include/vlc_plugin.h:433:5: note: in expansion of macro ‘change_integer_range’
  433 |     change_integer_range( i_min, i_max )
        |     ^~~~~~~~~~~~~~~~~~~~
codec/dav0d.c:66:5: note: in expansion of macro ‘add_integer_with_range’
    65 |     add_integer_with_range("dav1d-thread-frames", 0, 0, DAV1D_MAX_FRAME_THREADS,
        |     ^~~~~~~~~~~~~~~~~~~~~~
codec/dav0d.c:66:57: note: each undeclared identifier is reported only once for each function it appears in
    65 |     add_integer_with_range("dav1d-thread-frames", 0, 0, DAV1D_MAX_FRAME_THREADS,
        |                                                         ^~~~~~~~~~~~~~~~~~~~~~~

I did try swapping out the "extra/dav1d 1.0.0-1" Arch package for https://aur.archlinux.org/packages/dav1d-git to no avail.

ArchBoxHero commented on 2022-03-01 17:10 (UTC) (edited on 2022-03-01 17:12 (UTC) by ArchBoxHero)

Thanks for the info @tytan652. I have no issue getting it to build manually replacing the "ffmpeg" version to the "ffmpeg-amd-full" version and looks good.

tytan652 commented on 2022-03-01 14:57 (UTC) (edited on 2022-03-01 14:59 (UTC) by tytan652)

I can't add it, every FFmpeg package should add in there provide this "ffmpeg=$pkgver". But this is not a requirement.

It allow me to avoid that this package is built with FFmpeg 4. You can replace "ffmpeg>=5" by "ffmpeg" in VLC PKGBUILD. Or ask the maintainer of your FFmpeg package to add "ffmpeg=$pkgver" in provided package.

ArchBoxHero commented on 2022-03-01 14:53 (UTC)

Hey @tytan652 -I've swapped out the ffmpeg>=5 with ffmpeg-amd-full>=5 in the PKBUILD. Could you add it? Thanks.