You are not logged in.

#1 2014-04-08 16:04:32

goowi
Member
Registered: 2014-03-14
Posts: 11

Is it possible to install ffmpeg and libav together ?

Hello,

I have an application (KeyFinder) that requires libav...

when I install libav I have to un-install ffmpeg..which breaks several other applications...VLC, MPD, etc..

Is there any way to just install libav for KeyFinder so it wont break the other applications?

Any help is very appreciated!
-Thanks

Offline

#2 2014-04-08 16:45:41

clfarron4
Member
From: London, UK
Registered: 2013-06-28
Posts: 2,165
Website

Re: Is it possible to install ffmpeg and libav together ?

By the looks of it, libav provides the ffmpeg package, so try installing libav first.


Claire is fine.
Problems? I have dysgraphia, so clear and concise please.
My public GPG key for package signing
My x86_64 package repository

Offline

#3 2014-04-08 16:53:38

goowi
Member
Registered: 2014-03-14
Posts: 11

Re: Is it possible to install ffmpeg and libav together ?

I have had libav installed and when I try to install ffmpeg it has to be removed..which after a reboot breaks VLC and MPD and a few other apps that depend on ffmpeg.
Either way I go, libav first or ffmpeg first, things are broken..

I am wondering if there is a way to install libav separately just for the KeyFinder application..which will leave ffmpeg alone and keep my other apps from breaking.

Offline

#4 2014-04-08 17:06:17

Scimmia
Fellow
Registered: 2012-09-01
Posts: 13,654

Re: Is it possible to install ffmpeg and libav together ?

You could install it to a separate directory, then start the program in question with LD_LIBRARY_PATH=<path>

Edit: That's assuming it's just using the libraries. If it's using the executables in /usr/bin, this won't work.

Last edited by Scimmia (2014-04-08 17:13:13)

Offline

#5 2014-04-08 17:19:28

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Is it possible to install ffmpeg and libav together ?

Have you simply tried building it with ffmpeg?

Offline

#6 2014-04-08 17:37:14

goowi
Member
Registered: 2014-03-14
Posts: 11

Re: Is it possible to install ffmpeg and libav together ?

I have tried building it with ffmpeg yes, here is the result

==> Starting build()...
/usr/lib/qt/bin/uic forms/aboutdialog.ui -o ui/ui_aboutdialog.h
/usr/lib/qt/bin/uic forms/batchwindow.ui -o ui/ui_batchwindow.h
/usr/lib/qt/bin/uic forms/detailwindow.ui -o ui/ui_detailwindow.h
/usr/lib/qt/bin/uic forms/prefsdialog.ui -o ui/ui_prefsdialog.h
g++ -c -pipe -D__STDC_CONSTANT_MACROS -march=x86-64 -mtune=generic -O2 -pipe -fstack-protector --param=ssp-buffer-size=4 -Wall -W -D_REENTRANT -fPIE -DQT_NO_DEBUG -DQT_XMLPATTERNS_LIB -DQT_WIDGETS_LIB -DQT_XML_LIB -DQT_NETWORK_LIB -DQT_CONCURRENT_LIB -DQT_GUI_LIB -DQT_CORE_LIB -I/usr/lib/qt/mkspecs/linux-g++ -I. -I/usr/include/qt -I/usr/include/qt/QtXmlPatterns -I/usr/include/qt/QtWidgets -I/usr/include/qt/QtXml -I/usr/include/qt/QtNetwork -I/usr/include/qt/QtConcurrent -I/usr/include/qt/QtGui -I/usr/include/qt/QtCore -I. -Iui -o asynckeyprocess.o source/asynckeyprocess.cpp
In file included from source/asynckeyprocess.h:36:0,
                 from source/asynckeyprocess.cpp:22:
source/decoderlibav.h:70:3: error: ‘ReSampleContext’ does not name a type
   ReSampleContext* rsCtx;
   ^
Makefile:2275: recipe for target 'asynckeyprocess.o' failed
make: *** [asynckeyprocess.o] Error 1

Offline

#7 2014-04-08 17:58:04

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: Is it possible to install ffmpeg and libav together ?

goowi wrote:

I have tried building it with ffmpeg yes, here is the result

... snip ...

I found your earlier AUR post by searching for your error. Bummer! What Scimmia posted may be your only solution other than rebuilding everything else that requires ffmpeg against libav.

Offline

#8 2014-04-08 18:05:14

goowi
Member
Registered: 2014-03-14
Posts: 11

Re: Is it possible to install ffmpeg and libav together ?

OKay! Thanks for your help!

How do I install libav to a specific directory?

I am a big yaourt user, so if you can instruct me how to do it using yaourt that would be awesome! but if not I will build it manually and install to a specific directory.

thank you everyone for your time and assistance!!

Offline

#9 2014-04-08 18:59:26

progandy
Member
Registered: 2012-05-17
Posts: 5,306

Re: Is it possible to install ffmpeg and libav together ?

I can compile "keyfinder-git" with ffmpeg 1:2.2-2 and a very small sed-patch in the PKGBUILD:

build() {
  cd $_gitname
  qmake-qt5
  sed -i "s/^DEFINES *=/& -DAVCODEC_MAX_AUDIO_FRAME_SIZE=192000 /" Makefile
  make
}

Edit: For a good fix you should move to the new API with e.g. av_frame_alloc and remove calls to deprecated API functions.

Last edited by progandy (2014-04-08 19:13:04)


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#10 2014-04-08 19:51:32

goowi
Member
Registered: 2014-03-14
Posts: 11

Re: Is it possible to install ffmpeg and libav together ?

awesome progandy! so i add that in ffmpeg's or keyfinders PKGBUILD?

and to your edit, what exactly does that imply i do, or where really might be a better question.

You'll have to excuse me, I am still somewhat of a novice when it come to some of this stuff:P

Offline

#11 2014-04-08 20:31:15

progandy
Member
Registered: 2012-05-17
Posts: 5,306

Re: Is it possible to install ffmpeg and libav together ?

goowi wrote:

awesome progandy! so i add that in ffmpeg's or keyfinders PKGBUILD?

You modify the keyfinder PKGBUILD.

and to your edit, what exactly does that imply i do, or where really might be a better question.

That implies changing the keyfinder sourcecode and use newer libav/ffmpeg functions which are meant to replace the deprecated stuff. Since this is a larger task, I do not think it is something you can do. (If you don't want to learn writing code).


| alias CUTF='LANG=en_XX.UTF-8@POSIX ' | alias ENGLISH='LANG=C.UTF-8 ' |

Offline

#12 2014-04-08 21:11:04

goowi
Member
Registered: 2014-03-14
Posts: 11

Re: Is it possible to install ffmpeg and libav together ?

That sed-patch did not work for me actually. Still get the same error.

Offline

Board footer

Powered by FluxBB