Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

install AV fails - libavfilter not found #6

Closed
mbmott opened this issue Oct 26, 2018 · 5 comments
Closed

install AV fails - libavfilter not found #6

mbmott opened this issue Oct 26, 2018 · 5 comments

Comments

@mbmott
Copy link

mbmott commented Oct 26, 2018

Hello,

I have ffmpeg-devel installed, I have a libavfilter.pc in my PKG_CONFIG_PATH and pkg-config is in my PATH, however, the install still fails complaining about libavfilter not found. Is there something obvious I'm missing here?

Thanks in advance.

@jeroen
Copy link
Member

jeroen commented Oct 26, 2018

Please include your operating system and install output.

@mbmott
Copy link
Author

mbmott commented Oct 26, 2018

RHEL6

  • installing source package ‘av’ ...
    ** package ‘av’ successfully unpacked and MD5 sums checked
    Using PKG_CFLAGS=
    Using PKG_LIBS=-lavfilter
    ------------------------- ANTICONF ERROR ---------------------------
    Configuration failed because libavfilter was not found. Try installing:
  • deb: libavfilter-dev (Debian, Ubuntu 18.04 and up)
  • rpm: ffmpeg-devel (https://rpmfusion.org) (Fedora, CentOS, RHEL)
  • csw: ffmpeg_dev (Solaris)
    For Ubuntu versions Trusty (14.04) and Xenial (16.04) use this PPA:
    sudo add-apt-repository -y ppa:jonathonf/ffmpeg-3
    sudo apt-get update
    sudo apt-get install -y libavfilter-dev
    If libavfilter is already installed, check that 'pkg-config' is in your
    PATH and PKG_CONFIG_PATH contains a libavfilter.pc file. If pkg-config
    is unavailable you can set INCLUDE_DIR and LIB_DIR manually via:
    R CMD INSTALL --configure-vars='INCLUDE_DIR=... LIB_DIR=...'

ERROR: configuration failed for package ‘av’

  • removing ‘/usr/lib64/R/library/av’

The downloaded source packages are in
‘/tmp/RtmpGtyZs3/downloaded_packages’
Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
Warning message:
In install.packages("av", dependencies = TRUE, repos = "http://cran.rstudio.com/") :
installation of package ‘av’ had non-zero exit status

@jeroen
Copy link
Member

jeroen commented Oct 26, 2018

Which version of ffmpeg do you have? You need at least 3.2.

@mbmott
Copy link
Author

mbmott commented Oct 26, 2018

Ahh. That's going to be the problem then. Thanks for your help.

@jeroen
Copy link
Member

jeroen commented Oct 26, 2018

Yeah all stock packages on RHEL are super old, it's a common problem :( I guess you need to build ffmpeg from source.

@jeroen jeroen closed this as completed Oct 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants