How to install apps that need ffmpeg

Discussions Regarding Software

Moderator: Moderators

How to install apps that need ffmpeg

Postby hieronimus » Thu Apr 20, 2017 23:22

Hello, help me install softwares like media-video/mpv or media-video/handbrake. What can I do usual to bypass this condition: use only libav.
Ie, I almost build media-video/handbrake package by manipulating USE-flags but it fails with errors in libav module.
Code: Select all
../libhb/avfilter.c: In function ‘avfilter_init’:
../libhb/avfilter.c:274:13: error: ‘AVFilterLink’ has no member named ‘frame_rate’
     if (link->frame_rate.num > 0 && link->frame_rate.den > 0)
             ^
../libhb/avfilter.c:274:41: error: ‘AVFilterLink’ has no member named ‘frame_rate’
     if (link->frame_rate.num > 0 && link->frame_rate.den > 0)
                                         ^
../libhb/avfilter.c:276:38: error: ‘AVFilterLink’ has no member named ‘frame_rate’
         init->vrate.num        = link->frame_rate.num;
                                      ^
../libhb/avfilter.c:277:38: error: ‘AVFilterLink’ has no member named ‘frame_rate’
         init->vrate.den        = link->frame_rate.den;
                                      ^
make: *** [../libhb/module.rules:12: libhb/avfilter.o] Error 1
make: *** Waiting for unfinished jobs...

Similar story with tox client, which not use libav at all
hieronimus
Young Hen
 
Posts: 25
Joined: Mon Oct 29, 2012 15:18
Location: Ukraine

Re: How to install apps that need ffmpeg

Postby linuxfluesterer » Fri Apr 21, 2017 18:06

You have Sabayon, right?
Because mpv is in repo of Sabayonlinux.org, see:
Code: Select all
@@ Paket: media-video/mpv-0.22.0-r1 Branch: 5, [sabayonlinux.org]
╠          Verfügbar:      Version: 0.22.0-r1 ~ tag: NoTag ~ Version: 1
╠          Installiert:    Version: 0.22.0-r1 ~ tag: NoTag ~ Version: 1
╠          Slot:           0
╠          Homepage:       https://mpv.io/
╠          Beschreibung:   Media player based on MPlayer and
╠                          mplayer2
╠          Lizenz:         BSD GPL-2+ ISC
╠   Schlüsselwörter:  mpv
╠   Gefunden:         2 Einträge


and it works on my system (Sabayon Plasma 5.9.4 64bit with Kernel 4.9.23).
If you want to use non-repo programs like handbrake, then you can install portage on your system,. Here you can find many non Sabayon programs.
Have a look on this thread:
https://forum.sabayon.org/viewtopic.php?f=57&t=33635&p=179516&hilit=handbrake#p179516

But... maybe I missunderstand your intention. Anyway, I hope to help you.

-Linuxfluesterer (I love KDE ...)
Take away Facebook from me and let there be real people again...
User avatar
linuxfluesterer
Old Dear Hen
 
Posts: 802
Joined: Thu Sep 20, 2012 19:47
Location: Germany

Re: How to install apps that need ffmpeg

Postby hieronimus » Mon Apr 24, 2017 12:57

Thankful for envolvement, but binary package is out of date in some degree.
https://github.com/mpv-player/mpv/releases
I can create Issue and create request for package for developers.But there are still other packages with a similar problem.
Yeah, I am actively and often using portage but there are some obstacles any way: like system-wide use-flags, сhange of which can lead to problems
hieronimus
Young Hen
 
Posts: 25
Joined: Mon Oct 29, 2012 15:18
Location: Ukraine

Re: How to install apps that need ffmpeg

Postby hieronimus » Fri Aug 11, 2017 23:22

Lack of ffmpeg goes on. Fly in the ointment of the Sabayon, that make it very limited in capacity. Today I can add to impossible to install peek and gifine packages.
Why so pressure of users, why they must suffer?
hieronimus
Young Hen
 
Posts: 25
Joined: Mon Oct 29, 2012 15:18
Location: Ukraine

Re: How to install apps that need ffmpeg

Postby svantoviit » Sat Aug 12, 2017 23:05

hieronimus wrote:I am actively and often using portage but there are some obstacles any way: like system-wide use-flags, сhange of which can lead to problems

You can set individual use flags for a each package. But yes, you can't have ffmpeg and libav installed at the same time.
When it comes to the hanbrake emerge fail, try to ask in the gentoo forums ;)

hieronimus wrote:Today I can add to impossible to install peek and gifine packages.
Why so pressure of users, why they must suffer?

Poor you, but there are other also ways to create animated gifs. Just try it with imagemagick.
svantoviit
Old Dear Hen
 
Posts: 706
Joined: Sun Feb 28, 2010 17:55

Re: How to install apps that need ffmpeg

Postby Stupot » Wed Aug 30, 2017 21:57

svantoviit wrote:
hieronimus wrote:Today I can add to impossible to install peek and gifine packages.
Why so pressure of users, why they must suffer?

Poor you, but there are other also ways to create animated gifs. Just try it with imagemagick.


I don't think "use this other app" is a great stance to have. I know on the mailing list there's been some discussions concerning our use of libav vs ffmpeg and these sort of issues need to be brought to light. Users should feel free to bring them up or else the developers won't know the pains they are dealing with.
Stupot
Sagely Hen
 
Posts: 1608
Joined: Wed Feb 14, 2007 3:44
Location: St. Louis, MO, USA

Re: How to install apps that need ffmpeg

Postby svantoviit » Thu Aug 31, 2017 0:19

Sorry, but peek and gifine are niche apps. You wont find them in Debian, Fedora nor Arch. And there are other ways creating an animated gif.

There is an ebuild for peek in the main portage tree. If it fails the OP should file a bug or ask where appropriate.
Beside that, there are alternative ways of installation described on github: https://github.com/phw/peek.

Compiling from source works like a charm. You have to install the dependencies first. If something is missing, the compiler will complain. I had to install dev-lang/vala, dev-libs/keybinder:3 and app-text/txt2man. The last one is optional and needed only in order to generate the manpages.
Code: Select all
$ git clone https://github.com/phw/peek.git
$ mkdir peek/build
$ cd peek/build
$ cmake -DVALA_EXECUTABLE:NAMES=valac-0.36 -DCMAKE_INSTALL_PREFIX=/usr ..
$ make
Note, you have to define the vala-compiler name depending on what you have installed. Hint: valac TAB TAB

You can run it directly from the build directory then:
Code: Select all
./peek
Works without any issues here even with libav :P

Or install it system wide as suggested in the README as well:
Code: Select all
sudo make install

But compiling and installing it this way is absolutely not necessary! There is an updated ebuild in the frabjous overlay which removes the dependency on ffmpeg and replaces it correctly with the virtual. It compiles smoothly. You can install it with Portage from the overlay or via a local overlay.

The installation of gifine is described in detail in the README: https://github.com/leafo/gifine. But it requires a lot of crap to install as deps so I would rather avoid it. Compiz? Just for creating a gif? Serious?

Just don't be lazy and afraid of getting your hands dirty :roll:
svantoviit
Old Dear Hen
 
Posts: 706
Joined: Sun Feb 28, 2010 17:55

Re: How to install apps that need ffmpeg

Postby svantoviit » Sat Sep 16, 2017 13:59

According the latest changes to the Portage config files in Sabayon, it seems you've been heard and we are migrating back to ffmpeg.
svantoviit
Old Dear Hen
 
Posts: 706
Joined: Sun Feb 28, 2010 17:55


Return to Software in General

Who is online

Users browsing this forum: No registered users and 1 guest