Nvidia NVENC not working with applications

I had the same issue, you have to downgrade both at the same time:
downgrade x264 ffmpeg

Downgrading from A.L.A. is disabled on the stable branch. To override this behavior, set DOWNGRADE_FROM_ALA to 1 .
See https://wiki.manjaro.org/index.php?title=Using_Downgrade  for more details.

Available packages:

-  1)  x264  3  0.159.r2999.296494a  1  x86_64  (local)
+  2)  x264  3  0.160.r3011.cde9a93  1  x86_64  (local)

select a package by number: 1
Available packages:

-  1)  ffmpeg  1  4.2.2  4  x86_64  (local)
-  2)  ffmpeg  1  4.2.2  5  x86_64  (local)
-  3)  ffmpeg  1  4.2.2  6  x86_64  (local)
-  4)  ffmpeg  1  4.2.3  2  x86_64  (local)
-  5)  ffmpeg  2  4.2.4  1  x86_64  (local)
+  6)  ffmpeg  2  4.3.1  2  x86_64  (local)

select a package by number: 5
loading packages...
warning: downgrading package x264 (3:0.160.r3011.cde9a93-1 => 3:0.159.r2999.296494a-1)
warning: downgrading package ffmpeg (2:4.3.1-2 => 2:4.2.4-1)
resolving dependencies...
looking for conflicting packages...

Packages (2) ffmpeg-2:4.2.4-1  x264-3:0.159.r2999.296494a-1

Total Installed Size:  33,84 MiB
Net Upgrade Size:      -1,46 MiB

:: Proceed with installation? [Y/n] Y
(2/2) checking keys in keyring                                                                                                                 [########################################################################################] 100%
(2/2) checking package integrity                                                                                                               [########################################################################################] 100%
(2/2) loading package files                                                                                                                    [########################################################################################] 100%
(2/2) checking for file conflicts                                                                                                              [########################################################################################] 100%
(2/2) checking available disk space                                                                                                            [########################################################################################] 100%
:: Processing package changes...
(1/2) downgrading x264                                                                                                                         [########################################################################################] 100%
(2/2) downgrading ffmpeg                                                                                                                       [########################################################################################] 100%
:: Running post-transaction hooks...
(1/1) Arming ConditionNeedsUpdate...
add x264 to IgnorePkg? [y/N] N
add ffmpeg to IgnorePkg? [y/N] N

That solved the issue for me :slight_smile:
I see you also found a solution, but it might help other people since this is faster.

There are two options you may do:

I kind of avoid doing it this way, just in case something breaks like the display server crashing and being unable to start the desktop session, and other issues like fallback mode. I just hate having to spend an entire day trying to figure out why stuff wont work when they should be working and it getting in the way of my workflow.

Maybe this will be considered off topic but I invite all the Nvidia users to the party here Testing Updates - Manjaro Linux Forum

Having people concerned for software/hardware compatibility there is important for the ‘quality control’ you all hope for. Maybe the issue was known but again you can’t eat your cake and have it, I mean lot of people complaining because 450 driver is still not available, people complaining updates are rushed, and people not testing anything but who want perfect stable* Manjaro with absolutely no issue… this doesn’t work well.

It is easy to switch branches, and to use Timeshift ‘in case’ you got an issue.

1 Like

same for me
obs wont work after kernel update

if any one finds useful fix please reply

Simply do this:

export DOWNGRADE_FROM_ALA=1
downgrade x264 ffmpeg

choose x264-3:0.159.r2999.296494a-1
choose ffmpeg-2:4.2.4-1

The correct order is important!

1 Like

Thanks for reply, but!
i cant use these commands on terminal
i switched obs to software encoder in advanced setting it worked

1 Like

you need to first install downgrade with either pacman or pamac if you don’t have it installed, and then run the command again.

$ pamac install downgrade

1 Like

This worked for me. Thanks!

1 Like

Thanks that fixed it.

1 Like

hey did any one of you used davinchi resolve 16
i got an issue with it
it just opens and automatically closes on startup
is there any possible fix

i am using kde plasma
i have installed downgrade earlier but finally my system crashed after downgrade
i have re installed entire os again
now i set a timeshift backup
doesnt matter
but there are now nvidia 450 drivers in arch repo
i think when these drivers get updatedNVENC will work

450 is already in Testing and reached Stable-staging yesterday I think, it is coming soon to Stable.

Worked for me, thanks!

i have found a way to install nvidia
in this forum some where but i forgot to book mark
but i have commands in my history
i am using a nvidia 1660 ti mobile (optimus laptop with intel integrated gpu and 1660ti mobile) i ran into similar issues but installed finally
OBS studio is also working with NVENC
to update

IMPORTANT:: update all packages before doing and reboot
without updating all packages and kernels
-------------------------> you cant install nvidia - 450 without updating the existing packages
–>update packages before doing this

NOTE : remove the current drivers using MHWD command line and install

  1. sudo mhwd -i pci video-modesetting (or your driver name)
  2. sudo mhwd -r pci video-hybrid-intel-nvidia-440xx-prime (or your driver name)
  3. sudo mhwd -i pci video-hybrid-intel-nvidia-450xx-prime (or your driver name )
  4. reboot

thats it
it worked for me

Is there a solution for hybrid graphics for this? Cause I’ve tried everything suggested and NVENC still won’t work. Here’s my system info:

System:
  Kernel: 5.8.1-3-MANJARO x86_64 bits: 64 compiler: N/A Desktop: LXQt 0.15.1 
  Distro: Manjaro Linux 
Machine:
  Type: Laptop System: HP product: HP Laptop 15-da0xxx 
  v: Type1ProductConfigId serial: <filter> 
  Mobo: HP model: 84A7 v: 80.28 serial: <filter> UEFI: Insyde v: F.04 
  date: 08/02/2018 
Battery:
  ID-1: BAT1 charge: 42.3 Wh condition: 42.3/41.0 Wh (103%) 
  model: Hewlett-Packard PABAS0241231 status: Full 
CPU:
  Topology: Dual Core model: Intel Core i3-7020U bits: 64 type: MT MCP 
  arch: Amber Lake rev: 9 L2 cache: 3072 KiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 
  bogomips: 18406 
  Speed: 800 MHz min/max: 400/2300 MHz Core speeds (MHz): 1: 800 2: 800 
  3: 800 4: 800 
Graphics:
  Device-1: Intel HD Graphics 620 vendor: Hewlett-Packard driver: i915 
  v: kernel bus ID: 00:02.0 
  Device-2: NVIDIA GM108M [GeForce MX110] vendor: Hewlett-Packard 
  driver: nvidia v: 450.57 bus ID: 01:00.0 
  Device-3: Cheng Uei Precision Industry (Foxlink) HP TrueVision HD Camera 
  type: USB driver: uvcvideo bus ID: 1-5:3 
  Display: x11 server: X.org 1.20.8 driver: modesetting,nvidia 
  resolution: <xdpyinfo missing> 
  OpenGL: renderer: GeForce MX110/PCIe/SSE2 v: 4.6.0 NVIDIA 450.57 
  direct render: Yes 
Audio:
  Device-1: Intel Sunrise Point-LP HD Audio vendor: Hewlett-Packard 
  driver: snd_hda_intel v: kernel bus ID: 00:1f.3 
  Sound Server: ALSA v: k5.8.1-3-MANJARO 
Network:
  Device-1: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet 
  vendor: Hewlett-Packard driver: r8169 v: kernel port: 4000 bus ID: 02:00.0 
  IF: eno1 state: down mac: <filter> 
  Device-2: Realtek RTL8822BE 802.11a/b/g/n/ac WiFi adapter 
  vendor: Hewlett-Packard driver: rtw_8822be v: N/A port: 3000 
  bus ID: 03:00.0 
  IF: wlo1 state: up mac: <filter> 
Drives:
  Local Storage: total: 931.51 GiB used: 11.56 GiB (1.2%) 
  ID-1: /dev/sda vendor: Seagate model: ST1000LM035-1RK172 size: 931.51 GiB 
RAID:
  Hardware-1: Intel 82801 Mobile SATA Controller [RAID mode] driver: ahci 
  v: 3.0 bus ID: 00:17.0 
Partition:
  ID-1: / size: 907.45 GiB used: 11.56 GiB (1.3%) fs: ext4 dev: /dev/sda2 
Swap:
  ID-1: swap-1 type: partition size: 8.28 GiB used: 0 KiB (0.0%) 
  dev: /dev/sda3 
Sensors:
  System Temperatures: cpu: 51.0 C mobo: 29.8 C gpu: nvidia temp: 54 C 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 174 Uptime: 1m Memory: 3.76 GiB used: 542.0 MiB (14.1%) 
  Init: systemd Compilers: gcc: 10.1.0 Packages: 1061 Shell: Zsh v: 5.8 
  inxi: 3.1.05 

Is the ffmpeg/nvenc still broken? Downgrading and switching to the testing branch didn’t work but x264 did. That’s using the CPU and I’d rather not do that… My system is still rolled back to kernel 5.6 for now. I’ve upgraded but again, only the x264 only work and not the nvenc.

Maybe a fresh install will fix this.

NVENC (at least in OBS) seems to work with the 450.xx series driver and ffmpeg n4.3.1, on Linux 5.4.

Yeah, I’m still on 440.

So you’ve upgraded just ffmpeg and the drivers only, right? Also you used mhwd or directly from NVIDIA’s drivers?

I don’t exactly remember, I switched to a different branch at about that time. I used mhwd.