Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 679964 - media-video/handbrake-1.2.2-r1 - fatal error: mfx/mfxvideo.h: No such file or directory
Summary: media-video/handbrake-1.2.2-r1 - fatal error: mfx/mfxvideo.h: No such file or...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ian Whyman (thev00d00) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-03-10 18:31 UTC by Chris Faulkner
Modified: 2019-03-12 21:55 UTC (History)
10 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (emergeinfo.txt,6.79 KB, text/plain)
2019-03-10 18:31 UTC, Chris Faulkner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Faulkner 2019-03-10 18:31:33 UTC
Created attachment 568478 [details]
emerge --info

The previous error of nvenc was fixed, but now a new problem has cropped up.
Comment 1 Chris Faulkner 2019-03-10 18:49:03 UTC
checking for gcc... /usr/bin/gcc
In file included from ../libhb/internal.h:13,
                 from ../libhb/common.h:97,
                 from ../libhb/hb.h:17,
                 from ../libhb/hb.c:10:
../libhb/qsv_libav.h:119:10: fatal error: mfx/mfxvideo.h: No such file or directory
 #include "mfx/mfxvideo.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../libhb/internal.h:13,
                 from ../libhb/common.h:97,
                 from ../libhb/hb.h:17,
                 from ../libhb/decavcodec.c:41:
../libhb/qsv_libav.h:119:10: fatal error: mfx/mfxvideo.h: No such file or directory
 #include "mfx/mfxvideo.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
make: *** [../libhb/module.rules:12: libhb/decavcodec.o] Error 1
make: *** Waiting for unfinished jobs....
make: *** [../libhb/module.rules:12: libhb/hb.o] Error 1
In file included from ../libhb/internal.h:13,
                 from ../libhb/common.h:97,
                 from ../libhb/hbffmpeg.h:24,
                 from ../libhb/nvenc_common.c:10:
../libhb/qsv_libav.h:119:10: fatal error: mfx/mfxvideo.h: No such file or directory
 #include "mfx/mfxvideo.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
In file included from ../libhb/internal.h:13,
                 from ../libhb/common.h:97,
                 from ../libhb/plist.c:17:
../libhb/qsv_libav.h:119:10: fatal error: mfx/mfxvideo.h: No such file or directory
 #include "mfx/mfxvideo.h"
          ^~~~~~~~~~~~~~~~
compilation terminated.
make: *** [../libhb/module.rules:12: libhb/nvenc_common.o] Error 1
make: *** [../libhb/module.rules:12: libhb/plist.o] Error 1
Comment 2 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2019-03-10 20:30:56 UTC
Wow, this is quite a bumpy ride this time...
Comment 3 Chris Faulkner 2019-03-10 21:05:34 UTC
(In reply to Lars Wendler (Polynomial-C) from comment #2)
> Wow, this is quite a bumpy ride this time...

It happens, it's not phasing me a bit.. still love gentoo.. because the devops are awesome
Comment 4 Ulenrich 2019-03-10 21:21:09 UTC
Same here with these USE:
---
media-video/handbrake-1.2.2-r1::gentoo [1.2.2::pmaci] USE="fdk gstreamer gtk -libav -libav-aac -nvenc vaapi%* x265" 0 KiB

in the new -r1 ebuild you can see this line:
---
	$(use_enable vaapi qsv)

What is this last "qsv"?
Comment 5 Chris Faulkner 2019-03-11 04:54:17 UTC
(In reply to Ulenrich from comment #4)
> Same here with these USE:
> ---
> media-video/handbrake-1.2.2-r1::gentoo [1.2.2::pmaci] USE="fdk gstreamer gtk
> -libav -libav-aac -nvenc vaapi%* x265" 0 KiB
> 
> in the new -r1 ebuild you can see this line:
> ---
> 	$(use_enable vaapi qsv)
> 
> What is this last "qsv"?

qsv is Intel quick sync video
Comment 6 Ulenrich 2019-03-11 11:17:51 UTC
It turns out, disabling the new inserted USE -vaapi, resolves the build issue:
---
media-video/handbrake-1.2.2-r1::gentoo [1.2.2::pmaci] USE="fdk gstreamer gtk -libav -libav-aac -nvenc -vaapi% x265" 0 KiB
...
>>> Emerging (4 of 4) media-video/handbrake-1.2.2-r1::gentoo
>>> Installing (4 of 4) media-video/handbrake-1.2.2-r1::gentoo
---
Which makes me wonder, because all of following emerges had USE vaapi set without issues:
media-libs/avidemux-core media-libs/mesa media-libs/opencv media-libs/qtav media-video/avidemux media-plugins/gst-plugins-meta media-video/ffmpeg media-video/mpv media-video/vlc virtual/ffmpeg

I don't have intel graphics but nvidia in my 10y old Apple MacMini
Comment 7 Timo Ollech 2019-03-11 19:14:15 UTC
Indeed, it builds with USE -vaapi. But that loses encoding performance (depending on hardware capabilities), doesn't it?
Comment 8 Chris Faulkner 2019-03-11 22:16:51 UTC
(In reply to Timo Ollech from comment #7)
> Indeed, it builds with USE -vaapi. But that loses encoding performance
> (depending on hardware capabilities), doesn't it?

yes, turns off GPU rendering and relies totally on CPU.  GPU is much faster encoding.
Comment 9 Sebastian Lüttich 2019-03-12 08:11:16 UTC
It depends on media-libs/intel-mediasdk which introduces the x11-libs/libva-intel-media-driver. It's a much better driver for chipsets from Broadwell to Ice Lake.
Comment 10 Ulenrich 2019-03-12 11:49:11 UTC
(In reply to Sebastian Lüttich from comment #9)
> It depends on media-libs/intel-mediasdk which introduces the
> x11-libs/libva-intel-media-driver. It's a much better driver for chipsets
> from Broadwell to Ice Lake.

I came up with the same idea yesterday, but having a nvidia graphics card, this:
---
 emerge -1p x11-libs/libva-intel-media-driver

These are the packages that would be merged, in order:

Calculating dependencies  .... .... ..... done!

!!! All ebuilds that could satisfy "x11-libs/libva-intel-media-driver" have been masked.
!!! One of the following masked packages is required to complete your request:
- x11-libs/libva-intel-media-driver-9999::gentoo (masked by: missing keyword)
- x11-libs/libva-intel-media-driver-18.4.1::gentoo (masked by: ~amd64 keyword)
- x11-libs/libva-intel-media-driver-18.3.0::gentoo (masked by: ~amd64 keyword)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Comment 11 Timo Ollech 2019-03-12 13:24:29 UTC
(In reply to Sebastian Lüttich from comment #9)
> It depends on media-libs/intel-mediasdk which introduces the
> x11-libs/libva-intel-media-driver. It's a much better driver for chipsets
> from Broadwell to Ice Lake.

Any idea when this driver will be stabilized?
Comment 12 Attila Tóth 2019-03-12 15:49:56 UTC
(In reply to Timo Ollech from comment #11)
> (In reply to Sebastian Lüttich from comment #9)
> > It depends on media-libs/intel-mediasdk which introduces the
> > x11-libs/libva-intel-media-driver. It's a much better driver for chipsets
> > from Broadwell to Ice Lake.
> 
> Any idea when this driver will be stabilized?

I suspect it's also necessary to have "intel" in VIDEO_CARDS in order to have libdrm and mesa compiled with support - not sure.
Comment 13 Ian Whyman (thev00d00) (RETIRED) gentoo-dev 2019-03-12 21:40:32 UTC
I'm going to simply drop the vaapi flag for now.

If you look at the docs[1] its quite some work to get it right, and I don't have the bandwidth to maintain it.

If someone is willing to do the work then patches are welcome!

1. https://github.com/Intel-FFmpeg-Plugin/Intel_FFmpeg_plugins/wiki
Comment 14 Larry the Git Cow gentoo-dev 2019-03-12 21:55:06 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=398a8e5b8ee3b29ea8954e2fdc3406390cfe9950

commit 398a8e5b8ee3b29ea8954e2fdc3406390cfe9950
Author:     Ian Whyman <thev00d00@gentoo.org>
AuthorDate: 2019-03-12 21:54:43 +0000
Commit:     Ian Whyman <thev00d00@gentoo.org>
CommitDate: 2019-03-12 21:54:59 +0000

    media-video/handbrake: Drop VAAPI flag
    
    Add message that our builds are not supported by upstream
    
    Closes: https://bugs.gentoo.org/625822
    Closes: https://bugs.gentoo.org/679964
    Package-Manager: Portage-2.3.62, Repoman-2.3.12
    Signed-off-by: Ian Whyman <thev00d00@gentoo.org>

 .../{handbrake-1.2.2-r1.ebuild => handbrake-1.2.2-r2.ebuild}  | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)