You are not logged in.

#1 2014-04-28 21:32:02

Infinity
Member
From: EU
Registered: 2013-12-16
Posts: 18

ffmpeg shouldn't have a X dependency

Hello,

I am trying to install the "ffmpeg" package to process some images and videos. Whenever I try to install the package it will pull a lot of unneeded dependencies including SDL, libgl/mesa, some xorg stuff, wayland, etc. Basically my device is a server, so any DE's (desktop environments) are unwelcome. I found this existing thread though I'm not completely clear about it: https://bbs.archlinux.org/viewtopic.php?id=170059

So I was wondering if there is a way for pacman to not install (ignore) certain package dependencies that will never be used. I am trying to avoid having to recompile ffmpeg from source. Perhaps may I suggest that a new "ffmpeg-server" metapackage be added to pacman database that does not include the DE dependencies and stuff like SDL, mesa, libgl, etc.

Thanks.

Last edited by Infinity (2014-04-29 07:07:35)

Offline

#2 2014-04-28 21:42:44

Xyne
Administrator/TU
Registered: 2008-08-03
Posts: 6,861
Website

Re: ffmpeg shouldn't have a X dependency

Package variants will generally not be added to the official repos. As for dependencies, the upstream defaults are used.* If you want to strip out some of the dependencies for things that you don't need, you can easily rebuild the package using the PKGBUILD and makepkg. I understand that you would prefer a pre-compiled binary package but using makepkg is as simple as

makepkg -irs

in this case.

ABS is the standard way to customize Arch packages when the repo versions do not suit you.

Moved to Creating & Modifying Packages.



* Of course, if you truly believe that certain dependencies should be removed as they are of no benefit to most users (and not expected by default) then you may open a bug report to discuss their removal.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#3 2014-04-28 21:57:17

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 26,860
Website

Re: ffmpeg shouldn't have a X dependency

FWIW, "DE" is very much the wrong term here.  ffmpeg most certainly does not require a DE - it doesn't even require a WM.  It does, however, require an X server.  I can see how this might be undesirable - but the oddity/inaccuracy of the thread title made me wonder what this was all really about.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#4 2014-04-29 07:07:15

Infinity
Member
From: EU
Registered: 2013-12-16
Posts: 18

Re: ffmpeg shouldn't have a X dependency

Xyne: Thank you for your reply, I will take a look at the suggestions.

Trilby: Thanks, perhaps DE wasn't the proper word here. I've edited the title name.


EDIT: By the looks of it ABS is meant to compile the package. Is there a way to avoid recompiling from source? I do not wish to have base_devel installed on a server.
EDIT2: Hmm, this looks interesting: https://bbs.archlinux.org/viewtopic.php?id=88889

Last edited by Infinity (2014-04-29 08:01:45)

Offline

#5 2014-04-29 11:01:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 26,860
Website

Re: ffmpeg shouldn't have a X dependency

You could compile the alternative version on another computer and just install the built package to the server.  However simply removing (or preventing the installation of) those undesired dependencies will not work.  The fmpeg binary in the repos *requires* that those dependencies are present on the system because it is built with flags that include those libraries.

There is a "ffmpeg-nox" PKGBUILD already in the AUR.  I'd bet this is exactly what you need.  But you'd still need to build it.  But again, this can be done on a different computer than the server.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#6 2014-04-29 17:55:53

Infinity
Member
From: EU
Registered: 2013-12-16
Posts: 18

Re: ffmpeg shouldn't have a X dependency

Yeah, I will also have to setup cross-compilation environment.

BTW, whats the chance that this "bug" gets fixed, if I file a bug report?

Offline

#7 2014-04-29 18:41:09

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 26,860
Website

Re: ffmpeg shouldn't have a X dependency

None.  It's not a bug.

https://wiki.archlinux.org/index.php/Re … feature.3F

Last edited by Trilby (2014-04-29 18:44:51)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#8 2014-04-29 18:41:45

kokoko3k
Member
Registered: 2008-11-14
Posts: 2,308

Re: ffmpeg shouldn't have a X dependency

No hope.
Asking devs to remove X from ffmpeg dependancies, will make the majority of users to complain because they cannot use it any X related functions anymore.
One for all, desktop capturing smile


Help me to improve ssh-rdp !

Offline

#9 2014-04-30 10:28:48

Barthalion
Forum Fellow
From: Poland
Registered: 2010-02-26
Posts: 111

Re: ffmpeg shouldn't have a X dependency

kokoko3k already wrote why removing X.org related dependencies would be a bad idea. Additionally I'm completely not interested in maintaing "nox" variant anywhere, so ABS/AUR is your friend here.

Offline

#10 2014-05-16 16:44:24

DrZaius
Member
Registered: 2008-01-02
Posts: 193

Re: ffmpeg shouldn't have a X dependency

X stuff is for enabling x11grab as an input device for screen capturing (as already mentioned). Remove "--enable-x11grab" from configure if you want to disable that.
SDL is for ffplay. Remove sdl from depends if you don't want that.

Offline

#11 2014-05-16 19:45:30

chaonaut
Member
From: Kyiv, Ukraine
Registered: 2014-02-05
Posts: 382

Re: ffmpeg shouldn't have a X dependency

wow! thanks.
i'm going to make nox version of ffmpeg for my headless boxes, this information will definitely speed up the process.

p.s. someday i'll put it to AUR, but will test it first.


— love is the law, love under wheel, — said aleister crowley and typed in his terminal:
usermod -a -G wheel love

Offline

#12 2014-05-16 22:05:08

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: ffmpeg shouldn't have a X dependency

Trilby wrote:

There is a "ffmpeg-nox" PKGBUILD already in the AUR.

Offline

Board footer

Powered by FluxBB