Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

conflict: media-video/ffmpeg:=[nvenc]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
17 posts • Page 1 of 1
Author
Message
Xywa
Veteran
Veteran
User avatar
Posts: 1631
Joined: Sat Jul 23, 2005 2:00 pm
Location: /mnt/Gentoo/Europe

conflict: media-video/ffmpeg:=[nvenc]

  • Quote

Post by Xywa » Mon Nov 12, 2018 1:50 pm

Hi,

I got such error during update:

Code: Select all

  (media-video/ffmpeg-4.1:0/56.58.58::gentoo, ebuild scheduled for merge) conflicts with
    media-video/ffmpeg:=[nvenc] required by (media-video/obs-studio-22.0.3:0/0::gentoo, ebuild scheduled for merge)
                         ^^^^^ 

Code: Select all

# equery u obs-studio
[ Legend : U - final flag setting for installation]
[        : I - package is installed with flag     ]
[ Colors : set, unset                             ]
 * Found these USE flags for media-video/obs-studio-22.0.3:
 U I
 + + alsa                           : Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
 - - fdk                            : Enable libfdk support for AAC encoding.
 - - imagemagick                    : Use ImageMagick for image loading instead of FFmpeg.
 - - jack                           : Add support for the JACK Audio Connection Kit
 - - luajit                         : Build support for scripting via Luajit.
 + + nvenc                          : Enable NVENC encoding for nVidia video cards.
 - - pulseaudio                     : Add support for PulseAudio sound server
 - - python                         : Build support for scripting via Python 3.
 - - python_single_target_python3_4 : Build for Python 3.4 only
 - - python_single_target_python3_5 : Build for Python 3.5 only
 + + python_single_target_python3_6 : Build for Python 3.6 only
 - - python_targets_python3_4       : Build with Python 3.4
 - - python_targets_python3_5       : Build with Python 3.5
 + + python_targets_python3_6       : Build with Python 3.6
 - - speex                          : Enable noise suppression filter support via media-libs/speexdsp.
 + + truetype                       : Add support for FreeType and/or FreeType2 fonts
 - - v4l                            : Enable support for video4linux (using linux-headers or userspace libv4l
                                      libraries)
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31987
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Mon Nov 12, 2018 1:57 pm

You should enable nvenc to ffmpeg
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
candrews
Developer
Developer
Posts: 162
Joined: Wed Aug 10, 2005 3:39 pm
Contact:
Contact candrews
Website

  • Quote

Post by candrews » Tue Nov 13, 2018 1:54 am

media-video/ffmpeg-4* is missing the nvenc use flag.I checked the commit logs and I don't see a commit noting the removal of the flag, nor can I find a bug requesting its removal, so I think it was accidentally excluded.

I've reported a bug requested in be added: https://bugs.gentoo.org/671040 I've also attached a PR to the bug; hopefully this can be resolved soon.
I'm working on a variety of random things throughout Gentoo.
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31987
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Tue Nov 13, 2018 9:38 am

candrews wrote:media-video/ffmpeg-4* is missing the nvenc use flag.I checked the commit logs and I don't see a commit noting the removal of the flag, nor can I find a bug requesting its removal, so I think it was accidentally excluded.
It's seems replaced by video_cards_nvidia
amd64/package.use.mask wrote:# Alexis Ballier <aballier@gentoo.org> (31 Jan 2017)
# nvidia drivers are unmasked here
media-video/ffmpeg -nvenc
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Tue Nov 13, 2018 1:55 pm

so nvenc useflag was remove from ffmpeg in favor of VIDEOCARDS="nvidia" = nvenc built
still someone has to fix that obs-studio ebuild to not requiere anymore an ffmpeg built with nvenc useflag

while i find the logic in ffmpeg ebuild smart (if you don't have an nvidia card why would you want nvenc), but in fact, it would had been just better to kept that nvenc useflag and make ffmpeg built depends on it instead of videocards ; because the problem is Alexis Ballier "wrongly" assume "if someone has an nvidia card, he then would want always an ffmpeg built with the codec for it", which is bloat for someone that doesn't have an nvidia card able to use the codec or that just doesn't want to use it (it is limited in many aspects)
Top
candrews
Developer
Developer
Posts: 162
Joined: Wed Aug 10, 2005 3:39 pm
Contact:
Contact candrews
Website

  • Quote

Post by candrews » Tue Nov 13, 2018 4:04 pm

krinn wrote:so nvenc useflag was remove from ffmpeg in favor of VIDEOCARDS="nvidia" = nvenc built
still someone has to fix that obs-studio ebuild to not requiere anymore an ffmpeg built with nvenc useflag
See https://bugs.gentoo.org/671084
I'm working on a variety of random things throughout Gentoo.
Top
Chiitoo
Ninja Apprentice
Ninja Apprentice
User avatar
Posts: 3079
Joined: Sun Feb 28, 2010 5:36 pm
Location: Sore wa sore, kore wa kore... nanoda.

  • Quote

Post by Chiitoo » Tue Nov 13, 2018 4:35 pm

krinn wrote:so nvenc useflag was remove from ffmpeg in favor of VIDEOCARDS="nvidia" = nvenc built
still someone has to fix that obs-studio ebuild to not requiere anymore an ffmpeg built with nvenc useflag
It was there in 21.1.2, but removed since FFmpeg 4 was masked, and as such, it all triggered a QA violation.

The 9999 version of 'media-video/obs-studio' already/still supports '>=media-video/ffmpeg-4', but yeah, since the latter is unmasked now, it might be time to look into re-adding said support to other versions as well. :]
Kindest of regardses.
Top
candrews
Developer
Developer
Posts: 162
Joined: Wed Aug 10, 2005 3:39 pm
Contact:
Contact candrews
Website

  • Quote

Post by candrews » Tue Nov 13, 2018 4:39 pm

Chiitoo wrote: The 9999 version of 'media-video/obs-studio' already/still supports '>=media-video/ffmpeg-4', but yeah, since the latter is unmasked now, it might be time to look into re-adding said support to other versions as well. :]
Here's a PR: https://github.com/gentoo/gentoo/pull/10409

I'm happy to merge it for you if you'd like.
I'm working on a variety of random things throughout Gentoo.
Top
baaann
Guru
Guru
Posts: 558
Joined: Mon Jan 23, 2006 4:36 am
Location: uk

  • Quote

Post by baaann » Tue Nov 13, 2018 5:56 pm

krinn wrote:
while i find the logic in ffmpeg ebuild smart (if you don't have an nvidia card why would you want nvenc), but in fact, it would had been just better to kept that nvenc useflag and make ffmpeg built depends on it instead of videocards ; because the problem is Alexis Ballier "wrongly" assume "if someone has an nvidia card, he then would want always an ffmpeg built with the codec for it", which is bloat for someone that doesn't have an nvidia card able to use the codec or that just doesn't want to use it (it is limited in many aspects)
It seems that it is not only bloat, I had an issue a few days ago where ffmpeg 4 was forcing the latest nvidia-drivers which are not suitable for my old nvidia card and it appears to me that this could well be the cause? Unfortunately I am particularly busy at the moment and therefore just masked ffmpeg 4 to avoid the problem
Top
Kollin
Veteran
Veteran
User avatar
Posts: 1139
Joined: Sat Feb 25, 2006 12:42 am
Location: Sofia/Bulgaria

  • Quote

Post by Kollin » Wed Nov 21, 2018 7:17 am

baaann wrote:
krinn wrote:
while i find the logic in ffmpeg ebuild smart (if you don't have an nvidia card why would you want nvenc), but in fact, it would had been just better to kept that nvenc useflag and make ffmpeg built depends on it instead of videocards ; because the problem is Alexis Ballier "wrongly" assume "if someone has an nvidia card, he then would want always an ffmpeg built with the codec for it", which is bloat for someone that doesn't have an nvidia card able to use the codec or that just doesn't want to use it (it is limited in many aspects)
It seems that it is not only bloat, I had an issue a few days ago where ffmpeg 4 was forcing the latest nvidia-drivers which are not suitable for my old nvidia card and it appears to me that this could well be the cause? Unfortunately I am particularly busy at the moment and therefore just masked ffmpeg 4 to avoid the problem

Code: Select all

emerge -pv ffmpeg

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

Calculating dependencies                   ... done!
[ebuild     U #] x11-drivers/nvidia-drivers-410.78:0/410::gentoo [340.107:0/340::gentoo] USE="X acpi driver%* kms%* multilib tools uvm%* -compat% -gtk3% -pax_kernel -static-libs -wayland%" ABI_X86="32 (64) (-x32)" 106.504 KiB
[ebuild  N     ] media-libs/nv-codec-headers-8.1.24.2::gentoo  ABI_X86="32 (64) (-x32)" 53 KiB
[ebuild     U  ] media-video/ffmpeg-4.1:0/56.58.58::gentoo [3.4.4:0/55.57.57::gentoo] USE="X alsa bzip2 encode gpl hardcoded-tables iconv mp3 network opencl opengl openssl postproc pulseaudio sdl speex svg threads truetype vaapi vdpau vorbis x264 xcb xvid zlib (-altivec) -amr -amrenc (-appkit) -bluray -bs2b -cdio -chromaprint -chromium -codec2% -cpudetection -debug -doc -fdk -flite -fontconfig -frei0r -fribidi -gcrypt -gme -gmp -gnutls -gsm -iec61883 -ieee1394 -jack -jpeg2k -kvazaar -ladspa -libaom% -libass -libcaca -libdrm -libilbc -libressl% -librtmp -libsoxr -libv4l -lv2% -lzma (-mipsdspr1) (-mipsdspr2) (-mipsfpu) (-mmal) -modplug -openal -openh264 -opus -oss -pic -rubberband -samba -snappy -ssh -static-libs -test -theora -twolame -v4l -vpx -wavpack -webp -x265 -zeromq -zimg -zvbi (-celt%) (-nvenc%)" ABI_X86="32 (64) (-x32)" CPU_FLAGS_X86="mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 -3dnow -3dnowext -aes -avx -avx2 -fma3 -fma4 -xop" FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" VIDEO_CARDS="nvidia%*" 10.437 KiB

Total: 3 packages (2 upgrades, 1 new), Size of downloads: 116.994 KiB

The following mask changes are necessary to proceed:
 (see "package.unmask" in the portage(5) man page for more details)
# required by media-libs/nv-codec-headers-8.1.24.2::gentoo
# required by media-video/ffmpeg-4.1::gentoo[video_cards_nvidia]
# required by @selected
# required by @world (argument)
# /etc/portage/package.mask/nvidia-drivers:
=x11-drivers/nvidia-drivers-410.78

NOTE: The --autounmask-keep-masks option will prevent emerge
      from creating package.unmask or ** keyword changes.

 * In order to avoid wasting time, backtracking has terminated early
 * due to the above autounmask change(s). The --autounmask-backtrack=y
 * option can be used to force further backtracking, but there is no
 * guarantee that it will produce a solution.
Yes! ffmpeg wants to upgrade nvidia-drivers to an incompatible version! :?
"Dear Enemy: may the Lord hate you and all your kind, may you be turned orange in hue, and may your head fall off at an awkward moment."
"Linux is like a wigwam - no windows, no gates, apache inside..."
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31987
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Wed Nov 21, 2018 7:23 am

Kollin wrote:Yes! ffmpeg wants to upgrade nvidia-drivers to an incompatible version! :?
Because ffmpeg-4.1 need >=nv-codec-headers-8.1.24.2 that need >=x11-drivers/nvidia-drivers-390.25
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Thu Nov 22, 2018 3:41 am

Would be wiser to come back to nvenc useflag rather than the bad assumption from video_cards
Top
fedeliallalinea
Administrator
Administrator
User avatar
Posts: 31987
Joined: Sat Mar 08, 2003 11:15 pm
Location: here
Contact:
Contact fedeliallalinea
Website

  • Quote

Post by fedeliallalinea » Thu Nov 22, 2018 6:46 am

krinn wrote:Would be wiser to come back to nvenc useflag rather than the bad assumption from video_cards
I would like to state that I am not an expert in this field, but changing nvidia with nvenc change something for dependencies?
Questions are guaranteed in life; Answers aren't.

"Those who would give up essential liberty to purchase a little temporary safety,
deserve neither liberty nor safety."
- Ben Franklin
https://www.news.admin.ch/it/nsb?id=103968
Top
Chiitoo
Ninja Apprentice
Ninja Apprentice
User avatar
Posts: 3079
Joined: Sun Feb 28, 2010 5:36 pm
Location: Sore wa sore, kore wa kore... nanoda.

  • Quote

Post by Chiitoo » Thu Nov 22, 2018 10:07 am

There's some context about the change in Bug 671040 - media-video/ffmpeg-4* missing nvenc use flag, as well as the bugs mentioned therein.
Kindest of regardses.
Top
baaann
Guru
Guru
Posts: 558
Joined: Mon Jan 23, 2006 4:36 am
Location: uk

  • Quote

Post by baaann » Thu Nov 22, 2018 6:42 pm

Chiitoo wrote:There's some context about the change in Bug 671040 - media-video/ffmpeg-4* missing nvenc use flag, as well as the bugs mentioned therein.
Thanks Chiltoo, after reading the bug I have looked at the configure script and it appears there is an option for disabling ffnvcodec and I have added a note suggesting that the useflag nvenc should be reinstated for older cards. Hopefully it will be read as the bug is marked RESOLVED INVALID?
Top
Chiitoo
Ninja Apprentice
Ninja Apprentice
User avatar
Posts: 3079
Joined: Sun Feb 28, 2010 5:36 pm
Location: Sore wa sore, kore wa kore... nanoda.

  • Quote

Post by Chiitoo » Thu Nov 22, 2018 7:57 pm

baaann wrote:Hopefully it will be read as the bug is marked RESOLVED INVALID?
At the very least those on the CC list will still get mail for comments on it, so yeah, I do think it will be read. :]
Kindest of regardses.
Top
krinn
Watchman
Watchman
User avatar
Posts: 7476
Joined: Fri May 02, 2003 6:14 am

  • Quote

Post by krinn » Fri Nov 23, 2018 2:55 am

baaann wrote:I have added a note suggesting that the useflag nvenc should be reinstated for older cards.
Not just for older cards, you could use a brand new nvidia card and still don't want that codec.
Top
Post Reply

17 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic